Find Follow Function | First and Follow in Compiler Design

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 74

  • @KNOWLEDGEGATE_kg
    @KNOWLEDGEGATE_kg  Год назад +1

    For complete Compiler Design, check out this video: ruclips.net/video/OQCjakjCJu4/видео.html

  • @anshukumari4195
    @anshukumari4195 Год назад +29

    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

  • @prateekshukla8336
    @prateekshukla8336 Год назад +57

    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 👍

  • @maheshnarayankar6515
    @maheshnarayankar6515 Год назад +14

    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

  • @WorldFacts-hs9rn
    @WorldFacts-hs9rn 7 месяцев назад +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.

  • @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

  • @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

  • @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👍

  • @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👍😊

  • @ahmedraza6257
    @ahmedraza6257 11 месяцев назад

    So good concepts are clear now

  • @knowledge_apna
    @knowledge_apna 2 года назад +1

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

  • @gameclub1910
    @gameclub1910 2 года назад

    Yes follow is required in case of null production.

  • @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

  • @piyalisanyal1677
    @piyalisanyal1677 2 года назад +1

    Yes

  • @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

  • @mayanknegi5328
    @mayanknegi5328 2 года назад +3

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

    • @fatimasyeda5389
      @fatimasyeda5389 2 года назад +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 2 года назад +7

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

    • @khushivaish7125
      @khushivaish7125 2 года назад

      @@soumyodeepdey5237 yes

    • @soumyodeepdey5237
      @soumyodeepdey5237 2 года назад

      @@khushivaish7125 R u studying for GATE?

    • @dheerajkhachariawas3477
      @dheerajkhachariawas3477 2 года назад

      Yes absolutely

  • @Abhishek-f6d
    @Abhishek-f6d Год назад

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

  • @HARSH-uh9nc
    @HARSH-uh9nc Год назад +1

    Homework question:- option A

  • @vikasgupta7686
    @vikasgupta7686 Год назад

    yes

  • @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👍😊

  • @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

  • @coder5985
    @coder5985 Год назад +1

    Yes sir

  • @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.

  • @WorldFacts-hs9rn
    @WorldFacts-hs9rn 7 месяцев назад

    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

  • @Quickets
    @Quickets Год назад

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

  • @itszahidz
    @itszahidz Год назад

    12:45 😢😢

  • @soumyadeepbarik5711
    @soumyadeepbarik5711 Год назад

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

  • @harbhajansingh9882
    @harbhajansingh9882 Год назад

    CD also here E->CD

  • @f16gaming-pubgmobile95
    @f16gaming-pubgmobile95 2 года назад

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

  • @itszahidz
    @itszahidz Год назад

    Sir where is E ka fist🤔

  • @ashishvinod2193
    @ashishvinod2193 Год назад

    yes

  • @Redhuji653
    @Redhuji653 Год назад

    Option a

  • @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