Given grammar G: S-> A| B| C A-> aAa| B B-> bB|bb C->aCaa|D D->baD|abD|aa Eliminate e and unit productions and state the number of variables left?

Given grammar G: S-> A| B| C A-> aAa| B B-> bB|bb C->aCaa|D D->baD|abD|aa Eliminate e and unit productions and state the number of variables left? Correct Answer 5

The reduced productioS->aAa| bB|bb aCaa| baD| abD| aa, A->aAa| bB| bb, B->bB| bb, C->aCaa| baD| abD| aa, D-> baD| abD| aa

Related Questions

What does 'bbb' in an e-mail adress aaa@bbbb.ccc indicate?
In an email address 'aaa@bbbb.ccc', the protion 'bbb' indicates?