Binary heap: Difference between revisions

Content deleted Content added
added another name of the down-heap operation
Tag: Reverted
Line 322:
 
==Related structures==
Since the ordering of siblings in a heap is not specified by the heap property, a single node's two children can be freely interchanged unless doing so violates the shape property (compare with [[treaptree]]). Note, however, that in the common array-based heap, simply swapping the children might also necessitate moving the children's sub-tree nodes to retain the heap property.
 
The binary heap is a special case of the [[d-ary heap]] in which d = 2.whic
 
==Summary of running times==