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