Show / Hide Table of Contents

    Class HeapSort<T>

    A heap sort implementation.

    Inheritance
    Object
    HeapSort<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Advanced.Algorithms.Sorting
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class HeapSort<T>
        where T : IComparable
    Type Parameters
    Name Description
    T

    Methods

    Sort(ICollection<T>, SortDirection)

    Time complexity: O(nlog(n)).

    Declaration
    public static T[] Sort(ICollection<T> collection, SortDirection sortDirection = SortDirection.Ascending)
    Parameters
    Type Name Description
    ICollection<T> collection
    SortDirection sortDirection
    Returns
    Type Description
    T[]
    Back to top Generated by DocFX