Jump to content

Priority queue: Difference between revisions

m
→‎{{header|Quackery}}: better bit bashing
m (→‎{{header|Quackery}}: renamed remove as dequeue to be match task description)
m (→‎{{header|Quackery}}: better bit bashing)
Line 5,464:
swap poke heap.pq put ] is heapoke ( n x --> )
 
[ 1+ 21 />> 1 - ] is parent ( n --> n )
 
[ 0 > ] is has-parent ( n --> b )
 
[ 21 *<< 1+ ] is child ( n --> n )
 
[ child heap.pq share size < ] is has-child ( n --> b )
Line 5,523:
[ ]'[ 2 pack pq->stacks
heap.pq share
size 21 />> times
[ i heapify.pq ]
stacks->pq ] is pqwith ( [ --> p )
1,496

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.