Lines Matching defs:heap
77 zz = z; tmp = heap[zz]; \
78 while (weight[tmp] < weight[heap[zz >> 1]]) { \
79 heap[zz] = heap[zz >> 1]; \
82 heap[zz] = tmp; \
88 zz = z; tmp = heap[zz]; \
93 weight[heap[yy+1]] < weight[heap[yy]]) \
95 if (weight[tmp] < weight[heap[yy]]) break; \
96 heap[zz] = heap[yy]; \
99 heap[zz] = tmp; \
110 Nodes and heap entries run from 1. Entry 0
111 for both the heap and nodes is a sentinel.
116 Int32 heap [ BZ_MAX_ALPHA_SIZE + 2 ];
128 heap[0] = 0;
135 heap[nHeap] = i;
142 n1 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP(1);
143 n2 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP(1);
149 heap[nHeap] = nNodes;