Structures

The following structures are available globally.

  • A MaxHeap using iterative heapify methods.

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MaxHeap<T> : Heap where T : Comparable
  • A MinHeap using iterative heapify methods.

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MinHeap<T> : Heap where T : Comparable
  • A MaxHeapRecursive using recursive heapify methods.

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MaxHeapRecursive<T> : Heap where T : Comparable
  • A MinHeapRecursive using recursive heapify methods.

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MinHeapRecursive<T> : Heap where T : Comparable