Show / Hide Table of Contents

    Class FibornacciMinHeap<T>

    A fibornacci min heap implementation.

    Inheritance
    Object
    FibornacciMinHeap<T>
    Implements
    IEnumerable<T>
    IEnumerable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Advanced.Algorithms.DataStructures
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class FibornacciMinHeap<T> : IEnumerable<T>, IEnumerable 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

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top Generated by DocFX