Question: Consider the following grammar: S = A 1 B 2 A = 2 A | 2 B = 1 B | 1 Which of the
Consider the following grammar:
S = A "1" B "2"
A = "2" A | "2"
B = "1" B | "1"
Which of the following strings are in the language generated by this grammar:
a. 2112
b. 22212
c. 221111
d. 22112
e. 121212
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
