333
правки
Изменения
→decreaseKey
<code>
void decreaseKey(H, x, k){
if k > key[x] then
return; key[x] = k; y = x; z = p[y]; while (z <tex>\ne</tex> NIL and key[y] < key[z]) do{ swap(key[y], key[z]); y = z; z = p[y]; } }
</code>