public final class Heap
extends java.lang.Object
implements java.io.Serializable
Type | Property and Description |
---|---|
boolean |
heap |
Constructor and Description |
---|
Heap(double[] activity) |
Modifier and Type | Method and Description |
---|---|
boolean |
empty() |
int |
get(int i) |
int |
getmin() |
boolean |
heapProperty() |
boolean |
heapProperty(int i) |
void |
increase(int n) |
boolean |
inHeap(int n) |
void |
insert(int n) |
void |
setBounds(int size) |
int |
size() |
public void setBounds(int size)
public boolean inHeap(int n)
public void increase(int n)
public boolean empty()
public int size()
public int get(int i)
public void insert(int n)
public int getmin()
public boolean heapProperty()
public boolean heapProperty(int i)