SlideShare a Scribd company logo
CREATED BY “SYED SALMAN JILANI“
AND COMPANIONS
GROUPNAME : GUNS & ROSES
STACK
TABLE OF CONTENTS
DEFINE STACK
EXAMPLES
OVERFLOW UNDEFLOW
ADDITIONAL OPERATION
DEFINE STACK
 A stack is a container of objects that
are inserted and removed according
to the last-in first-out (LIFO) principle
 There are two Basic functions of stack
 PUSH & POP
 Stack is a Limited Access Data structure
EXAMPLES
 There are some real life Examples of Stack to
understand its structure
 Stack of Assignment Files Rings Pole and Gun
Magazines
OVERFLOW & UNDERFLOW
 A STACK cannot grow indefinitely because there is
always a limit to memory when it comes to limit and yet
another operation tries to PUSH data into the stack then
a stack overflow occurs
 If the stack is Empty and yet a pop operation attempt
this is called underflow
 Additional function are used to stop further PUSH & POP
ADDITIONAL OPERATIONS
 Duplicate: the top item is popped, and then pushed again
(twice), so that an additional copy of the former top item is
now on top, with the original below it
 Peek: the topmost item is returned but the stack pointer is not
changed that the item remains on the stack This is also
called top
 Swap or exchange: the two topmost items on the stack
exchange places
 Rotate (or Roll): the n topmost items are moved on the stack
in a rotating fashion.
Stack

More Related Content

Viewers also liked

Ticketmaster datascience
Ticketmaster datascienceTicketmaster datascience
Ticketmaster datascience
Vaclav Petricek
 
Export procedure and documentation
Export procedure and documentationExport procedure and documentation
Export procedure and documentationRishi Dange
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
salmanjilani
 
Aswaja (bab iv) kls x genap
Aswaja (bab iv) kls x genapAswaja (bab iv) kls x genap
Aswaja (bab iv) kls x genaprahman rahman
 
Observasi Padi Lokal, Ganyong dan Cabe Jamu
Observasi Padi Lokal, Ganyong dan Cabe JamuObservasi Padi Lokal, Ganyong dan Cabe Jamu
Observasi Padi Lokal, Ganyong dan Cabe Jamu
Fita d'Pooh
 
Cloud COmputing
Cloud COmputingCloud COmputing
Cloud COmputing
salmanjilani
 
Mri for identifying types of fistulae
Mri for identifying types of fistulaeMri for identifying types of fistulae
Mri for identifying types of fistulaeYoussri Gaweesh
 
Pentium processor
Pentium processorPentium processor
Pentium processor
salmanjilani
 
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikan
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikanUpaya peningkatan kinerja guru untuk meningkatkan mutu pendidikan
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikanrahman rahman
 

Viewers also liked (10)

Ticketmaster datascience
Ticketmaster datascienceTicketmaster datascience
Ticketmaster datascience
 
Export procedure and documentation
Export procedure and documentationExport procedure and documentation
Export procedure and documentation
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Aswaja (bab iv) kls x genap
Aswaja (bab iv) kls x genapAswaja (bab iv) kls x genap
Aswaja (bab iv) kls x genap
 
Observasi Padi Lokal, Ganyong dan Cabe Jamu
Observasi Padi Lokal, Ganyong dan Cabe JamuObservasi Padi Lokal, Ganyong dan Cabe Jamu
Observasi Padi Lokal, Ganyong dan Cabe Jamu
 
Cloud COmputing
Cloud COmputingCloud COmputing
Cloud COmputing
 
Mri for identifying types of fistulae
Mri for identifying types of fistulaeMri for identifying types of fistulae
Mri for identifying types of fistulae
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikan
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikanUpaya peningkatan kinerja guru untuk meningkatkan mutu pendidikan
Upaya peningkatan kinerja guru untuk meningkatkan mutu pendidikan
 
Ski kls xii
Ski kls xiiSki kls xii
Ski kls xii
 

Similar to Stack

stack coding.pptx
stack coding.pptxstack coding.pptx
stack coding.pptx
JamJahanzaib
 
Data structure day3
Data structure day3Data structure day3
Data structure day3
Mohammed Elsdody
 
Operation on stack
Operation on stackOperation on stack
Operation on stack
chetan handa
 
Lecture#5 - Stack ADT.pptx
Lecture#5 - Stack ADT.pptxLecture#5 - Stack ADT.pptx
Lecture#5 - Stack ADT.pptx
SLekshmiNair
 
Data structure.pdf
Data structure.pdfData structure.pdf
Data structure.pdf
piyushagarwal279293
 
Stack converted
Stack convertedStack converted
Stack converted
irfanali108553
 
Stack project
Stack projectStack project
Stack project
Amr Aboelgood
 
Chapter 5 Stack and Queue.pdf
Chapter 5 Stack and Queue.pdfChapter 5 Stack and Queue.pdf
Chapter 5 Stack and Queue.pdf
GirT2
 
