SlideShare a Scribd company logo
Damian Gordon
 What is a queue?
 What is a queue?
 What is a queue?
5 31 47 81 71 10
 What is a queue?
5 31 47 81 71 10
 What is a queue?
 It’s a structure that conforms to the principle
of First In, First Out (FIFO).
 The first item to join the queue is the first
item to be served.
 What is a stack?
 What is a stack?
5 31 47 81 71 10
 What is a stack?
5 31 47 81 71 10
 What is a stack?
 It’s a structure that conforms to the principle
of Last In, First Out (LIFO).
 The last item to join the stack is the first item
to be served.
 What is a heap?
 What is a heap?
 What is a heap?
31 5
47
10
71
81
1
 What is a heap?
31 5
47
10
71
81
1
 What is a heap?
 A heap is a tree-like structure generally each
node has two children nodes, where the lower
values are stored near the bottom of the tree
and higher values towards the top of the tree.
 What is a heap?
 MORE FORMALLY:
 The heap property:
◦ If A is a parent node of B then the key of node A is
ordered with respect to the key of node B with the
same ordering applying across the heap
 What is a queue?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
 What is a queue?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
 What is a stack?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
 What is a stack?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
 What is a heap?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
 What is a heap?
9
10
11
12
13
14
15
16
18
19
1 2
3 4
5
6
7 8
0
17
20
Based on value not location

More Related Content

PPTX
Wherefore XML: A Whimsical Look at the History of Markup Languages
PPTX
Operating Systems: Processor Management
PPTX
Understanding the Concepts and Applications of Stack and Queue
PPTX
Ppt presentation of queues
PDF
Basic Terminologies of Queue...Basic operations on Queue
PPTX
Queue types of queue and algorithms and queue
PPT
Queue Data Structure
PPTX
Presentation on queue
Wherefore XML: A Whimsical Look at the History of Markup Languages
Operating Systems: Processor Management
Understanding the Concepts and Applications of Stack and Queue
Ppt presentation of queues
Basic Terminologies of Queue...Basic operations on Queue
Queue types of queue and algorithms and queue
Queue Data Structure
Presentation on queue

Similar to Operating Systems: Data Structures (20)

PPTX
Data Structures and Agorithm: DS 09 Queue.pptx
PPTX
Queue using array with all the diagrams ppt.pptx
PPTX
Data structure
PDF
wepik-demystifying-data-structures-understanding-queues-20240417143621GPlM.pdf
PPTX
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
PPTX
Data structures
PPTX
DS ppt1.pptx.c programing. Engineering. Data structure
PPT
The Queue in Data structure and algorithm
PPTX
DSA MCA Stack-and-Queue-Data-Structures.pptx
PDF
PPT
Difference between stack and queue
PPT
linked list in c++
PPTX
Data structure day4
PPTX
CHAPTER 4 Learning QUEUE data structure.pptx
PPT
Chapter 7 ds
DOC
Advance data structure
PPTX
Queue ppt
PPTX
DS UNIT2QUEUES.pptx
Data Structures and Agorithm: DS 09 Queue.pptx
Queue using array with all the diagrams ppt.pptx
Data structure
wepik-demystifying-data-structures-understanding-queues-20240417143621GPlM.pdf
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
Data structures
DS ppt1.pptx.c programing. Engineering. Data structure
The Queue in Data structure and algorithm
DSA MCA Stack-and-Queue-Data-Structures.pptx
Difference between stack and queue
linked list in c++
Data structure day4
CHAPTER 4 Learning QUEUE data structure.pptx
Chapter 7 ds
Advance data structure
Queue ppt
DS UNIT2QUEUES.pptx
Ad

More from Damian T. Gordon (20)

