Skip to content

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.

number

Order<number>

Iterable<readonly [number, number], any, any>

DenseIntegerPriorityQueue

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.