previous
|
start
|
next
Inserting a New Element in a Heap
At this point, either the vacant slot is at the root, or the parent of the vacant slot is smaller than the element to be inserted. Insert the element into the vacant slot
previous
|
start
|
next