previous | start | next

Inserting a New Element in a Heap

  1. Demote the parent of the empty slot if it is larger than the element to be inserted


previous | start | next