| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.opengve.tools.dataStructures.FibonacciHeap<E,V>
E - The type of element in the heap.V - The type of value associated with element in the heap.public class FibonacciHeap<E,V extends java.lang.Comparable<V>>
The Fibonacci Heap.
| Constructor Summary | |
|---|---|
FibonacciHeap()
Construct the Fibonacci heap.  | 
|
| Method Summary | |
|---|---|
 void | 
clear()
Make the priority queue logically empty.  | 
 boolean | 
contains(E element)
Say if the priority queue contains a given elemeent.  | 
 E | 
deleteMin()
Remove the smallest item from the priority queue.  | 
 void | 
FibHeapDecreaseKey(E element,
                   V value)
Update the value of an element of the heap.  | 
 E | 
findMin()
Find the smallest item in the priority queue.  | 
 V | 
getValueOf(E element)
Give the value of a given element.  | 
 void | 
insert(E x,
       V value)
Insert into the priority queue.  | 
 boolean | 
isEmpty()
Test if the priority queue is logically empty.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FibonacciHeap()
| Method Detail | 
|---|
public boolean isEmpty()
PriorityQueue
isEmpty in interface PriorityQueue<E,V extends java.lang.Comparable<V>>public void clear()
PriorityQueue
clear in interface PriorityQueue<E,V extends java.lang.Comparable<V>>
public E findMin()
          throws java.util.NoSuchElementException
PriorityQueue
findMin in interface PriorityQueue<E,V extends java.lang.Comparable<V>>java.util.NoSuchElementException - if the priority queue is empty.public E deleteMin()
deleteMin in interface PriorityQueue<E,V extends java.lang.Comparable<V>>Underflow - if the priority queue is empty.
java.util.NoSuchElementException - If the heap is empty.
public void FibHeapDecreaseKey(E element,
                               V value)
                        throws java.lang.IllegalArgumentException
element - The element that we update.value - The new value for this element.
java.lang.IllegalArgumentException - If the new value is greater that old one.
public void insert(E x,
                   V value)
PriorityQueue
insert in interface PriorityQueue<E,V extends java.lang.Comparable<V>>x - The object to insert.value - The value of the object.public boolean contains(E element)
PriorityQueue
contains in interface PriorityQueue<E,V extends java.lang.Comparable<V>>element - The element.
true if the element belong to the priority queue and
         false otherwise.public V getValueOf(E element)
PriorityQueue
getValueOf in interface PriorityQueue<E,V extends java.lang.Comparable<V>>element - The element.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||