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