denseIntegerMinPriorityQueue(
capacity,keyOrder,entries?):DenseIntegerPriorityQueue
Defined in: packages/heap/src/dense-integer-priority-queue.ts:63
Allocate a binary min queue for integer values in [0, capacity).
Keys and positions are indexed by value. Floyd heapify preserves O(n) initial
construction after allocating O(capacity) storage.
Parameters
Section titled “Parameters”capacity
Section titled “capacity”number
keyOrder
Section titled “keyOrder”Order<number>
entries?
Section titled “entries?”Iterable<readonly [number, number], any, any>
Returns
Section titled “Returns”Throws
Section titled “Throws”With INVALID_CAPACITY for a capacity outside
the nonnegative signed 32-bit range, INVALID_VALUE for an initial value
outside the domain, or DUPLICATE_VALUE for a repeated initial value.