Mental Model
A priority queue is like a line where people with higher importance get served first, no matter when they arrive.
Analogy: Imagine a hospital emergency room where patients with more serious conditions are treated before others, even if they arrived later.
Priority Queue: [Patient with priority 5] -> [Patient with priority 3] -> [Patient with priority 1] -> null ā front (highest priority)
