23 SUBROUTINE indexxi(n,nd,arr,indx)
33 INTEGER n,indx(nd),M,NSTACK
36 parameter(m=7,nstack=50)
37 INTEGER i,indxt,ir,itemp,j,jstack,k,l,istack(nstack)
52 if(arr(indx(i)).le.a)
goto 2
67 if(arr(indx(l+1)).gt.arr(indx(ir)))
then 72 if(arr(indx(l)).gt.arr(indx(ir)))
then 77 if(arr(indx(l+1)).gt.arr(indx(l)))
then 88 if(arr(indx(i)).lt.a)
goto 3
91 if(arr(indx(j)).gt.a)
goto 4
100 if(jstack.gt.nstack)pause
'NSTACK too small in indexx' 101 if(ir-i+1.ge.j-l)
then subroutine indexxi(n, nd, arr, indx)
Subroutine to perform ?? indexing on integer data.