Constructor and Description |
---|
IntervalHeap() |
IntervalHeap(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
T |
getMax() |
double |
getMaxKey() |
T |
getMin() |
double |
getMinKey() |
void |
offer(double key,
T value) |
void |
removeMax() |
void |
removeMin() |
void |
replaceMax(double key,
T value) |
void |
replaceMin(double key,
T value) |
int |
size() |
String |
toString() |
public IntervalHeap()
public IntervalHeap(int capacity)
public void offer(double key, T value)
public void replaceMin(double key, T value)
replaceMin
in interface MinHeap<T>
public void replaceMax(double key, T value)
replaceMax
in interface MaxHeap<T>
public int size()
public int capacity()
Copyright © 2015. All rights reserved.