0 0 votes Question : (Here e=epsilon) S->A|B, A->e, B->aBb, B->b My answer is : S->B, B->aBb , B->b or S->B|e , B->aBb , B->b Want to know which one is correct ? please explain... Theory of Computation theory-of-computation + – Anil Dabas 927 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 6 6 votes second one is correct , if S---> e we could not eliminate it bcoz language generate e ,and if language does not generate e then it can be eliminate ... s-->AB A--->aAA/e B--->bBB/e after elimination of e S-->AB/A/B/e A-->aAA/aA/a B-->bBB/bB/b minal answered Jul 16, 2015 • selected Aug 12, 2015 by Arjun minal comment Share Follow See all 2 Comments 2 2 Comments reply Anil Dabas commented Jul 16, 2015 reply Follow flag For S->aS | AB , A->e , A->e After eliminating epsilon : S->aS | e or S->aS | a I think both are correct here . just want to make sure.. 0 0 replyShare minal commented Jul 16, 2015 reply Follow flag S-->aS/A/B/AB/a/e ... i thing you miss out B-->e 1 1 replyShare Please log in or register to add a comment.