K - the type of keys maintained by this heapV - the type of values maintained by this heappublic interface ValueHeap<K,V> extends Heap<K>
| Modifier and Type | Method and Description |
|---|---|
V |
findMinValue()
Find the value of an element with the minimum key.
|
void |
insert(K key,
V value)
Insert an element into the heap.
|
void insert(K key, V value)
key - the key to insertvalue - the value to insertV findMinValue()
NoSuchElementException - if the heap is emptyCopyright © 2018. All rights reserved.