public interface BoundedMaxHeap<T extends java.lang.Comparable<T>>
Modifier and Type | Method and Description |
---|---|
T |
deleteMax() |
int |
getCapacity() |
int |
getSize() |
void |
insert(T v) |
void insert(T v) throws HeapFullException
v
- the value to be inserted into this binary MaxHeapHeapFullException
- if this bounded MaxHeap is already full
T deleteMax() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if this BoundedMaxHeap was already empty
int getSize()
int getCapacity()