Show / Hide Table of Contents

    Class FibornacciMinHeap<T>

    A fibornacci min heap implementation.

    Inheritance
    Object
    FibornacciMinHeap<T>
    Namespace: Advanced.Algorithms.DataStructures
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class FibornacciMinHeap<T> : IEnumerable<T> where T : IComparable
    Type Parameters
    Name Description
    T

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Methods

    DecrementKey(T, T)

    Update the Heap with new value for this node pointer. Time complexity: O(1).

    Declaration
    public void DecrementKey(T currentValue, T newValue)
    Parameters
    Type Name Description
    T currentValue
    T newValue

    ExtractMin()

    Time complexity: O(log(n)).

    Declaration
    public T ExtractMin()
    Returns
    Type Description
    T

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    IEnumerator<T>

    Insert(T)

    Time complexity: O(1).

    Declaration
    public void Insert(T newItem)
    Parameters
    Type Name Description
    T newItem

    Merge(FibornacciMinHeap<T>)

    Unions this heap with another. Time complexity: O(1).

    Declaration
    public void Merge(FibornacciMinHeap<T> FibornacciHeap)
    Parameters
    Type Name Description
    FibornacciMinHeap<T> FibornacciHeap

    PeekMin()

    Time complexity: O(1).

    Declaration
    public T PeekMin()
    Returns
    Type Description
    T
    Back to top Generated by DocFX