|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The abstract data type max-heap.
Method Summary | |
void |
deleteMax()
Deletes the max key stored into this heap |
java.lang.Comparable |
getMax()
Returns the max key stored into this heap. |
void |
insert(java.lang.Comparable key)
Inserts a new key into this heap. |
Method Detail |
public void insert(java.lang.Comparable key) throws java.lang.Exception
key
- new key to insert.
java.lang.Exception
public java.lang.Comparable getMax() throws java.lang.Exception
java.lang.Exception
public void deleteMax() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |