Click or drag to resize
FibonacciHeapT Class
Very fast priority queue. Provides insertion, finding the minimum, melding and decreasing keys in constant amortized time, and deleting from an n-item heap in O(log n) amortized time.
Inheritance Hierarchy
SystemObject
  Slash.Collections.PriorityQueuesFibonacciHeapT

Namespace: Slash.Collections.PriorityQueues
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public class FibonacciHeap<T> : IPriorityQueue<T>

Type Parameters

T
Type of the items held by this Fibonacci heap.

The FibonacciHeapT type exposes the following members.

Constructors
  NameDescription
Public methodFibonacciHeapT
Initializes a new instance of the FibonacciHeapT class
Top
Properties
  NameDescription
Public propertyCount
Number of elements of this heap.
Top
Methods
  NameDescription
Public methodClear
Clears this Fibonacci heap, removing all items.
Public methodDecreaseKey
Decreases the key of the specified item in this heap by subtracting the passed non-negative real number delta.
Public methodDecreaseKeyTo
Decreases the key of the specified item in this heap to the passed non-negative real number.
Public methodDelete
Deletes the specified item from this heap.
Public methodDeleteMin
Deletes the item with the minimum key in this heap and returns it.
Public methodFindMin
Returns the item with the minimum key in this heap.
Public methodInsert
Inserts the passed item with the specified key into this heap.
Public methodIsEmpty
Checks whether this heap is empty, or not.
Public methodMeld
Takes the union of the passed heap and this one. Assumes that both heaps are item-disjoint. This operation destroys the passed heap.
Top
Remarks

An implementation of a Fibonacci heap (abbreviated F-heap) by Michael L. Fredman and Robert Endre Tarjan which represents a very fast priority queue.

http://www.cl.cam.ac.uk/~sos22/supervise/dsaa/fib_heaps.pdf

See Also