Stack & Queue in Data Structure: Submitted To
Stack & Queue in Data Structure: Submitted To
Submitted to,
Associate Professor Md. Ashek-Al-Aziz
Chairman of CSE Department
University Of Development
Alternative
Submitted by,
Name: Samsul Arafin Shanto
Student ID: 234023
Department of CSE, Batch 63th
University Of Development
Alternative
Data Structure (Stack)
Introduct
ion
A Stack is linear data structure.
A stack is a list of elements in which
an element may be inserted or
deleted only at one end, called the
top of the stack.
Stack principle is LIFO (last in, first
out). According to this, which element
inserted last on to the stack that
element deleted first from the stack.
As the items can be added or
removed only from the top i.e. the last
item to be added to a stack is the first
item to be removed.
Operations on
Stack
The two basic operations associated with stacks
are:
1. Push
2. Pop