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