Awesome q2a theme
0 votes
31 views

This is what I got:

First(S)={b}

First(A)={b}

First(B)={b,e}

First(C)={b,e,epsilon}

Follow(S)={$,d}

Follow(A)={a,b,e}

Follow(B)={a,b,d,e,$}

Follow(C)={a,b,e,$}

in Compiler Design by (415 points) | 31 views

1 Answer

+2 votes
Best answer

Follow of B must contain a, as we can see that Follow(B) = Follow(C), which in turn results to FOLLOW(A) and FOLLOW(A) should contain a. As no other options has a in their follow set, we can go with option d.

So yes, u are right. 

PS ā†’   LAST YEAR ACE MADE GUINNESS BOOK WORLD RECORD BY PROVIDING MOST WRONG ANSWERS IN A TEST SERIES.


If found helpful, UPVOTE and mark ans as the BEST ANSWER (by clicking the blue tick on the left side of the ans). This motivates me to ANSWER YOUR QUESTIONS IN FUTURE

by (1.7k points)
selected by
+1
Thanks Nobi. :D Upvoted and marked as best.
0
cheers..  :)
0
given answer is correct.. Note that follow(B) = first(C)
+1
@shaik

see the last production

Cā†’ BB

here Follow(B) =Follow(C)
+1
ya, it's my mistake !
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Feb 2020
  1. shashin

    363 Points

  2. Shaik Masthan

    79 Points

  3. SuvasishDutta

    39 Points

  4. srestha

    33 Points

  5. Mk Utkarsh

    32 Points

  6. neeraj_bhatt

    31 Points

  7. !KARAN

    30 Points

  8. Debapaul

    23 Points

  9. Pratyush Priyam Kuan

    18 Points

  10. kalra05

    18 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
3,328 questions
1,581 answers
10,280 comments
89,915 users