605.202 | Data Structures and Algorithms | Database

Data Structures and Algorithms  

Use stacks to evaluate if a given string is in a language L. Your code will not be recursive. In your analysis, suggest a recursive algorithm and compare with your stack based solution. The purpose of using a stack is to take advantage of its LIFO nature, therefore algorithms which merely use the stack for storage and determine inclusion of the string in the language by the use of counting the input string in any manner will NOT receive any credit.

605.202 - Data Structures and Algorithms - Database-1

605.202 - Data Structures and Algorithms - Database-2

Solution