Fork me on GitHub

Class comb.collections.MaxHeap


Extends comb.collections.Heap.

Max Heap implementation, lowest value in heap is always at the root.


Performance
BestWorst
InsertO(log n)O(log n)
RemoveO(log n)O(log n)
PeekO(1)O(1)
ContainsO(n)O(n)

Defined in: MaxHeap.js.
Fields borrowed from class comb.collections.Heap:
count, isEmpty, keys, values
Methods borrowed from class comb.collections.Heap:
clear, containsKey, containsValue, insert, peek, peekKey, print, remove
Methods borrowed from class comb.collections.Collection:
concat, indexOf, join, lastIndexOf, slice, toString

Class Detail
comb.collections.MaxHeap()

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jan 31 2012 16:14:11 GMT-0600 (CST)