Lecture-12 Data Structures CSE242
Lecture-12 Data Structures CSE242
peek() returns a copy of the element on the top of the stack without removing it
Stacks: Applications
• Stacks are used to implement functions, parsers, expression evaluation, and backtracking
algorithms.
• It is used in all those applications in which data must be stored and retrieved in the last.
• Stacks can be used for Conversion from one form of expression to another.
Stacks: Applications
• Stacks are used to implement functions, parsers,
expression evaluation, and backtracking
algorithms.
Stacks: Applications
• Stacks are used to implement functions, parsers,
expression evaluation, and backtracking algorithms.
Stacks: Applications
• Stacks are used to implement functions, parsers, expression evaluation, and backtracking
algorithms.
• It is used in all those applications in which data must be stored and retrieved in the last.
• Stacks can be used to check parenthesis matching in an expression.
• Stacks can be used for Conversion from one form of expression to another.
• Stacks can be used for Memory Management.
Stacks: Applications
• Stacks are used to implement functions, parsers, expression evaluation, and
backtracking algorithms.
• It is used in all those applications in which data must be stored and retrieved
in the last.
• Stacks can be used to check parenthesis matching in an expression.
• Stacks can be used for Conversion from one form of expression to another.
• Stacks can be used for Memory Management.