Push the Parent down the tree if it is smaller (according to Order) than one of its children
The DataStructures.TCustomHeap.PushUp(Integer) and DataStructures.TCustomHeap.PushDown(Integer) methods maintain the sort order of the heap. These methods are O(n) in efficiency.
Namespace: DataStructures
Delphi |
protected |
Parameters
Parent
Type: Integer
Type: THeapElement
Reference |