Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

Students also viewed these Databases questions

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago

Question

Knowledge of process documentation (process flow charting)

Answered: 1 week ago