|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.heap.ExternalBinaryHeap<E>
E - public class ExternalBinaryHeap<E>
Declared as 'External' since all comparison is external via a provided comparator class.
Functionality is identical to BinaryHeap
| Constructor Summary | |
|---|---|
ExternalBinaryHeap(int i,
java.util.Comparator<E> comp)
Construct a Binary heap of given size. |
|
| Method Summary | |
|---|---|
void |
insert(E obj)
|
boolean |
isEmpty()
Determine if Binary Heap is empty. |
E |
smallest()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalBinaryHeap(int i,
java.util.Comparator<E> comp)
i - comp - | Method Detail |
|---|
public boolean isEmpty()
public void insert(E obj)
public E smallest()
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||