Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Priority queue

Also written: priority queues

A queue that always serves the most urgent item first, such as Sam's order that must ship soonest. A heap is the usual way to build one.

Where the book teaches it

Related terms

HeapQueue