0
Convert following Grammar to CNF and GNF.

S–ASB/a/bb - -

A → aSA/a.

B -- ՏbՏ/ԵԵ

Mumbai university > Comp > SEM 4 > TCS

Marks: 10M

Year: May 2015

0  upvotes
0

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

B -> SbS / tt

Put all the values of ‘B’

S -> aSASSbS / aSAStt / aSSbS / aSa / a / bb

A -> aSA / a

B -> SbS / tt

This is in G.N.F

0  upvotes
Please log in to add an answer.

Next up

Read More Questions

If you are looking for answer to specific questions, you can search them here. We'll find the best answer for you.

Search

Study Full Subject

If you are looking for good study material, you can checkout our subjects. Hundreds of important topics are covered in them.

Know More