A ,grammar symbol X is useless if there is no derivation of the form That is. X can [lever appear in the derivation of some sentence.
"a) Write an algorithm 10 eliminate all productions containing useless symbols from a grammar.
b) Apply your algorithm to the grammar