API reference
Index
FastPriorityQueues.HeapPriorityQueue
FastPriorityQueues.SortedVectorPriorityQueue
FastPriorityQueues.VectorPriorityQueue
DataStructures.dequeue!
DataStructures.dequeue!
DataStructures.dequeue!
DataStructures.dequeue_pair!
DataStructures.dequeue_pair!
DataStructures.dequeue_pair!
DataStructures.enqueue!
DataStructures.enqueue!
DataStructures.enqueue!
Docstrings
FastPriorityQueues.HeapPriorityQueue
— TypeHeapPriorityQueue{K,V}
Min priority queue with keys of type K
and priority values of type V
, stored using a binary heap from DataStructures.jl.
Fields
heap::BinaryHeap{K,V}
: heap of key-value pairsk => v
ordered by increasingv
FastPriorityQueues.SortedVectorPriorityQueue
— TypeSortedVectorPriorityQueue{K,V}
Min priority queue with keys of type K
and priority values of type V
, stored using a sorted vector of couples.
Fields
pairs::Vector{Pair{K,V}}
: vector of key-value pairsk => v
ordered by increasingv
.
FastPriorityQueues.VectorPriorityQueue
— TypeVectorPriorityQueue{K,V}
Min priority queue with keys of type K
and priority values of type V
, stored as a vector of couples.
Fields
pairs::Vector{Pair{K,V}}
: vector of key-value pairsk => v
in arbitrary order.
DataStructures.dequeue!
— Methoddequeue!(pq::HeapPriorityQueue)
Remove and return the key k
with lowest priority value v
. Amortized complexity O(1)
.
DataStructures.dequeue!
— Methoddequeue!(pq::SortedVectorPriorityQueue)
Remove and return the key k
with lowest priority value v
. Amortized complexity O(1)
.
DataStructures.dequeue!
— Methoddequeue!(pq::VectorPriorityQueue)
Remove and return the key k
with lowest priority value v
. Amortized complexity O(n)
.
DataStructures.dequeue_pair!
— Methoddequeue_pair!(pq::HeapPriorityQueue)
Remove and return the pair k => v
with lowest priority value v
. Amortized complexity O(1)
.
DataStructures.dequeue_pair!
— Methoddequeue_pair!(pq::SortedVectorPriorityQueue)
Remove and return the pair k => v
with lowest priority value v
. Amortized complexity O(1)
.
DataStructures.dequeue_pair!
— Methoddequeue_pair!(pq::VectorPriorityQueue)
Remove and return the pair k => v
with lowest priority value v
. Amortized complexity O(n)
.
DataStructures.enqueue!
— Methodenqueue!(pq::HeapPriorityQueue, k, v)
Insert k => v
into the queue pq
. Amortized complexity O(log n)
.
DataStructures.enqueue!
— Methodenqueue!(pq::SortedVectorPriorityQueue, k, v)
Insert k => v
into the queue pq
. Amortized complexity O(log n)
.
DataStructures.enqueue!
— Methodenqueue!(pq::VectorPriorityQueue, k, v)
Insert k => v
into the queue pq
. Amortized complexity O(1)
.