edited by
252 views
0 votes
0 votes

Begin with grammar$:$

$S\rightarrow ASB|\in$
$A\rightarrow aAS|a$
$B\rightarrow SbS|A|bb$

  1. Eliminate $\in-$productions.
  2. Eliminate any unit productions in the resulting grammar.
  3. Eliminate any useless symbols in the resulting grammar.
  4. Put the resulting grammar into Chomsky Normal Form.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
4
admin asked Apr 11, 2019
1,264 views
Find a grammar equivalent to$S\rightarrow AB|CA$$A\rightarrow a$$B\rightarrow BC|AB$$C\rightarrow aB|b$with no useless symbols.