Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       integer parent,xkey,ikey
  2.       xkey = a(jkey)
  3.       ikey = ind(jkey)
  4. c      node = node + 1
  5.       a(node) = xkey
  6.       ind(node) = ikey
  7.       rind(ikey) = node
  8.       if (node .le. 1) return
  9.       child=node
  10.  1    parent = child/2  
  11.       if (a(parent) .le. a(child)) goto 2
  12.       call interchange(a,ind,rind,child,parent)
  13.       child = parent
  14.       if (child .gt. 1) goto 1
  15.  2    continue
  16.       return
  17.       end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement