DSA Queue Part 1
DSA Queue Part 1
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Basic Operations of Queue
A queue is an object (an abstract data structure - ADT) that allows the
following operations:
•Peek: Get the value of the front of the queue without removing it.
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Working of Queue
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Complexity Analysis &
Applications of Queue
Applications of Queue
•CPU scheduling, Disk Scheduling
•When data is transferred asynchronously between two processes. The queue is
used for synchronization. For example: IO Buffers, pipes, file IO, etc.
•Handling of interrupts in real-time systems.
•Call Center phone systems use Queues to hold people calling them in order.
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Types of Queue
In a simple queue, insertion takes place at the rear and removal occurs at the
front. It strictly follows the FIFO (First in First out) rule.
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video