Content deleted Content added
→Heap operations: fix images per WP:VPT, remove incorrect indents |
m →Decrease or increase key: add section link note |
||
Line 145:
=== Decrease or increase key ===
<!-- section linked from [[Reheapification]] -->
The decrease key operation replaces the value of a node with a given value with a lower value, and the increase key operation does the same but with a higher value. This involves finding the node with the given value, changing the value, and then down-heapifying or up-heapifying to restore the heap property.
|