0
1.7kviews
Convert following Grammar to CNF and GNF

S–ASB/a/bb

A → aSA/a.

B -- ՏbՏ/tt

1 Answer
0
73views

SOLUTION:

Given Grammar in in CNF format.

By using the substitution,

We have,

S – ASB / a / bb

A → aSA / a.

B -- ՏbՏ / ԵԵ

Put all the values of ‘A’

S -> aSASB / aSB / a / bb

A -> aSA / a …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.