Push the last value up the tree until it is not bigger (according to Order) than any of its parents.
The DataStructures.TCustomHeap.PushUp(Integer) and DataStructures.TCustomHeap.PushDown(Integer) methods maintain the sort order of the heap.
Namespace: DataStructures
Delphi |
protected |
Parameters
Index
Type: Integer
Type: THeapElement