Applications of Queue, Circular Queue, Priority Queue, Deque
Applications of Queue, Circular Queue, Priority Queue, Deque
Queue is an abstract data structure that follows the FIFO (First In First Out) principle
where an element that is added first will be deleted first. Also, there are linear data
structures as the elements are linearly arranged. The following are the various
applications of queue.
Traffic light functioning is the best example for circular queues. The
colors in the traffic light follow a circular pattern.
In page replacement algorithms, a circular list of pages is maintained
and when a page needs to be replaced, the page in the front of the
queue will be chosen.
Applications of deque
Pallindrome checker.
A-steal job scheduling algorithm