1. Creation
BinaryHeap<Key,Item> | bh; |
BinaryHeap<Key,Item> | binary_heap_name( (int) n); |
2. Operations
BinaryHeapNode<Key,Item>* | insert (Key k, Item i) |
void | remove (Item i) |
Item | extractMin () |
Item | get () |
BinaryHeapNode<Key,Item>* | minimum () |
Item | min () |
int | size () |
Bool | emptyQ () |
Bool | fullQ () |
Bool | memberQ (const Item&) |
Bool | sortedQ () const |
void | clear () |
void | decreaseKey (BinaryHeapNode<Key,Item>* node, Item k) |
void | deleteKey (ContainerNode* node) |
ostream& | display (ostream&) |
friend ostream& | operator<< (ostream& s, Heap<Item>& h) |
ObjectType | type () |