Diferente pentru heapuri intre reviziile #65 si #66
Nu exista diferente intre titluri.
Diferente intre continut:
==code(c) | void percolate(Heap H, int N, int K) {
intKey;
int key = H[K];
Key = H[K]; while ((K>1) && (Key > H[ K>>1 ])) { H[K] = H[ K>>1 ]; K >>= 1;
while ((K > 1) && (key > H[father(K)])) { H[K] = H[father(K)]; K = father(K);
}
H[K] = Key;
H[K] = key;
} ==