GeeksforGeeks » Miscellaneous
applications of stack
(2 posts)-
What are all applications of stack in computer science?
-
1. It is very useful to evaluate arithmetic expressions. (Postfix Expressions)
2. Infix to Postfix Transformation
3. It is useful during the execution of recursive programs
4. A Stack is useful for designing the compiler in operating system to store local variables inside a function block.
5. A stack (memory stack) can be used in function calls including recursion.
6. Reversing Data
7. Reverse a List
8. Convert Decimal to Binary
9. Parsing – It is a logic that breaks into independent pieces for further processing
10. BacktrackingSource:
http://www.einsteincollege.ac.in/Assets/Department/Lecturer notes/CSE/UG/EE36 Data Structures and Algorithm.pdf
Reply
You must log in to post.