Explain Applications of Stack ? 


==> Applications of Stack----

  • The simplest application of a stack is to reverse a word. You push a given word to stack - letter by letter - and then pop letters from the stack
  • Another application is an "undo" mechanism in text editors; this operation is accomplished by keeping all text changes in a stack.
  • Evaluation of Expressions
  • Language processing::
  1. space for parameters and local variables is created internally using a stack.
  2. compiler's syntax check for matching braces is implemented by using stack.
  3. support for recursion 


Share to whatsapp

More Questions from Data Structures and Algorithms Module 2

Define Recursion. Explain types and requirement of recursion ?


View

Define Queue. Explain Basic features of Queue ? 


View

Define Priority Queue. Explain Application and implementation of Priority Queue ? 


View

Define Tower of Hanoi. Explain Problem statement for Tower of Hanoi ? 


View

Explain Dequeues- Double Ended Queues ? 


View

Explain simple queue ? Brief disadvantages of simple queue.


View

Explain Algorithm for Enqueue operation  and Algorithm for Dequeue operation using array ? 


View