Data Structure Presentation
Data Structure Presentation
Stack
Team Members
Mahmudul Hasan 221-15-4732
Safat Ahmed Siam 221-15-5958
K.M.Nure Tanvir Siddique 221-15-5223
Md. Abul Hasnat Zilan 221-15-5745
Stacks: A LIFO Data Structure
In this presentation, we will explore the concept of
stacks, a fundamental data structure in computer
science. Stacks follow the LIFO (Last In, First Out)
principle, similar to a stack of plates where you
remove the plate you added last. We will discuss
their operations, implementations, and real-world
applications.
What is a Stack?
• Push: Adds an
element to the top of
the stack
• Pop: Removes and
returns the top
element from the
stack
• Peek: Returns the
value of the top
element without
removing it
Stack Implementations