Question: Let = {a, b}. For the languages that are defined by each of the following grammars (in a and b), do each of the following:
Let = {a, b}. For the languages that are defined by each of the following grammars (in a and b), do each of the following: a. S aS | Sb | b. S aSa | bSb | a | b i. List five strings that are in L. ii. List five strings that are not in L. iii. Describe L concisely. You can use regular expressions, expressions using variables (e.g., anbn, or set theoretic expressions (e.g., {x: }) iv. Indicate whether or not L is regular. Prove your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
