Subtopic 5.6
More Queues and Applications
3lessons20 min0done
This subtopic covers three forms of the queue that come up often in exams and in real programs. A deque adds and removes at both ends; a stack and a queue are special ways of using it.
A queue from two stacks is an exam favourite and introduces the idea of amortized cost. Round-robin is how operating systems give processes turns, and it is built on a queue.