0
2.3kviews
Consider the following grammar G = (V, T, P, S), V = {S, X, Y}, T {a, b} and productions P are Convert this grammer in Chomsky Normal Form (CNF).

Mumbai university > Comp > SEM 4 > TCS

Marks: 10M

Year: Dec 2015

1 Answer
0
48views

Let us start by adding new start symbols for the terminals.

SXYX

XaX|
YbY|

Let us take S->XYX for converting to CNF.

Replace

YXX1

a→A

b→B

E

So,

SXX1

XAX
XE
YBY
YE
$$X1 → …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.