Find Follow Function | First and Follow in Compiler Design

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 73

  • @KNOWLEDGEGATE_kg
    @KNOWLEDGEGATE_kg  11 місяців тому +1

    For complete Compiler Design, check out this video: ua-cam.com/video/OQCjakjCJu4/v-deo.html

  • @anshukumari4195
    @anshukumari4195 Рік тому +26

    I think answer of last practice question will be:
    Follow(S)={$}
    Follow(B)={a,b,h}
    Follow(C)={$,a,b,h}
    Follow(D)={$,a,b,h}
    Follow(E)={$,a,b,h}
    By mistake sir forgot to calculate D->EC
    Answe of HW question is YES

  • @maheshnarayankar6515
    @maheshnarayankar6515 Рік тому +13

    At 12:24 , FOLLOW(C) must be { b U FIRST(E) U FOLLOW(D) U FIRST(D) } , which result's in {$,a,b,h} . Could you please look at this problem @KNOWLEDGE GATE

  • @prateekshukla8336
    @prateekshukla8336 Рік тому +55

    Sir I think Follow(C) and Follow(E) must be {$,a,b,h} because here u forgot to consider productions D->EC | b | epsilon and E ->CDb | epsilon while finding follow of C. Please correct me if I am wrong!

    • @chaitanyasharma8707
      @chaitanyasharma8707 Рік тому +2

      yes u r right 👍👍

    • @rahiljakir
      @rahiljakir Рік тому +1

      correct

    • @raazmatrixgaming4876
      @raazmatrixgaming4876 Рік тому +4

      No, i think you are wrong, cuz in Follow(C), if we take D->EC | b | epsilon and E ->CDb | epsilon (which sir has missed), we will have D as follow of C, for which first(D)={a,b} which is already included. Even though, sir missed this step in explanation, the answer is still right!!! **Correct if wrong**

    • @prateekshukla8336
      @prateekshukla8336 Рік тому +9

      @@raazmatrixgaming4876 Follow(C) will be {b, First(E), Follow (D), First(D)} which is equal to {b, a, $, h} after evaluating each of them considering every production.

    • @vehugupta937
      @vehugupta937 Рік тому +1

      @@prateekshukla8336 yes its right 👍

  • @soumyadeepbarik5711
    @soumyadeepbarik5711 Рік тому +4

    The ANSWER for the "HOME-WORK" QUESTION is YES , "FOLLOW-FUNCTION" has been required even for the case of NULL-PRODUCTION.

  • @sanjukumarkhanger5832
    @sanjukumarkhanger5832 2 роки тому +4

    Sir,
    Your teaching style is excellent. U are great sir. I am requesting you
    to share a video on LL(1), SLR, LR & LALR. Please sir

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  2 роки тому +1

      Thanks a lot dear ❤ You can check out our complete course on Compiler Design for all the topics, sharing the course link below:
      www.knowledgegate.in/learn/CompilerDesign-SanchitSir

  • @WorldFacts-hs9rn
    @WorldFacts-hs9rn 6 місяців тому +4

    Sir one mistake Follow(D)={$,b} only kun k sir BD lka hy tu D ka follow B kesy hua agr DB huta tu wo follow huta tab ham (a,h,b) ko consider krty first of B ko.

  • @shailjagoyal9569
    @shailjagoyal9569 2 роки тому +1

    Thku sir for video. With lots of example

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  2 роки тому +1

      You're most welcome dear❤ Keep learning & supporting! You can also check out our course for all Computer Science subjects, sharing the link below:
      www.knowledgegate.in/learn/Zero-to-Hero-in-Computer-Science

  • @kathanparekh6135
    @kathanparekh6135 Рік тому +1

    A) YES
    Great explanation Sir...

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому

      Thank you! Keep learning & stay connected! You can also check out our website www.knowledgegate.in for more amazing videos & contents👍😊

  • @knowledge_apna
    @knowledge_apna 2 роки тому +1

    Yes the follow is required to solve the problem of null production

  • @preetitayal4294
    @preetitayal4294 Рік тому

    Very nice and easy method I ever studied,

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому

      Thank you dear @preeti❤ keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing videos & contents👍

  • @maheshnarayankar6515
    @maheshnarayankar6515 Рік тому

    very well explained sir , was trying from past 2 days to learn from different videos ,but understood only after watching your's , thank you so much ♥

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому +1

      Glad you liked it dear @Mahesh❤Do like, subscribe & share the video, you can also visit our website www.knowledgegate.in for more amazing videos & contents👍😊

    • @maheshnarayankar6515
      @maheshnarayankar6515 Рік тому +1

      Sir could you please look at 12:24 , I think you have made mistake while solving

  • @ahmedraza6257
    @ahmedraza6257 10 місяців тому

    So good concepts are clear now

  • @gameclub1910
    @gameclub1910 2 роки тому

    Yes follow is required in case of null production.

  • @Abhishek-f6d
    @Abhishek-f6d 11 місяців тому

    what will be the follow of S and B for below productions??
    S-> 1AB/€
    A-> 1AC/0C
    B-> 0S
    C-> 1

  • @prateekshukla7243
    @prateekshukla7243 2 роки тому +2

    SIR PLEASE MAKE COMPLETE PLAYLIST FOR THIS SUBJECT

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  2 роки тому

      Dear Prateek, for complete course on Compiler Design, please check out the course link below:
      www.knowledgegate.in/learn/CompilerDesign-SanchitSir

  • @HARSH-uh9nc
    @HARSH-uh9nc Рік тому +1

    Homework question:- option A

  • @soumyadeepbarik5711
    @soumyadeepbarik5711 Рік тому

    The videos could be more beneficial if you solve both first() & follow() of following questions simultaneously.

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому +3

      Ok dear will try to consider your suggestion, stay connected👍😊

  • @piyalisanyal1677
    @piyalisanyal1677 2 роки тому +1

    Yes

  • @mayanknegi5328
    @mayanknegi5328 2 роки тому +3

    sir can you reconsider C in D (at 13:24)

    • @fatimasyeda5389
      @fatimasyeda5389 Рік тому +2

      Yes you are right there is a mistake , sir ne follow of C mai , 4th production wala C consider hi nai kiya , jiski wja se follow of D include hona tha , follow of C mai

    • @soumyodeepdey5237
      @soumyodeepdey5237 Рік тому +7

      @@fatimasyeda5389 Haa Follow (C,D) = {$ , h , a , b} hona chahiye na?

    • @khushivaish7125
      @khushivaish7125 Рік тому

      @@soumyodeepdey5237 yes

    • @soumyodeepdey5237
      @soumyodeepdey5237 Рік тому

      @@khushivaish7125 R u studying for GATE?

    • @dheerajkhachariawas3477
      @dheerajkhachariawas3477 Рік тому

      Yes absolutely

  • @WorldFacts-hs9rn
    @WorldFacts-hs9rn 6 місяців тому

    one mistake...sir ny BD ko kr diya ya tu nhii follow kr rha tu yhn b ka first nhii kr skty sirf $ aye ga agar D k agy B huta tb follow krta iss trah DB
    Follow(D)={b,$}
    this is correct follow of D

  • @learndaily964
    @learndaily964 Рік тому +1

    Sir please make a playlist on machine learning 🙏🙏🙏🙏🙏🙏🙏🙏🙏

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому

      We have a complete course for Machine Learning and Data Science already prepared - www.knowledgegate.in/learn/home/dataScience-MachineLearning

  • @vikasgupta7686
    @vikasgupta7686 Рік тому

    yes

  • @Quickets
    @Quickets Рік тому

    Sir what is first and follow of
    S->SS+|SS*|a

  • @coder5985
    @coder5985 Рік тому +1

    Yes sir

  • @soumyadeepbarik5711
    @soumyadeepbarik5711 Рік тому

    Jiss ka koi nhi uss ka $ hai kya baat hai ji.

  • @f16gaming-pubgmobile95
    @f16gaming-pubgmobile95 Рік тому

    Sir your follow (C) also should include "h" .

  • @Ounknown098
    @Ounknown098 Рік тому

    Yes but mistake in follow d

  • @mekadoor1415
    @mekadoor1415 Рік тому

    12:49 while find the follow of c Why we didn`t choose the occurance at the production of D->EC and E ->CDb

    • @naincypriya7017
      @naincypriya7017 Рік тому

      Same question but I think in those cases they are not following

    • @rahiljakir
      @rahiljakir Рік тому +1

      @@naincypriya7017 sir made mistake

    • @WanderwithHarshaa
      @WanderwithHarshaa Рік тому +1

      Sir made mistake we have to consider that then follow of C ,D, E will be same.

  • @itszahidz
    @itszahidz Рік тому

    12:45 😢😢

  • @harbhajansingh9882
    @harbhajansingh9882 Рік тому

    CD also here E->CD

  • @Redhuji653
    @Redhuji653 Рік тому

    Option a

  • @ashishvinod2193
    @ashishvinod2193 11 місяців тому

    yes

  • @itszahidz
    @itszahidz Рік тому

    Sir where is E ka fist🤔

  • @tusharbhalelu9108
    @tusharbhalelu9108 Рік тому

    NO

  • @learndaily964
    @learndaily964 Рік тому +1

    Sir please make a playlist on machine learning 🙏🙏🙏🙏🙏🙏🙏🙏🙏

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  Рік тому

      You can get it on our website. Here you go: www.knowledgegate.in/learn/dataScience-MachineLearning

  • @Raj_Tanvar
    @Raj_Tanvar Рік тому

    Yes

  • @zilesingh6349
    @zilesingh6349 Рік тому

    Yes