Class FibonacciHeap<T>
A fibornacci minMax heap implementation.
Inheritance
FibonacciHeap<T>
Assembly: Advanced.Algorithms.dll
Syntax
public class FibonacciHeap<T> : IEnumerable<T>, IEnumerable where T : IComparable
Type Parameters
Constructors
|
Improve this Doc
View Source
FibonacciHeap(SortDirection)
Declaration
public FibonacciHeap(SortDirection sortDirection = SortDirection.Ascending)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Methods
|
Improve this Doc
View Source
Time complexity: O(log(n)).
Declaration
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
|
Improve this Doc
View Source
Insert(T)
Declaration
public void Insert(T newItem)
Parameters
Type |
Name |
Description |
T |
newItem |
|
|
Improve this Doc
View Source
Merge(FibonacciHeap<T>)
Unions this heap with another.
Time complexity: O(1).
Declaration
public void Merge(FibonacciHeap<T> fibonacciHeap)
Parameters
|
Improve this Doc
View Source
Peek()
Declaration
Returns
|
Improve this Doc
View Source
UpdateKey(T, T)
Update the Heap with new value for this node pointer.
Time complexity: O(1).
Declaration
public void UpdateKey(T currentValue, T newValue)
Parameters
Type |
Name |
Description |
T |
currentValue |
|
T |
newValue |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements