API reference

Index

Docstrings

FastPriorityQueues.HeapPriorityQueueType
HeapPriorityQueue{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 pairs k => v ordered by increasing v
source
FastPriorityQueues.SortedVectorPriorityQueueType
SortedVectorPriorityQueue{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 pairs k => v ordered by increasing v.
source
FastPriorityQueues.VectorPriorityQueueType
VectorPriorityQueue{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 pairs k => v in arbitrary order.
source
DataStructures.dequeue!Method
dequeue!(pq::HeapPriorityQueue)

Remove and return the key k with lowest priority value v. Amortized complexity O(1).

source
DataStructures.dequeue!Method
dequeue!(pq::SortedVectorPriorityQueue)

Remove and return the key k with lowest priority value v. Amortized complexity O(1).

source
DataStructures.dequeue!Method
dequeue!(pq::VectorPriorityQueue)

Remove and return the key k with lowest priority value v. Amortized complexity O(n).

source
DataStructures.dequeue_pair!Method
dequeue_pair!(pq::HeapPriorityQueue)

Remove and return the pair k => v with lowest priority value v. Amortized complexity O(1).

source
DataStructures.dequeue_pair!Method
dequeue_pair!(pq::SortedVectorPriorityQueue)

Remove and return the pair k => v with lowest priority value v. Amortized complexity O(1).

source
DataStructures.dequeue_pair!Method
dequeue_pair!(pq::VectorPriorityQueue)

Remove and return the pair k => v with lowest priority value v. Amortized complexity O(n).

source
DataStructures.enqueue!Method
enqueue!(pq::SortedVectorPriorityQueue, k, v)

Insert k => v into the queue pq. Amortized complexity O(log n).

source