Show / Hide Table of Contents

    Class HeapSort<T>

    A heap sort implementation.

    Inheritance
    Object
    HeapSort<T>
    Namespace: Advanced.Algorithms.Sorting
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class HeapSort<T> : object 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 = null)
    Parameters
    Type Name Description
    ICollection<T> collection
    SortDirection sortDirection
    Returns
    Type Description
    T[]
    Back to top Generated by DocFX