This document discusses the POP operation in stacks. POP removes elements from the stack, deleting them in reverse order of how they were added. It works by removing the topmost element, making the next element the new top, and decrementing the top pointer. An example shows five elements A-E being pushed onto a stack and then popped off in reverse order E-A. The POP algorithm checks for underflow and removes the top element, decrementing the top pointer.
a. Concept and Definition
b. Binary Tree
c. Introduction and application
d. Operation
e. Types of Binary Tree
• Complete
• Strictly
• Almost Complete
f. Huffman algorithm
g. Binary Search Tree
• Insertion
• Deletion
• Searching
h. Tree Traversal
• Pre-order traversal
• In-order traversal
• Post-order traversal
Slides at myblog
http://www.ashimlamichhane.com.np/2016/07/tree-slide-for-data-structure-and-algorithm/
Assignments at github
https://github.com/ashim888/dataStructureAndAlgorithm/tree/dev/Assignments/assignment_7
Heap Sort in Design and Analysis of algorithmssamairaakram
Brief description of Heap Sort and its types.it includes Binary Tree and its types. analysis and algorithm of Heap Sort. comparison b/w Heap,Qucik and Merge Sort.
a. Concept and Definition
b. Binary Tree
c. Introduction and application
d. Operation
e. Types of Binary Tree
• Complete
• Strictly
• Almost Complete
f. Huffman algorithm
g. Binary Search Tree
• Insertion
• Deletion
• Searching
h. Tree Traversal
• Pre-order traversal
• In-order traversal
• Post-order traversal
Slides at myblog
http://www.ashimlamichhane.com.np/2016/07/tree-slide-for-data-structure-and-algorithm/
Assignments at github
https://github.com/ashim888/dataStructureAndAlgorithm/tree/dev/Assignments/assignment_7
Heap Sort in Design and Analysis of algorithmssamairaakram
Brief description of Heap Sort and its types.it includes Binary Tree and its types. analysis and algorithm of Heap Sort. comparison b/w Heap,Qucik and Merge Sort.
DATABASE MANAGEMENET TOPIC JOINS MYSQL this is the bestest ppt prepared with simple content in it you can learn easily from this if any doubt you can contact me on insta @iambihara @bihara singh on facebook
this presentation is made for the students who finds data structures a complex subject
this will help students to grab the various topics of data structures with simple presentation techniques
best regards
BCA group
(pooja,shaifali,richa,trishla,rani,pallavi,shivani)
DATABASE MANAGEMENET TOPIC JOINS MYSQL this is the bestest ppt prepared with simple content in it you can learn easily from this if any doubt you can contact me on insta @iambihara @bihara singh on facebook
this presentation is made for the students who finds data structures a complex subject
this will help students to grab the various topics of data structures with simple presentation techniques
best regards
BCA group
(pooja,shaifali,richa,trishla,rani,pallavi,shivani)
Data structure and algorithm with java implementation by obaid kakarObaid Kakar
Array linked list Bubble sort insertion sort selection sort merge sort quick sort graph and tree stack and queue algorithm with java implementation
by obaid kakar University Of Balochistan
STACK ( LIFO STRUCTURE) - Data StructureYaksh Jethva
Stack which is known as LIFO structure.Which is type of the Linear data structure and it is Non-Primitive data structure.
Definition:Non primitive data structure are not a basic data structure and depends on other primitive data structure (Integer,float etc).
Non primitive data structure can't be operated by machine level instruction directly.
Stacks and Queues: Introduction to stacks
applications of stacks
implementation and comparison of stack implementations.
Introduction to queues
applications of queues and implementations
Priority Queues and applications
Data Strucuture
PPT is based on the working Of stack and its related operation push and pop how this is done in stack with its advantages and disadvantages including examples
Stack and Queue.pptx university exam preparationRAtna29
Queues and stacks are dynamic while arrays are static. So when we require dynamic memory we use queue or stack over arrays. Stacks and queues are used over arrays when sequential access is required. To efficiently remove any data from the start (queue) or the end (stack) of a data structure
The little Oh (o) notation is a method of expressing the an upper bound on the growth rate of an algorithm’s
running time which may or may not be asymptotically tight therefore little oh(o) is also called a loose upper
bound we use little oh (o) notations to denote upper bound that is asymptotically not tight.
The Theta (Θ) notation is a method of expressing the asymptotic tight bound on the growth rate of an
algorithm’s running time both from above and below ends i.e. upper bound and lower bound.
The Big Oh (O) is the most commonly used notation to express an algorism’s performance. The big Oh (O)
notation is a method of expressing the upper bound on the growth rate of an algorithm’s running time. In
other words we can say that it is the longest amount of time, an algorithm could possibly take to finish it
therefore the “big-Oh” or O-Notation is used for worst-case analysis of the algorithm.
The Big Omega () notation is a method of expressing the lower bound on the growth rate of an algorithm’s
running time. In other words we can say that it is the minimum amount of time, an algorithm could possibly
take to finish it therefore the “big-Omega” or -Notation is used for best-case analysis of the algorithm.
An algorithm is a tool for solving any computational problem. It may be defined as a sequence of finite,
precise and unambiguous instructions which are applied either to perform a computation or to solve a
computational problem. These instructions are applied on some raw data called the input, and the
solution of the problem produced is called the output.
Lecture Note-2: Performance analysis of AlgorithmsRajesh K Shukla
The execution of an algorithm requires various resources of the computer system to complete the task. The
performance of algorithms depends on the use of these resources. The important resources which contribute
to the efficiency of the algorithms are the memory space and the time required for successful execution of
algorithm. The efficiency of an algorithm is measured in terms of the time and the space required for its
execution therefore analysis of algorithms is divided into two categories
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Thesis Statement for students diagnonsed withADHD.ppt
Pop operation
1. Lecture Note-6: Stack Operations 2015
By Rajesh K Shukla, HOD, Department of CSE, SIRT Bhopal
Downloaded from www.RajeshkShukla.com
Stack Operations
There are two basic operations that are usually performed with stacks.
1. PUSH
2. POP
Let us discuss POP Operation in detail.
POP Operation
POP Operation is basically used to remove the elements from the stack. This is the process used to delete
the elements from the stack. So when we say pop an element we mean delete an element from the stack.
Suppose we want to remove all the five elements from the stack shown in figure 3.6, the graphical
representation of such removal from the Stack is shown here in figure 3.7
The most recently inserted element i.e. E is at the Top so it is deleted first from the stack. The second to top
element i.e. D is deleted next because the previous top element E is removed so the next older item D in the
stack becomes the new Top element. The value of Top is changed after the deletion in Stack takes place. In
this way the element inserted first i.e. A is deleted last from the stack. When the last item in the stack is
deleted the stack is set to empty state. The elements from the stack are always retrieved in the reverser order
as we can see from figure 3.7 the elements are removed in the reverse order (E, D, C, B, A) in which they
were pushed (A, B, C, D, E) into the stack as shown in figure 3.6. Removal of an element depends upon its
position in the stack; you have to first remove all the elements above it. Therefore you cannot delete B unless
all the elements above it i.e. C, D and E are removed. We can see in the figure 3.7 that after every pop
operation the stack Top is decremented by one. The most frequently accessible element in the stack is the
topmost element whereas the least accessible element is the bottom of the stack. When all the elements from
the stack are removed mean stack is empty then we cannot delete anything from the stack. This situation is
called Underflow. If the pop operation is performed in the empty stack then the stack underflow condition
occurs so one must test whether there is an element in the stack to be deleted. We can perform the pop
operation only when the stack is not empty. The algorithm for POP operation is given below as
ALGORITHM-2. Let STACK is an array of MAX size and we want to delete the ELEMENT from the
STACK
ALGORITHM-2: POP (STACK, MAX, TOP, ITEM)
Step1. Check for Underflow
If Top=-1 then Print “Underflow” and Return
Else
a. ELEMENT =STACK[Top] // Delete an ELEMENT from the STACK
b. Top=Top-1 // Decrement the Top by One
End if
Step2. Return
Fig 3.7: Graphical representation of Stack POP Operation
4
3
2
1
0
E
D
C
B
A
T
o
4
3
2
1
0
3
2
1
0
D
C
B
A
T
o
2
1
0
C
B
A
T
o
4
3
2
1
0
E
D
C
B
A
T
o
4
3
2
1
0
E
D
C
B
A
T
o
Top=4(stack is given) Top=3(E is Removed) Top=2(D is Removed) Top=1(C is Removed) Top=0(B is Removed) Top=-1(A is Removed)