What are queues?
A linear datastructure with two ends, a front and a back. Items are always added to the back of the queue and removed from the front
What kind of structure is a queue?
F.I.F.O -first in first out
Linear and dynamic
Queue opperations
enqueue -adding an item to the back of a queue
dequeue - removing an item from the front of a queue
peek -looing at the item at the front of a queue
isEmpty -checking to see if a queue is empty.
Runtime analysis
O(n)
Common uses
The event queue in programs simulating waiting lines buffers for I/O Print queues Keyboard strokes Video Frames
What are the pointers in a queue called?
head and tail