Question: [ 1 5 Points ] Let G be the following CFG in which S is the start variable: S A B | a B |

[15 Points] Let G be the following CFG in which S is the start variable:
SAB|aB||
Aaab|||
BbbA
(a)(5 Points) Using the procedure discussed in the class, convert G into an equivalent grammar in Chomsky Normal Form (CNF).
(b)(5 Points) Find an equivalent grammar to G in Greibach Normal Form (GNF).
(c)(5 Points) Suppose we modify the original grammar G as follows: remove the -production A and instead add the unit producion AA. Let us call the resulting grammar as G'. Convert G' into CNF, and simplify, if possible. Also describe in English the language L(G').
[ 1 5 Points ] Let G be the following CFG in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!