11. FIRST and FOLLOW in Compiler Design Examples in English| How to find first and follow of grammar

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 139

  • @marvelphase411
    @marvelphase411 9 หลายเดือนก่อน +5

    Awesome I saw so many videos no one focus on Rules for First and Follow But U explained with Rules Thank You 🎉

  • @ERI619
    @ERI619 ปีที่แล้ว +26

    No one managed to clear this topic on the internet but you. Thanks again!

  • @zubadahussian776
    @zubadahussian776 4 ปีที่แล้ว +14

    I was searching whole internet but no one cleared concept the way you did. Thanks alot

  • @BuragapuHaritha
    @BuragapuHaritha หลายเดือนก่อน +1

    Thankyou so much sis ❤
    I have seen many videos for this and didn't get it all are explaining in a complex way u made it crystal clear and too simple ..

  • @raghuramanraman9780
    @raghuramanraman9780 5 ปีที่แล้ว +19

    Awesome explanation sister, i have gone through many videos, but this is the best one

  • @raiden2548
    @raiden2548 ปีที่แล้ว +1

    Thankyou very much this is the only video that helped me understand this concept

  • @mustapharaimilawal8053
    @mustapharaimilawal8053 4 ปีที่แล้ว +8

    Thanks for this video, your explaining is clear and easy to follow.

  • @penguinlvrpenguin685
    @penguinlvrpenguin685 6 หลายเดือนก่อน +1

    i pay $2k in tuition for a white man to not explain this to me and you did it so flawlessly. thank u sm for saving my grades

  • @thagz4751
    @thagz4751 11 หลายเดือนก่อน +1

    Finally I understood follow
    All thanks to you mam

  • @MrBrunoExtreme1
    @MrBrunoExtreme1 4 ปีที่แล้ว +4

    OMG YOU ARE THE BEST!!!

  • @AdityaSingh-jh5qg
    @AdityaSingh-jh5qg 3 ปีที่แล้ว +3

    Thank you so much for teaching in this way

  • @shanealam293
    @shanealam293 3 ปีที่แล้ว +3

    Thanks a lot, your teaching method is so gud....

  • @eyobedet5144
    @eyobedet5144 2 ปีที่แล้ว +3

    thank you for your easy and simple explanation.

  • @rrahulrroyr
    @rrahulrroyr 5 ปีที่แล้ว +6

    Well explained ... Thank you

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 11 หลายเดือนก่อน +2

    NICE SUPER EXCELLENT MOTIVATED

  • @navyaanzaheen3233
    @navyaanzaheen3233 3 ปีที่แล้ว +2

    THANKYOU SO MUCH FOR GREAT EXPLAINATION

  • @balajikumarchintala8509
    @balajikumarchintala8509 3 ปีที่แล้ว +4

    You are about to help my tomorrow's exam😅

  • @ERI619
    @ERI619 ปีที่แล้ว +3

    Very good explanation!

  • @shubhamkumar-yq3cs
    @shubhamkumar-yq3cs 3 ปีที่แล้ว +4

    ma'am you have given the question to find out first and follow actually i have find first but i have to arise a difficulty to find out follow ,ma'am can you please find out the follow???

  • @vishnumaragani
    @vishnumaragani 3 ปีที่แล้ว +2

    Thanks a lot for clear explaination......

  • @TheCrazyRitik
    @TheCrazyRitik 4 ปีที่แล้ว +3

    Wowowow 😍😍 awesome explanation

  • @fatmasliti2161
    @fatmasliti2161 2 ปีที่แล้ว +2

    thank youuu very helpful

  • @zaidtoufan6435
    @zaidtoufan6435 3 ปีที่แล้ว +2

    thank you so much very helpful

  • @ayanavnambiar
    @ayanavnambiar 3 ปีที่แล้ว +2

    Thank you so much ma'am ❤️

  • @niveditahajra9325
    @niveditahajra9325 5 ปีที่แล้ว +4

    Nice tutorial👏👏

  • @anuppoudel3538
    @anuppoudel3538 5 ปีที่แล้ว +4

    So the follow of D and E are dependent on each other while the first follow of D yields {f} am I correct if I write the same for Both D and E?

  • @AmSaik
    @AmSaik 8 หลายเดือนก่อน

    Mam while writing follow for E you considered only first production S ,but in second production S1 also contains E and it is the last value in the production so we should write follow of S1 to the follow of E right

  • @nomikhan3342
    @nomikhan3342 3 ปีที่แล้ว +2

    brilliant work Mam

  • @pyotrilyichtchaikovsky2052
    @pyotrilyichtchaikovsky2052 5 ปีที่แล้ว +3

    In the example you gave at the end of the video, what's the follow set of S if S is not present anywhere on the RHS?

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  5 ปีที่แล้ว +8

      If S is not present anywhere on the RHS, then the follow set of S will only contain {$}

  • @m.f.k515
    @m.f.k515 4 ปีที่แล้ว +3

    Follow is very tricky then first

  • @abhyas9030
    @abhyas9030 ปีที่แล้ว +1

    Awesome 👍

  • @chalietarekegn8491
    @chalietarekegn8491 2 ปีที่แล้ว +2

    very very thanks

  • @salverulaxmivivek3438
    @salverulaxmivivek3438 ปีที่แล้ว +1

    clear as mercury

  • @cswathi8788
    @cswathi8788 4 ปีที่แล้ว +2

    Thank you ma'am

  • @sundarpichai2994
    @sundarpichai2994 2 ปีที่แล้ว

    in the given question in the ending scene i believe we have left recursion in A production right ???

  • @vishnumaragani
    @vishnumaragani 3 ปีที่แล้ว +3

    I dont why this video getting dislikes... May be those dislikes people are... Faculty.. Of this subject.. 🤣

  • @ishusharma1366
    @ishusharma1366 4 ปีที่แล้ว +3

    Great Job mam

  • @srinivasanrk781
    @srinivasanrk781 4 ปีที่แล้ว +5

    Follow S={a,$}
    Follow A={a,$,d}
    Follow B={a,$,d,h,g}
    Follow C={f}
    Follow D={h,f,g}
    Follow E={h,f,g}
    Is tis correct mam

  • @UniversalRankingOfficial
    @UniversalRankingOfficial 4 ปีที่แล้ว +1

    Please, Mam, if I am not wrong, you said Follow set always contains a dollar sign But The follow set of (E) only contains t

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +3

      I said the Follow set of Starting Symbol i.e. S here, will always contain a dollar sign. E is not the starting symbol

    • @UniversalRankingOfficial
      @UniversalRankingOfficial 4 ปีที่แล้ว +1

      @@CSEconceptswithParinita alright thanks is more clear now

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +2

      My pleasure😊
      Keep learning, keep sharing✌

  • @hrithiksingh5069
    @hrithiksingh5069 3 ปีที่แล้ว +3

    There two S in right side you took only first one for follow

  • @kp7074
    @kp7074 3 ปีที่แล้ว +1

    How to verify. i have solved correctly or not. i am learning this. A->aB|Ad so here A first is "a" only?

  • @manudynamite2949
    @manudynamite2949 2 ปีที่แล้ว +2

    Tq ❤️

  • @shayan1133
    @shayan1133 4 ปีที่แล้ว +3

    thanks a lot

  • @anupriyar4320
    @anupriyar4320 5 ปีที่แล้ว +4

    Super mam😅

  • @gattuharicharan1351
    @gattuharicharan1351 3 ปีที่แล้ว +4

    Follow (s) =$, follow(a) =$, follow (b) =(h, g) , follow d and e is also same one in follow b. Is this right answer please reply mam

  • @TheCrazyRitik
    @TheCrazyRitik 4 ปีที่แล้ว +1

    Why there is only 22 videos? Have you covered all chapters in 22 videos?

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +1

      Yes, refer the playlists of Compiler Design & TOC.....almost all the topics are covered 💯😊

    • @TheCrazyRitik
      @TheCrazyRitik 4 ปีที่แล้ว +1

      @@CSEconceptswithParinita OK means after watching these all 22 videos i just have to go through toc playlist too...isn't it?

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +1

      @@TheCrazyRitik yeah, you can check out as per your required topics. I hope you'll find it helpful 🙂

  • @salmansheikh2596
    @salmansheikh2596 3 ปีที่แล้ว +2

    Excellent explanation 👌👍

  • @vigneshsrinivasan9692
    @vigneshsrinivasan9692 4 ปีที่แล้ว +1

    what is the answer to the question at the end?

  • @MadhanMurugesan02
    @MadhanMurugesan02 5 ปีที่แล้ว +5

    First comment and like

  • @teabags2day
    @teabags2day 2 ปีที่แล้ว +6

    Alright guys here is the true correct answer to her hw problem:
    First(S)={a,d}
    First(A)={a,d}
    First(B)={b,f}
    First(C)={h,g}
    First(D)={b}
    First(E)={c}
    ---------------
    Follow(S)={$}
    Follow(A)={$,d}
    Follow(B)={$,d,h,g}
    Follow(C)={f}
    Follow(D)={f}
    Follow(E)={f}
    my reasoning is that there were no ε(epsilons) in the problem.
    Feel free to correct me because IK I am wrong.

    • @100K-Subscribers5
      @100K-Subscribers5 2 ปีที่แล้ว

      U are right in the sense because follow of E and of D will get into loop 😇, so this is right bro 😇

    • @rohanmahamuni8493
      @rohanmahamuni8493 2 ปีที่แล้ว

      explain follow (B)

    • @teabags2day
      @teabags2day 2 ปีที่แล้ว +2

      @@rohanmahamuni8493 Rules: For follow:
      If terminal in front, add it to { }.
      if front of non terminal get the nonterminal's first= { }.
      if nothing in front, get the Follow of the LHS.
      so,
      1.) First B appears in A->aB | Ad. Since there is nothing in front of B, you get the follow of the LHS so you will get A's Follow which is {$,d}
      2.) Second B appears in B->bBCf | f. Since non terminal C is following B. You get the First(C)={h,g}
      so Follow(B)={$,d,h,g}

    • @rohanmahamuni8493
      @rohanmahamuni8493 2 ปีที่แล้ว

      @@teabags2day thank you so much

    • @rohanmahamuni8493
      @rohanmahamuni8493 2 ปีที่แล้ว +2

      how d got in first(s)?
      plzz explain

  • @jacobho5502
    @jacobho5502 2 ปีที่แล้ว

    Please, what LHS mean? Is it symbol in front of right-pointing arrow, am I right?
    I do not learn Compiler Design in English so I have no idea what that abbreviation means.

  • @shahbaazshakeel1613
    @shahbaazshakeel1613 5 วันที่ผ่านมา

    Can anybody tell me the answer of the question given so I can check whether my answer is correct or not...

  • @tytoalba3333
    @tytoalba3333 3 ปีที่แล้ว +2

    Main thing starts at 1:28
    Thank me later :)

  • @newtechai4367
    @newtechai4367 2 ปีที่แล้ว

    plese could you least the terminals and non terminals in S ?

  • @pravalikaboddula6442
    @pravalikaboddula6442 4 ปีที่แล้ว +2

    Ma'am please don't hesitate
    Please solve this problem
    E-> E+T/T
    T-> T*F/F
    F-> (F)/a/b

    • @pravalikaboddula6442
      @pravalikaboddula6442 4 ปีที่แล้ว

      Please solve this

    • @ashiksaleem360
      @ashiksaleem360 3 ปีที่แล้ว

      @@pravalikaboddula6442 Bruh

    • @rithani6495
      @rithani6495 3 ปีที่แล้ว

      FIRST of all E,T and F is { ( ,a, b }
      FOLLOW ( E) = { $, + }
      FOLLOW (T) = { * , $, + }
      FOLLOW ( F) = { ), *, $ ,+ }

    • @sonofjavascript4510
      @sonofjavascript4510 3 ปีที่แล้ว

      @@rithani6495 how did you get your first please

  • @mohitwadhwani717
    @mohitwadhwani717 ปีที่แล้ว

    Can any one tell me how the FIRST(S) = {a,d}
    @CSEconseptswithpranita

  • @naveen2746
    @naveen2746 ปีที่แล้ว

    Follow of S1 should be {a,$}

  • @gsforall8772
    @gsforall8772 4 ปีที่แล้ว +1

    Please use hindi if possible

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +14

      There are many students who don't understand Hindi, that's why I have to use English

    • @Vamsikrishna-mf6ye
      @Vamsikrishna-mf6ye 4 ปีที่แล้ว +3

      @@CSEconceptswithParinita tqs

    • @brightfuture4312
      @brightfuture4312 4 ปีที่แล้ว +5

      @@CSEconceptswithParinita Yes mam ur right... 🔥Please continue ur videos in English... Bcoz all ur videos are clear & easy to understand... 🙏☺️Tnkq Soo much mam...

    • @CSEconceptswithParinita
      @CSEconceptswithParinita  4 ปีที่แล้ว +3

      Sure! If you really find my videos helpful, please share them with others too😊

    • @brightfuture4312
      @brightfuture4312 4 ปีที่แล้ว +1

      @@CSEconceptswithParinita Okay mam... 🤗🔥