Defined in File PrioQueue.hpp
Priority queue with extract-min and decrease-key. The type Val takes on integer values between 0 and n-1. O(n log n) for construction, O(log n) for typical operations.
Public Functions
Builds priority queue from the vector keys, values are indices of keys.
Builds priority queue of the specified capacity capacity.
Default destructor
Returns the n-th element in the priority queue.
Removes the element with minimum key and returns it.
Modifies entry with value value. The entry is then set to newKey with the same value. If the corresponding key is not present, the element will be inserted.
Number of elements in PQ.
Whether or not the PQ is empty.
Whether or not the PQ contains the given value.
Removes all the elements from the priority queue.
Iterates over all the elements of the priority queue and call handle (lambda closure).
Iterates over all the elements of the priority queue while the condition is satisfied and call handle (lambda closure).
DEBUGGING