Question
Which grammar from the below CFGs generates the below Language L: L = {0n1m2k where n is not equal to m OR m is not
Which grammar from the below CFGs generates the below Language L: L = {0n1m2k where n is not equal to m OR m is not equal to k}
a. S --> XY | XR | BC A--> 0 | 0A | 0A1 B --> 1 | B1 C --> 2 | 2C X --> 0 | 0X R --> 1 | 1R | 1R2 Y --> 2 | Y2 | 1Y2
b. S --> XR | BC | AC A--> 0 | 0A | 0A1 B --> 1 | B1 | 0B1 C --> 2 | 2C X --> 0 | 0X R --> 1 | 1R | 1R2 Y --> 2 | Y2 | 1Y2
c. S --> XY | XR | BC | AC A--> 0 | 0A | 0A1 B --> 1 | B1 | 0B1 C --> 2 | 2C X --> 0 | 0X | 1 R --> 1 | 1R | 1R2 Y --> 2 | Y2 | 1Y2
d. S --> XY | XR | BC | AC A--> 0 | 0A | 0A1 B --> 1 | B1 | 0B1 C --> 2 | 2C X --> 0 | 0X R --> 2 | 1R | 1R2 Y --> 1 | Y2 | 1Y2
e. S --> XY | XR | BC | AC A--> 0 | 0A | 0A1 B --> 1 | B1 | 0B1 C --> 2 | 2C X --> 0 | 0X R --> 1 | 1R | 1R2 Y --> 2 | Y2 | 1Y2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started