What do you mean by stack ? Mention it's characteristic
What do you mean by stack ? Mention it's characteristic and applications in real life
-
C - 11300 Views
- 6 Answers
strongSTACK/strongbr /A stack is a heterogeneous data structure which works on the concept of LIFO(Last In, First Out), which means the element inserted in the last, will be the first element to be deleted from the stack. br /There are two operations that can be performed on Stack:br /1. uPUSH/ubr / Inserting or adding an element into the stack.br /2. uPOP/ubr / Deleting or removing an element from the stack. br /uCharacterstic/ubr /1. The distinguishing characterstic of a stack is that the addition or removal of items take place at the same end. This end is commonly referred to as the "strongTop of Stack(ToS)/strong".br /2. If the stack is full, then no extra element can be inserted into the stack, and this condition is known as "Overflow Condition".br / Let the size of stack be n. br / emstrong If ToS=n-1/strong/em, then the condition is overflow condition.br /3. If the stack is empty, then no element can be deleted from the stack, and this condition is known as "Underdlow Condition".br / emstrongIf ToS<0/strong/em, then the condition is underflow condition.
-
- 16 May
- 0 Comments
- Share
Didn't get the answer.
Contact people of Talent-Data Structure directly by clicking here
-
Stack Problem
-
can someone help me with below logic please?
-
what do you mean by queue data structure ?
-
In real life , where can we find the applications of data structures ?
-
Which data structure is used for dictionary and spell checker?
-
Convert Binary Tree to DLL in-place
-
Difference between Stack and Queue
-
Query on deletion operation of Binary Search Tree
-
Address in multi dimensional array
-
peek() operation in Stack data structure