retagged by
2,166 views

1 Answer

0 votes
0 votes
S -> AB

    ->ACD  ( B-> CD )

Therefore the maximum number of non terminals from the start state is 3 .

Rank of the  given grammar is 3.

Related questions

3 votes
3 votes
1 answer
2
rahul sharma 5 asked Nov 13, 2017
1,214 views
If rank of at least one variable if infinite in CNF ,then it means that language of gammer is infinite? True/False?
1 votes
1 votes
2 answers
3
sh!va asked Jul 12, 2016
1,073 views
S→ A 0BA→ BB|0B →AA|1What is the number of terminal strings of length 5 generated by the context-free grammar shown above?4567