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.
QUEUE
Agner Krarup Erlang (1878-1929) the Danish
telecommunication engineer started applying principles of
queuing theory in the area of telecommunications.
QUEUE--
Operations on Queue---
 1.Insertion :
Placing an item in a queue is called “insertion or “enqueue”, which is done at the end
of the queue called “rear”.
 2.Deletion :
Removing an item from a queue is called “deletion or “dequeue” , which is done at the
other end of the queue called “front”
Queue
Types of Queues--
1. Deque
2. Circular Queue
3. Priority Queue
DEQUES--
 1.Deque stands for double ended queue.
 2.Elements can be inserted or deleted at either end.
 3. Also known as head-tail linked list.
TYPE OF DEQUEUE--
 Input restricted dequeue
Element can be inserted only at one end.
Element can be removed by both end.
 Output restricted dequeuer
Element can be inserted at both end.
Element can be removed by one end.
CIRCULAR QUEUES---
 • Circular queue are used to remove the drawback of simple queue.
 • Both the front and the rear pointers wrap around to the beginning of the array.
 •It is also called as “Ring buffer”
PRIORITY QUEUE---
 1.It is collection of elements where elements are stored according to the their
priority levels.
 2.Inserting and removing of elements from queue is decided by the priority of the
elements.
 3. An element of the higher priority is processed first.
 4.Two element of same priority are processed on first-come-first-served basis.
Example: Suppose you have a few assignment
from different subjects.Which assignment will you
want to do first?
Subject Due date Priority
DLD 6 OCT 2020 1
OR 12 OCT 2020 3
DSN 10 OCT 2020 2
DSA 13 OCT 2020 4
APPLICATIONS--
**Real world applications**
 Cashier line in any store.
 Waiting on hold for tech support.
 people on an escalator.
 Checkout at any book store
 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.
Real world applications---
Please play this Video
Real world applications---
Applications related to computer science:
 1.When data is transferred asynchronously between two processes.
eg. IO Buffers.
 2.When a resource is shared among multiple consumers. Examples include CPU
scheduling, Disk Scheduling.
 3.In recognizing palindrome.
 4.In shared resources management.
 5.Keyboard buffer.
 6.Round robin scheduling.
 7.Job scheduling. 8.Simulation
DHEERENDRA
KUMAR
19BEE10025

More Related Content

PDF
Data Structures 01
PDF
PPTX
Stack and queue
PPTX
2 introduction to data structure
PPTX
Presentation on queue
PPTX
Stack Data structure
Data Structures 01
Stack and queue
2 introduction to data structure
Presentation on queue
Stack Data structure

What's hot (20)

PPT
basics of queues
PPT
Chapter 10: hashing data structure
PPTX
Ppt presentation of queues
PDF
An Introduction to the C++ Standard Library
PPTX
Java Arrays and DateTime Functions
PPTX
5 Array List, data structure course
PPTX
القوائم المترابطة Linked List باستخدام لغة جافا
DOCX
Stacks in data structure
PPT
PPTX
PPTX
Ds stack & queue
PPTX
General Data structures
PPTX
Ml study notes id3
PPTX
Applications of queue
PPTX
المحاضرة الثامنة: تراكيب البيانات الطابور
ODP
Java - Collections
PPTX
3 searching algorithms in Java
PPSX
Presentation on ILU
PPTX
7 stack and vector
PPTX
Apriori algorithm
basics of queues
Chapter 10: hashing data structure
Ppt presentation of queues
An Introduction to the C++ Standard Library
Java Arrays and DateTime Functions
5 Array List, data structure course
القوائم المترابطة Linked List باستخدام لغة جافا
Stacks in data structure
Ds stack & queue
General Data structures
Ml study notes id3
Applications of queue
المحاضرة الثامنة: تراكيب البيانات الطابور
Java - Collections
3 searching algorithms in Java
Presentation on ILU
7 stack and vector
Apriori algorithm
Ad

Similar to Queue (20)

PPT
Chapter 7 ds
PPT
The Queue in Data structure and algorithm
PPT
Queue Data Structure
PPTX
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
PPTX
DS10-QUEUE0000000000000000000000000000000000000.pptx
PPTX
stack data structure jnv chandrpur maharastra.pptx
PPTX
STACK AND QUEUES APPLICATIONS, INFIX TO POST FIX
PPTX
PYTHON PYTHON PYTHON PYTHON PYTHON PYTHON
PDF
5-Queue-----------------------------in c++
PPT
Data Structures by Maneesh Boddu
PPTX
Application of Queue.pptx
PPT
Data Structures 2
PPTX
Stack_and_Queue_Presentation_Final (1).pptx
PPTX
Stack_and_Queue_Presentation_Final (1).pptx
PPTX
Queue types of queue and algorithms and queue
PDF
Basic Terminologies of Queue...Basic operations on Queue
PPTX
DSA MCA Stack-and-Queue-Data-Structures.pptx
PDF
Lesson 4 - Queue ADT.pdf
PPTX
Ist year Msc,2nd sem module1
Chapter 7 ds
The Queue in Data structure and algorithm
Queue Data Structure
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
DS10-QUEUE0000000000000000000000000000000000000.pptx
stack data structure jnv chandrpur maharastra.pptx
STACK AND QUEUES APPLICATIONS, INFIX TO POST FIX
PYTHON PYTHON PYTHON PYTHON PYTHON PYTHON
5-Queue-----------------------------in c++
Data Structures by Maneesh Boddu
Application of Queue.pptx
Data Structures 2
Stack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptx
Queue types of queue and algorithms and queue
Basic Terminologies of Queue...Basic operations on Queue
DSA MCA Stack-and-Queue-Data-Structures.pptx
Lesson 4 - Queue ADT.pdf
Ist year Msc,2nd sem module1
Ad