Data structure Stack
Data structure StackData structure Stack
Data structure Stack
Praveen Vishwakarma
 
Stacks
StacksStacks
CD3291 2.5 stack.pptx
CD3291 2.5 stack.pptxCD3291 2.5 stack.pptx
CD3291 2.5 stack.pptx
mareeswari15
 
Stack and its operations
Stack and its operationsStack and its operations
Stack and its operations
V.V.Vanniaperumal College for Women
 
Stacks and Queue,Concept of Stack,LIFO,Fifo,
Stacks and Queue,Concept of Stack,LIFO,Fifo,Stacks and Queue,Concept of Stack,LIFO,Fifo,
Stacks and Queue,Concept of Stack,LIFO,Fifo,
shaikhdaniyal8603
 
Stack operation algorithms with example
Stack operation algorithms with exampleStack operation algorithms with example
Stack operation algorithms with example
NamanKikani
 
Java Stack (Pilha)
Java Stack (Pilha)Java Stack (Pilha)
Java Stack (Pilha)
Samuel Santos
 
Difference between stack and queue
Difference between stack and queueDifference between stack and queue
Difference between stack and queue
Pulkitmodi1998
 
Stack
StackStack

Similar to Stack (19)

stack coding.pptx
stack coding.pptxstack coding.pptx
stack coding.pptx
 
Data structure day3
Data structure day3Data structure day3
Data structure day3
 
Operation on stack
Operation on stackOperation on stack
Operation on stack
 
Lecture#5 - Stack ADT.pptx
Lecture#5 - Stack ADT.pptxLecture#5 - Stack ADT.pptx
Lecture#5 - Stack ADT.pptx
 
Data structure.pdf
Data structure.pdfData structure.pdf
Data structure.pdf
 
Stack converted
Stack convertedStack converted
Stack converted
 
Stack project
Stack projectStack project
Stack project
 
Chapter 5 Stack and Queue.pdf
Chapter 5 Stack and Queue.pdfChapter 5 Stack and Queue.pdf
Chapter 5 Stack and Queue.pdf
 
Data structure Stack
Data structure StackData structure Stack
Data structure Stack
 
Stacks
StacksStacks
Stacks
 
CD3291 2.5 stack.pptx
CD3291 2.5 stack.pptxCD3291 2.5 stack.pptx
CD3291 2.5 stack.pptx
 
Stack and its operations
Stack and its operationsStack and its operations
Stack and its operations
 
Stacks and Queue,Concept of Stack,LIFO,Fifo,
Stacks and Queue,Concept of Stack,LIFO,Fifo,Stacks and Queue,Concept of Stack,LIFO,Fifo,
Stacks and Queue,Concept of Stack,LIFO,Fifo,
 
Lect 15-16 Zaheer Abbas
Lect 15-16 Zaheer  AbbasLect 15-16 Zaheer  Abbas
Lect 15-16 Zaheer Abbas
 
Stack operation algorithms with example
Stack operation algorithms with exampleStack operation algorithms with example
Stack operation algorithms with example
 
Java Stack (Pilha)
Java Stack (Pilha)Java Stack (Pilha)
Java Stack (Pilha)
 
Algo>Stacks
Algo>StacksAlgo>Stacks
Algo>Stacks
 
Difference between stack and queue
Difference between stack and queueDifference between stack and queue
Difference between stack and queue
 
Stack
StackStack
Stack
 

Recently uploaded

Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
Trending Blogers
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
zoowe
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
JeyaPerumal1
 
Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027
harveenkaur52
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 

Recently uploaded (20)

Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
2.Cellular Networks_The final stage of connectivity is achieved by segmenting...
 
Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 

Stack

  • 1.
  • 2. CREATED BY “SYED SALMAN JILANI“ AND COMPANIONS GROUPNAME : GUNS & ROSES
  • 3. STACK TABLE OF CONTENTS DEFINE STACK EXAMPLES OVERFLOW UNDEFLOW ADDITIONAL OPERATION
  • 4. DEFINE STACK  A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle  There are two Basic functions of stack  PUSH & POP  Stack is a Limited Access Data structure
  • 5. EXAMPLES  There are some real life Examples of Stack to understand its structure  Stack of Assignment Files Rings Pole and Gun Magazines
  • 6. OVERFLOW & UNDERFLOW  A STACK cannot grow indefinitely because there is always a limit to memory when it comes to limit and yet another operation tries to PUSH data into the stack then a stack overflow occurs  If the stack is Empty and yet a pop operation attempt this is called underflow  Additional function are used to stop further PUSH & POP
  • 7. ADDITIONAL OPERATIONS  Duplicate: the top item is popped, and then pushed again (twice), so that an additional copy of the former top item is now on top, with the original below it  Peek: the topmost item is returned but the stack pointer is not changed that the item remains on the stack This is also called top  Swap or exchange: the two topmost items on the stack exchange places  Rotate (or Roll): the n topmost items are moved on the stack in a rotating fashion.