MinHeap
public struct MinHeap<T> : Heap where T : Comparable
A MinHeap
using iterative heapify methods.
-
Public init
Declaration
Swift
public init()
-
The storage array of the
Heap
Declaration
Swift
public var storage: [T]
-
The
MinHeap
iterativeheapifyUp
algorithm.Declaration
Swift
public mutating func heapifyUp()
-
The
MinHeap
iterativeheapifyDown
algorithm.Declaration
Swift
public mutating func heapifyDown()