Top 12 Application Of Stack

 Hello Friends,

Today's we will See the Application of Stacks .So, Let's see this



Top 12 Application Of Stack are : 

1.Expression Evaluation- Stack is used for evaluation of Prefix, Postfix and Infix expression.

2.Expression conversion -It is Used For conversion of One Expression Form to Other Form.(One expression represents through prefix, postfix or infix notation.

3.Syntax Parsing -Many Compilers used the stack for parsing the syntax expressions.

4.Backtracking - Backtracking means "to go back the same way you come" .Let me take a example for understanding this,

Let we have to find the path for solving the maze problem . Now, we choose a path and we move forward ,and after that we found out the path we chosen that is wrong. now for going other path we have to again come to that place where we started .

In this Situation We can do it through the help of Stack.

5. Parenthesis Checking - we use stack for parenthesis checking so that we can find that Open and Close bracket are at the right place or not?

6. String Reversal - We used stack for string reversal. we push the string character one by one in stack and after that we pop the characters from the stack.

7.Function Call - stack used for keeps the information of active functions and subroutines.

8.Stack uses for tracking the local variables in runtime.

9. Used for Undo in text editor.

10. Used in memory management.

11. Used in CPU Scheduling and Disk Scheduling.

12.  Used in Graph traversal.

Thanks For Reading this Blog, Hope You enjoyed this blog

And if you think that this is informative then please share with your friends and family members.

Till Then Keep Reading .



Popular posts from this blog

Privacy Policy for Evergreen Sabji Bazar

Difference between Array and Linked List

Cancellation and Refund Policy for Evergreen Sabji Bazar