retagged by
721 views
0 votes
0 votes
S -> aA

A->BC

B->bAd

Answer given is 2.Do I need to remove useless production also for finding rank?I know we need to convert to CNF,but CNF requires to remove null production and unit production and then conver to A->BC|a form.But what about useless production,if I take this production then answer is 3 else 2.

Please help
retagged by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
1 answer
1
ayushigupta asked Oct 17, 2015
2,167 views
Consider the following CFG$S \to AB$$A \to aBc \mid aB \mid a$$B \to bDe \mid f \mid CD$$C \to Dg \mid h$$D \to g$The rank of the non-terminal $B$ is __________
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?
2 votes
2 votes
2 answers
3
Sandeep Singh asked Dec 30, 2015
462 views
Follow(S) comes as {(, ). $ }So, do we count $ as terminal or not.Could anyone please tell me, $ should be considered as terminal or not ? Although I think, I should not...