the type of item being stored in the priority a queue
The constructor function for a priority queue
a comparator function for comparing elements
Swaps out an item in the queue for a new item, can be used to update the key of an item Note: has time complexity O(n)
the item to be swapped out of the queue
the item to be swapped into the queue
Returns the highest priority item and removes it from the queue
Inserts an item into the priority queue
the item to be inserted
Returns a boolean indicating whether or not the queue is empty
Returns the highest priority item without removing it
Generated using TypeDoc
A priority queue implemented using binomial heaps