public class BHeap<T extends BHeapNode>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
size |
| Constructor and Description |
|---|
BHeap(java.util.Comparator<T> comparator) |
BHeap(java.util.Comparator<T> comparator,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
T |
add(T node) |
void |
clear() |
T |
peek() |
T |
pop() |
java.lang.String |
toString() |
void |
updateNode(T node,
float valueComparison) |