edited by
367 views
3 votes
3 votes

Which of the following grammars violate the Chomsky Normal Form?

  1. $S \rightarrow AB$, $A \rightarrow a , B \rightarrow \epsilon \mid b$
  2. $S \rightarrow AcB, A \rightarrow a, B \rightarrow b$
  3. $S \rightarrow AB, \ A \rightarrow a, \ B \rightarrow b$
  1. All of the above
  2. (i) only
  3. (i) and (ii)  only
  4. (ii) and (iii) only
edited by

1 Answer

Best answer
5 votes
5 votes

CNF: V->VV         V->t    where V is single variable and t is single terminal
1) CNF doesn't contain epsilon
2) S--> AcB  not in the form of V->VV
3) CNF

selected by
Answer:

Related questions

6 votes
6 votes
2 answers
1
Bikram asked Nov 26, 2016
1,236 views
Given a regular grammar $G_1$ and a context free grammar $G_2$, the problem of deciding if $L(G_1)$ is a proper subset of $L(G_2)$ is:DecidableUndecidable but semi-decida...
0 votes
0 votes
1 answer
2
Bikram asked Nov 26, 2016
317 views
$G1$ and $G2$ are regular grammars and the language generated by any grammar $G$ is represented by $L(G)$. In this case, $L(G1) \cap L(G2) = \phi$ is a/an:Decidable prob...
0 votes
0 votes
1 answer
3
Bikram asked Nov 26, 2016
226 views
Recursive Enumerable Languages are NOT closed under :UnionIntersectionComplementHomomorphism
0 votes
0 votes
1 answer
4