QUEUE
AROOSA SATTI
QUEUE
• Ordered collection of homogenous elements
• Non primitive linear data structure
• A new element is added at one end called rear
end the existing elements are deleted from the
other end front end.
• This mechanism is called first in first out
(FIFO)
Queue in our life
Queue example
Queue example in computer, accessing the
printer in multi user environment
Pc-4 Pc-3 Pc-2Pc-1
Front
Rear
PRINTER QUEUE
Real World Applications
Cashier lines in any store
Check out at a bookstore
Bank/ATM
A line of cars at a toll booth
Queue Operations
 The main operations of queue are as follow
 Enqueue:insertan element in queue
 Dequeue :remove an element from queue
 Queue front: return the first element of queue
 Queue End :Return the last element of queue
Is full()
Is empty()
QUEUE

More Related Content

PDF
How to read stack trace in c#
PDF
State space analysis
PDF
PPT
State space modeling_introduction
PPTX
Queue Implementation Using Array & Linked List
PPT
Bebepatedamande
PPTX
How to read stack trace in c#
State space analysis
State space modeling_introduction
Queue Implementation Using Array & Linked List
Bebepatedamande

Viewers also liked (12)

PPT
Washed ashore
PDF
Surprises du monde vivant XXXV - Les Adieux
PPTX
Sexy and we Know it
PPS
Fotos curiosas
ODP
Epic fail
PPTX
Sirena Selena 108-160
PPT
VIRGINIDAD
PDF
What Makes You Horny
PPT
What Makes Bart te Riele Horny?
PDF
Xu Wei Lun
Washed ashore
Surprises du monde vivant XXXV - Les Adieux
Sexy and we Know it
Fotos curiosas
Epic fail
Sirena Selena 108-160
VIRGINIDAD
What Makes You Horny
What Makes Bart te Riele Horny?
Xu Wei Lun
Ad

Similar to QUEUE (20)

PPTX
UNIT-2.pptx
PDF
Lab 07 (2).pdfbdvdyve dhdysbsnjsnsvdvydbdns
PPTX
PDF
Lesson 4 - Queue ADT.pdf
PPT
The Queue in Data structure and algorithm
PPT
Chapter 4.pptmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
PPTX
Data Structures - Lecture 6 [queues]
PPT
Queue AS an ADT (Abstract Data Type)
PPTX
Queue_Types_and_Applications9568665.pptx
PPT
queue data structures-linear data structure
PPTX
DS10-QUEUE0000000000000000000000000000000000000.pptx
PPTX
Queue types of queue and algorithms and queue
PPTX
CHAPTER 4 Learning QUEUE data structure.pptx
PPTX
Stack and Queue.pptx
PPTX
Basic Queue Operation in DataStructure.pptx
PDF
4-Stack --------------------------------in C++.pdf
PPTX
STACK AND QUEUES APPLICATIONS, INFIX TO POST FIX
PPTX
PYTHON PYTHON PYTHON PYTHON PYTHON PYTHON
UNIT-2.pptx
Lab 07 (2).pdfbdvdyve dhdysbsnjsnsvdvydbdns
Lesson 4 - Queue ADT.pdf
The Queue in Data structure and algorithm
Chapter 4.pptmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Data Structures - Lecture 6 [queues]
Queue AS an ADT (Abstract Data Type)
Queue_Types_and_Applications9568665.pptx
queue data structures-linear data structure
DS10-QUEUE0000000000000000000000000000000000000.pptx
Queue types of queue and algorithms and queue
CHAPTER 4 Learning QUEUE data structure.pptx
Stack and Queue.pptx
Basic Queue Operation in DataStructure.pptx
4-Stack --------------------------------in C++.pdf
STACK AND QUEUES APPLICATIONS, INFIX TO POST FIX
PYTHON PYTHON PYTHON PYTHON PYTHON PYTHON
Ad

Recently uploaded (20)

PDF
My India Quiz Book_20210205121199924.pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
English Textual Question & Ans (12th Class).pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Education and Perspectives of Education.pptx
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
Hazard Identification & Risk Assessment .pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
Race Reva University – Shaping Future Leaders in Artificial Intelligence
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
My India Quiz Book_20210205121199924.pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
Introduction to pro and eukaryotes and differences.pptx
English Textual Question & Ans (12th Class).pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Education and Perspectives of Education.pptx
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
Hazard Identification & Risk Assessment .pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Race Reva University – Shaping Future Leaders in Artificial Intelligence
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...

QUEUE

  • 2. QUEUE • Ordered collection of homogenous elements • Non primitive linear data structure • A new element is added at one end called rear end the existing elements are deleted from the other end front end. • This mechanism is called first in first out (FIFO)
  • 4. Queue example Queue example in computer, accessing the printer in multi user environment Pc-4 Pc-3 Pc-2Pc-1 Front Rear PRINTER QUEUE
  • 5. Real World Applications Cashier lines in any store Check out at a bookstore Bank/ATM A line of cars at a toll booth
  • 6. Queue Operations  The main operations of queue are as follow  Enqueue:insertan element in queue  Dequeue :remove an element from queue  Queue front: return the first element of queue  Queue End :Return the last element of queue Is full() Is empty()