- <init>
Creates a MapBinaryHeap whose heap ordering is based on the ordering of the
elements specified by co
- add
Inserts o into this collection.
- isEmpty
Returns true if this collection contains no elements, andfalse otherwise.
- update
Informs the heap that this object's internal key value has been updated, and
that its place in the h
- addAll
- initialize
- lChild
Returns the index of the left child of the element at index i of the heap.
- parent
Returns the index of the parent of the element at index i of the heap.
- peek
Returns the element at the top of the heap; does not alter the heap.
- percolateDown
Moves the element at position cur closer to the bottom of the heap, or returns
if no further motion
- percolateUp
Moves the element o at position cur as high as it can go in the heap. Returns
the new position of th
- poll