A data structure that stores elements in order based on a priority value, allowing for efficient insertion and removal of the highest priority element.
A data structure that stores elements in order based on a priority value, allowing for efficient insertion and removal of the highest priority element.