in Theory of Computation
263 views
0 votes
0 votes
Here is a CFG with only 2 variables, and a single terminal, and 2 only productions (No unit, epsilon, useless products). What would be the max number of productions if that gets converted into CNF

(A). 2

(B). <=4

(C). <=8

(D). None
in Theory of Computation
263 views

1 comment

plz explain??
0
0

1 Answer

0 votes
0 votes

s->aA

A->a.suppose it is given grammar,it contains 2 variables and 1 terminal.

max no of productions in CNF is (k-1)P+T.

here k=2,p=2,T=1.

=(2-1)2+1=3.

Related questions