|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mascoptLib.util.fibHeap.FibonacciHeap
The Fibonacci Heap.
| Constructor Summary | |
FibonacciHeap(mascoptLib.abstractGraph.AbstractGraph g)
Construct the Fibonacci heap. |
|
| Method Summary | |
Object |
deleteMin()
Remove the smallest item from the priority queue. |
void |
FibHeapDecreaseKey(mascoptLib.util.fibHeap.FibHeapNode x,
Object k)
|
void |
FibHeapUnion(mascoptLib.util.fibHeap.FibHeapNode fhn,
int n)
|
Object |
findMin()
Find the smallest item in the priority queue. |
mascoptLib.util.fibHeap.FibHeapNode |
getNode(int index)
|
int |
insert(Object x)
Insert into the priority queue, maintaining heap order. |
boolean |
isEmpty()
Test if the priority queue is logically empty. |
void |
makeEmpty()
Make the priority queue logically empty. |
void |
toss(Object x)
Insert into the priority queue, without maintaining heap order. |
void |
validate()
Validate the Heap |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FibonacciHeap(mascoptLib.abstractGraph.AbstractGraph g)
| Method Detail |
public int insert(Object x)
insert in interface PriorityQueuex - the item to insert.public boolean isEmpty()
isEmpty in interface PriorityQueuepublic void makeEmpty()
makeEmpty in interface PriorityQueue
public Object findMin()
throws Underflow
findMin in interface PriorityQueueUnderflow - if the priority queue is empty.
public void FibHeapUnion(mascoptLib.util.fibHeap.FibHeapNode fhn,
int n)
public Object deleteMin()
throws Underflow
deleteMin in interface PriorityQueueUnderflow - if the priority queue is empty.public void toss(Object x)
toss in interface PriorityQueuex - the item to insert.public void validate()
validate in interface PriorityQueue
public void FibHeapDecreaseKey(mascoptLib.util.fibHeap.FibHeapNode x,
Object k)
throws Underflow
Underflowpublic mascoptLib.util.fibHeap.FibHeapNode getNode(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||