PPTX
Introduction to Prompts and Prompt Engineering
PPTX
Introduction to Vibe Coding and Vibe Engineering
PPTX
TRIZ: Theory of Inventive Problem Solving
PPTX
Some Ethical Considerations of AI and GenAI
PPTX
Some Common Errors that Generative AI Produces
PPTX
The Use of Data and Datasets in Data Science
PPTX
A History of Different Versions of Microsoft Windows
PPTX
Writing an Abstract: A Question-based Approach
PPTX
Using GenAI for Universal Design for Learning
DOC
A CheckSheet for Inclusive Software Design
PPTX
A History of Versions of the Apple MacOS
PPTX
68 Ways that Data Science and AI can help address the UN Sustainability Goals
PPTX
Copyright and Creative Commons Considerations
PPTX
Exam Preparation: Some Ideas and Suggestions
PPTX
Studying and Notetaking: Some Suggestions
PPTX
The Growth Mindset: Explanations and Activities
PPTX
Hyperparameter Tuning in Neural Networks
PPTX
Early 20th Century Modern Art: Movements and Artists
PPTX
An Introduction to Generative Artificial Intelligence
PPTX
An Introduction to Green Computing with a fun quiz.
Introduction to Prompts and Prompt Engineering
Introduction to Vibe Coding and Vibe Engineering
TRIZ: Theory of Inventive Problem Solving
Some Ethical Considerations of AI and GenAI
Some Common Errors that Generative AI Produces
The Use of Data and Datasets in Data Science
A History of Different Versions of Microsoft Windows
Writing an Abstract: A Question-based Approach
Using GenAI for Universal Design for Learning
A CheckSheet for Inclusive Software Design
A History of Versions of the Apple MacOS
68 Ways that Data Science and AI can help address the UN Sustainability Goals
Copyright and Creative Commons Considerations
Exam Preparation: Some Ideas and Suggestions
Studying and Notetaking: Some Suggestions
The Growth Mindset: Explanations and Activities
Hyperparameter Tuning in Neural Networks
Early 20th Century Modern Art: Movements and Artists
An Introduction to Generative Artificial Intelligence
An Introduction to Green Computing with a fun quiz.
Ad

Recently uploaded (20)

PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Complications of Minimal Access Surgery at WLH
PDF
Classroom Observation Tools for Teachers
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Module 4: Burden of Disease Tutorial Slides S2 2025
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Complications of Minimal Access Surgery at WLH
Classroom Observation Tools for Teachers
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial disease of the cardiovascular and lymphatic systems
Chinmaya Tiranga quiz Grand Finale.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Operating Systems: Data Structures

  • 2.  What is a queue?
  • 3.  What is a queue?
  • 4.  What is a queue? 5 31 47 81 71 10
  • 5.  What is a queue? 5 31 47 81 71 10
  • 6.  What is a queue?  It’s a structure that conforms to the principle of First In, First Out (FIFO).  The first item to join the queue is the first item to be served.
  • 7.  What is a stack?
  • 8.  What is a stack? 5 31 47 81 71 10
  • 9.  What is a stack? 5 31 47 81 71 10
  • 10.  What is a stack?  It’s a structure that conforms to the principle of Last In, First Out (LIFO).  The last item to join the stack is the first item to be served.
  • 11.  What is a heap?
  • 12.  What is a heap?
  • 13.  What is a heap? 31 5 47 10 71 81 1
  • 14.  What is a heap? 31 5 47 10 71 81 1
  • 15.  What is a heap?  A heap is a tree-like structure generally each node has two children nodes, where the lower values are stored near the bottom of the tree and higher values towards the top of the tree.
  • 16.  What is a heap?  MORE FORMALLY:  The heap property: ◦ If A is a parent node of B then the key of node A is ordered with respect to the key of node B with the same ordering applying across the heap
  • 17.  What is a queue? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20
  • 18.  What is a queue? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20
  • 19.  What is a stack? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20
  • 20.  What is a stack? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20
  • 21.  What is a heap? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20
  • 22.  What is a heap? 9 10 11 12 13 14 15 16 18 19 1 2 3 4 5 6 7 8 0 17 20 Based on value not location