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

Similar to Operating Systems: Data Structures (20)

PPTX
Data Structures and Agorithm: DS 09 Queue.pptx
RashidFaridChishti
 
PPTX
Queue using array with all the diagrams ppt.pptx
pwstudent403
 
PPTX
Data structure
ashutoshsingh1011
 
PDF
wepik-demystifying-data-structures-understanding-queues-20240417143621GPlM.pdf
avishekpradhan24
 
PPTX
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
binsyozane
 
PPTX
Data structures
naveeth babu
 
PPTX
DS ppt1.pptx.c programing. Engineering. Data structure
dibyajyotijena05
 
PPT
The Queue in Data structure and algorithm
SourajitMaity1
 
PPTX
DSA MCA Stack-and-Queue-Data-Structures.pptx
deepuranjankumar08
 
PDF
Queue
pooja kumari
 
PPT
Difference between stack and queue
Pulkitmodi1998
 
PPT
linked list in c++
YaminiLakshmi Meduri
 
PPTX
Data structure day4
Mohammed Elsdody
 
PPT
Chapter 7 ds
Hanif Durad
 
DOC
Advance data structure
ashok kumar
 
PPTX
Queue ppt
SouravKumar328
 
PPTX
DS UNIT2QUEUES.pptx
VeerannaKotagi1
 
PPT
Fallsem2015 16 cp1699-20-jul-2015_rm01_stacks_and_queues
SnehilKeshari
 
Data Structures and Agorithm: DS 09 Queue.pptx
RashidFaridChishti
 
Queue using array with all the diagrams ppt.pptx
pwstudent403
 
Data structure
ashutoshsingh1011
 
wepik-demystifying-data-structures-understanding-queues-20240417143621GPlM.pdf
avishekpradhan24
 
GROUP2.pptxfdfffffffffffffffffffffffffffffffffffffffffff
binsyozane
 
Data structures
naveeth babu
 
DS ppt1.pptx.c programing. Engineering. Data structure
dibyajyotijena05
 
The Queue in Data structure and algorithm
SourajitMaity1
 
DSA MCA Stack-and-Queue-Data-Structures.pptx
deepuranjankumar08
 
Difference between stack and queue
Pulkitmodi1998
 
linked list in c++
YaminiLakshmi Meduri
 
Data structure day4
Mohammed Elsdody
 
Chapter 7 ds
Hanif Durad
 
Advance data structure
ashok kumar
 
Queue ppt
SouravKumar328
 
DS UNIT2QUEUES.pptx
VeerannaKotagi1
 
Fallsem2015 16 cp1699-20-jul-2015_rm01_stacks_and_queues
SnehilKeshari
 

More from Damian T. Gordon (20)

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

Recently uploaded (20)

PDF
The-Beginnings-of-Indian-Civilisation.pdf/6th class new ncert social/by k san...
Sandeep Swamy
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PDF
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
LEGAL ASPECTS OF PSYCHIATRUC NURSING.pptx
PoojaSen20
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PPTX
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
PPTX
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
The-Beginnings-of-Indian-Civilisation.pdf/6th class new ncert social/by k san...
Sandeep Swamy
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
LEGAL ASPECTS OF PSYCHIATRUC NURSING.pptx
PoojaSen20
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
digestive system for Pharm d I year HAP
rekhapositivity
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
Ad

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