AlgoViz

Priority queues

medium 18 min

A priority queue serves the item with the highest (or lowest) priority first, whatever order items arrived in.