What is a queue?
An abstract data structure based on an array often referred to as a first in first out abstract data structure.
How do you enqueue to a linear queue?
How do you dequeue from a linear queue?
What is the limitation of a linear queue?
Once an item is dequeued, its memory location cannot be reused.
What is a circular queue?
A queue where when a pointer moves past the end of the queue, it wraps around to the start index.
How do you enqueue to a circular queue?
How do you dequeue from a circular queue?
What is a priority queue?
Items are assigned a priority.
Higher priority items are dequeued before lower priority items.
If multiple items have the same priority, items are removed in FIFO order.
A high priority item will be added at the back of all of the other high priority items, but before the medium items, which themselves are before the low priority items.