com.phasmidsoftware.visitor.core.PrioQueue
See thePrioQueue companion object
An immutable priority queue ADT backed by BinaryHeap.
Duplicates are permitted. The minimum element is dequeued first (or maximum via PrioQueue.emptyMax).
Ordering[T] is captured at construction time so that Frontier[PrioQueue] remains fully polymorphic — no Ordering context is needed at offer / take call sites.
For a priority queue that also supports O(log n) decreaseKey, see IndexedPrioQueue.
Type parameters
- T
-
the element type
Value parameters
- heap
-
the underlying binary heap
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article