in this question given ans is 9
s->Aa | a | bC | b
B->a | bC | b
C -> a
but here B is unreachable ans has to 5
@Pooja Palod ma'am how can you say here S->B is not unit production. according to me it is unit production .
can you explain plz...???
why dont we replace 'C' by 'a '?
By Substituion Rule:
@ monanshi,@Praveen Saini sir it is not correct bcoz the order of execution of removal algorithm is-
(1) Remove epsilon productions.
(2) Remove unit productions.
(3) Remove useless productions.
@ LeenSharma sir if there are many mistakes in my solution then plz point out bcoz one of my faculty teach removal in that order only.