More from DheerendraKumar43 (9)

PPTX
Temperature measurement using nodemcu esp8266
PPTX
Buck converter in MATLAB using PID controller
PPTX
Control system done by dheerendra
PPTX
PPTX
Diodes // LED // OLED
PPTX
momentum conservation
PPTX
energy conservation
PPTX
Maths ppt partial diffrentian eqn
PPTX
Photodiode / diode
Temperature measurement using nodemcu esp8266
Buck converter in MATLAB using PID controller
Control system done by dheerendra
Diodes // LED // OLED
momentum conservation
energy conservation
Maths ppt partial diffrentian eqn
Photodiode / diode

Recently uploaded (20)

PPTX
CyberSecurity Mobile and Wireless Devices
PPTX
Measurement Uncertainty and Measurement System analysis
PPTX
Feature types and data preprocessing steps
PDF
Java Basics-Introduction and program control
PPTX
Petroleum Refining & Petrochemicals.pptx
PPTX
mechattonicsand iotwith sensor and actuator
PDF
Soil Improvement Techniques Note - Rabbi
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
20250617 - IR - Global Guide for HR - 51 pages.pdf
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Design Guidelines and solutions for Plastics parts
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
Abrasive, erosive and cavitation wear.pdf
CyberSecurity Mobile and Wireless Devices
Measurement Uncertainty and Measurement System analysis
Feature types and data preprocessing steps
Java Basics-Introduction and program control
Petroleum Refining & Petrochemicals.pptx
mechattonicsand iotwith sensor and actuator
Soil Improvement Techniques Note - Rabbi
August -2025_Top10 Read_Articles_ijait.pdf
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Information Storage and Retrieval Techniques Unit III
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
20250617 - IR - Global Guide for HR - 51 pages.pdf
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Design Guidelines and solutions for Plastics parts
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Abrasive, erosive and cavitation wear.pdf

Queue

  • 1. 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. QUEUE
  • 2. Agner Krarup Erlang (1878-1929) the Danish telecommunication engineer started applying principles of queuing theory in the area of telecommunications.
  • 4. Operations on Queue---  1.Insertion : Placing an item in a queue is called “insertion or “enqueue”, which is done at the end of the queue called “rear”.  2.Deletion : Removing an item from a queue is called “deletion or “dequeue” , which is done at the other end of the queue called “front”
  • 6. Types of Queues-- 1. Deque 2. Circular Queue 3. Priority Queue
  • 7. DEQUES--  1.Deque stands for double ended queue.  2.Elements can be inserted or deleted at either end.  3. Also known as head-tail linked list.
  • 8. TYPE OF DEQUEUE--  Input restricted dequeue Element can be inserted only at one end. Element can be removed by both end.  Output restricted dequeuer Element can be inserted at both end. Element can be removed by one end.
  • 9. CIRCULAR QUEUES---  • Circular queue are used to remove the drawback of simple queue.  • Both the front and the rear pointers wrap around to the beginning of the array.  •It is also called as “Ring buffer”
  • 10. PRIORITY QUEUE---  1.It is collection of elements where elements are stored according to the their priority levels.  2.Inserting and removing of elements from queue is decided by the priority of the elements.  3. An element of the higher priority is processed first.  4.Two element of same priority are processed on first-come-first-served basis.
  • 11. Example: Suppose you have a few assignment from different subjects.Which assignment will you want to do first? Subject Due date Priority DLD 6 OCT 2020 1 OR 12 OCT 2020 3 DSN 10 OCT 2020 2 DSA 13 OCT 2020 4
  • 12. APPLICATIONS-- **Real world applications**  Cashier line in any store.  Waiting on hold for tech support.  people on an escalator.  Checkout at any book store  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.
  • 15. Applications related to computer science:  1.When data is transferred asynchronously between two processes. eg. IO Buffers.  2.When a resource is shared among multiple consumers. Examples include CPU scheduling, Disk Scheduling.  3.In recognizing palindrome.  4.In shared resources management.  5.Keyboard buffer.  6.Round robin scheduling.  7.Job scheduling. 8.Simulation