Simplification of CFG | Context Free Grammar | Compiler Design

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

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

  • @KNOWLEDGEGATE_kg
    @KNOWLEDGEGATE_kg  11 месяцев назад +3

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

  • @adityaralhan1154
    @adityaralhan1154 Месяц назад +13

    17:53
    ans is:-
    S->aA|a
    A->aaA|aa
    therefore-c)4
    Thanks for the lecture sir

  • @vandnagureja3
    @vandnagureja3 Год назад +19

    Sir, there may be many intellectuals but your way of building concept is praiseworthy.

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

      Glad to hear that @Vandna❤ keep learning! Do like, subscribe & share the video, you can also visit our website www.knowledgegate.in for more amazing videos & contents👍

  • @souravsaini2187
    @souravsaini2187 Год назад +38

    17:23 pe jb apne S production me aaa add kia h uske place pe a ayega kyunki hme vahan aa nhi place krna hme vahan null replace krna h

    • @rahiljakir
      @rahiljakir Год назад +3

      correct

    • @Jogsgarden
      @Jogsgarden Год назад +5

      correct, otherwise we can not generate 'a' which was possible by the same grammar before removal of null production.

  • @devanshurawat826
    @devanshurawat826 Год назад +10

    c) 3 steps
    Null removal
    Unit production removal
    Useless production removal

  • @kathanparekh6135
    @kathanparekh6135 Год назад +2

    18:25 Padhai k Video aise h khojaya karti hai is right 💯💯💯
    aur yaaha to koi ladka gali de de aur ladki kamar matka de to trending ho jati hai video. Kisiko padhna nai hai sabko bas nautanki hi dekhni hai...
    I respect your work sir. Hats Off to you sir ...
    I'll support you...

  • @NeerajHSingh
    @NeerajHSingh Год назад +24

    Sir ek correction h . 17:55 pr s->aA/a hoga aaa nhi nhi to language "a" derive nhi kr payegi

    • @oneshotstudy4303
      @oneshotstudy4303 6 месяцев назад +2

      Same 😁 here mene bhi comment check Kiya ki mene hi notice Kiya ya ye sir se mistake ho gayi hai 😄

    • @ankitmishra697
      @ankitmishra697 6 месяцев назад

      @@oneshotstudy4303 same question bro

  • @samarthtandale9121
    @samarthtandale9121 2 года назад +33

    Sir, at 17:45, the symbol S can also generate string 'a' as A can be lambda as well...

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

      bro before that we eliminated lambda from A.

    • @samarthtandale9121
      @samarthtandale9121 2 года назад +18

      @@tusharkulkarni8742 Bro, to compensate for that we have to ad 'a' in S ... because the Grammar before and after elimination will generate the same language na !

    • @humaneBicycle
      @humaneBicycle Год назад +31

      yes the corrent ans would be
      S->a/aA
      A->aaA/aa

    • @rohantandale3419
      @rohantandale3419 Год назад +2

      true@@humaneBicycle

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

      @humaneBicycle correct. There has been slight error from sir

  • @OmkarBcw
    @OmkarBcw 2 года назад +6

    Sir the way you teach is awesome
    Thanks Sirji....

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

      Most welcome dear! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing courses & contents 👍😊

  • @vanshmalhotra6430
    @vanshmalhotra6430 2 года назад +16

    17:09 When we replaced aBB with lambda how we got aaa instead of a?

    • @ilihaspatel399
      @ilihaspatel399 2 года назад +2

      yes that is mistake i also got a

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

      Bro after removal of null production we got value of A as aa then we replaced that aa with A in aA thats why we got aaa.

    • @gourimmenon2726
      @gourimmenon2726 Год назад +12

      @@tusharkulkarni8742 but that's not what we do....we replace A with lambda everywhere to cancel out the effect of removing that null production....so it should be a rather than aaa right

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

      There should also bhi single a remains after putting value of A to null in S ?

  • @30-csejayamahotkar30
    @30-csejayamahotkar30 2 года назад +15

    Thanks sir mujhe kahi s smjh nhi aa rha tha ye but apne bht acche se samjhaya thank you so much

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

      Glad to hear this ❤ keep learning & supporting! You can also check out our website www.knowledgegate.in for more amazing courses & contents 👍😊

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

      ​@@KNOWLEDGEGATE_kg xc

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

      Sir kuch na samajh nhi aa rha

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

      ​@@vikramverma2152Skill issue bro

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

      ​@@rahulrai1530kya skill issu thoda kat Diya value layenge par kahase laye kaise Kiya vo kahi bataya

  • @nareshdhakad5883
    @nareshdhakad5883 8 дней назад

    ❤❤option c is the right option because of the 1. Remove useless production , 2. Unit production and third is null production ❤❤

  • @tannuchauhan326
    @tannuchauhan326 Год назад +7

    Option C - Three steps
    Thanks a lot sir ❤❤

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

      You're welcome dear @Tannu😍 Keep learning & stay connected for more amazing videos & contents👍

    • @YASHPAL-qb9sn
      @YASHPAL-qb9sn 11 месяцев назад

      Yes you are right

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

    You are right, padhai ki koi video kabhi trending me nhi aati,

  • @rahulgiri627
    @rahulgiri627 Год назад +2

    Thank you sir for this concept lecture

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

      Glad you enjoyed it😍Keep learning & stay connected for more amazing contents👍😊 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

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

    Awesome explanation

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

      Thanks a lot dear! Keep supporting & stay connected for more amazing videos & upcoming contents 👍😊You can also check out our CS bundle course for complete preparation of Computer Science subjects, sharing course link below:
      www.knowledgegate.in/learn/Zero-to-Hero-in-Computer-Science

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

    Very nice sir❤❤

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

      Thanks a lot dear @Kamal❤ Keep learning & supporting! Stay connected for more amazing contents & videos 👍

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

      Sure sir🙏🙏

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

    Thanks a lot sir 😊🙏✨

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

      Most welcome! Keep learning & supporting! Do check out our website www.knowledgegate.in for more amazing contents & courses👍😊

  • @ankitmishra697
    @ankitmishra697 6 месяцев назад

    Thankyou so much sir all doubt is clear with concept

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  6 месяцев назад +1

      Glad to know that, Ankit. Keep learning & following for more content🙂

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

    Sir Maja aa gya aapse padta rha to back to kabhi lagegi hi nhi😅

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

      Haha very nice! All the best 👍 Keep learning & stay connected for more amazing videos & contents ❤

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

    At 18:09 sir ne answer bata diya (3)

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

    3 steps must be needed 1. for elemination of epsilon production , 2. elimination of unit production
    3. elimination of useless function.

  • @RailExpressbyPreetam
    @RailExpressbyPreetam 9 месяцев назад

    thank you so much sir , well explained

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  9 месяцев назад

      Most welcome, keep learning & following. You can also check out our website www.knowledgegate.in for more videos & content👍

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

    Thank you sir

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

      Most welcome! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing contents & complete courses 👍😊

  • @pawanpt2682
    @pawanpt2682 9 месяцев назад +1

    S->AB/a
    A->Bc/b
    B->aB/c
    C->aC/B sir after elimination useless production what will be the resultant gram?

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

    From 18:20 heart touching ❤😢

  • @arshadv.ansari246
    @arshadv.ansari246 2 года назад +2

    Thanks a TON Sir.🌟

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

      Most welcome! Keep learning & supporting! Do check out our website www.knowledgegate.in for more amazing contents & courses👍😊

  • @39.parteekkumar77
    @39.parteekkumar77 Год назад +1

    Great video!!

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

      Thanks a lot dear @Parteek❤Keep learning & supporting! Stay connected for more amazing videos & upcoming contents 👍😊

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

    Thanku so much sir, thanks a ton for uploading this.

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

      Most welcome! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing contents & complete courses 👍😊

  • @ankitmishra697
    @ankitmishra697 6 месяцев назад

    S-> aA
    A-> aaA | epsilon
    isi me confusion ho gya sir
    S-> aA | a
    A -> aaA | aa
    and thankyou so much isr

  • @3024_SahilThite
    @3024_SahilThite Год назад +8

    Sir, at 17:45, i guess the answer sould be
    S --> aA / a
    A --> aaA / aa
    because the grammar should also generate a string "a"

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

    Thanks sir

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

      You're most welcome dear! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing courses & contents 👍😊

  • @VickyKumar-yd8od
    @VickyKumar-yd8od Год назад

    Ans is at 18:09

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

    Nice Videos sir !!

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

      Thanks 😅 Keep learning & supporting! Stay connected for more amazing videos & contents 👍 You can also check out our CS bundle course for complete preparation of Computer Science subjects, sharing course link below:
      www.knowledgegate.in/learn/Zero-to-Hero-in-Computer-Science

  • @rushalithorat2865
    @rushalithorat2865 9 месяцев назад +1

    example of Null production
    1) S---AbB
    A---a| epsilon
    B---B|epsilon
    Ans:-
    when , A---epsilon:-
    S---AbB|bB
    A---a
    B---b | epsilon
    When , B---epsilon
    S---AbB|bB|Ab|b
    A---a | epsilon
    B---b
    Is This correst answer sir...plz reply

    • @khushiprajapati1939
      @khushiprajapati1939 9 месяцев назад +1

      I guess ok
      Q)
      S->AbB
      A->a/ epsilon
      B-> b/ epsilon
      Final answer
      S -> AbB/ bB/ Ab/ b
      A-> a
      B-> b

    • @rushalithorat2865
      @rushalithorat2865 9 месяцев назад

      @@khushiprajapati1939 thanks dear

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

    sir anand aagya

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

      Thanks dear@Ratnesh, keep learning & supporting! You can also check out our website www.knowledgegate.in for more amazing courses & contents 👍😊

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

    thanks a lot sir

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

      You're welcome! 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

  • @17-ashitoshjagtap41
    @17-ashitoshjagtap41 Год назад +1

    3 steps are required to help the simplification of grammer

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

    Option C - Three steps

  • @Deepak-e2f2h
    @Deepak-e2f2h 2 года назад

    Good evening sir

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

    Homework question:- option C

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

    The ANSWER of the HOME-WORK QUESTION is 4
    1.REMOVAL OF LEFT-RECURSION
    2.REMOVAL OF NULL-PRODUCTION
    3.REMOVAL OF UNIT-PRODUCTION
    4. REMOVAL OF UNNECESSARY SYMBOLS.

  • @41_ZakiKhan
    @41_ZakiKhan 8 месяцев назад

    Le lo sir engagement ❣️😂

  • @dillusion8588
    @dillusion8588 8 месяцев назад

    Correction in the practice ans:
    S->a/aA
    A->aaA/aa

  • @NoFormalities-y1k
    @NoFormalities-y1k Год назад

    in the last question , s -> a/aaa/aA . but sir have not taken a , can anyone explain? why!

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

      no need to derive aaa as it will get derived either way so the answer should be S-> aA/a and A->aaA/aa

    • @NoFormalities-y1k
      @NoFormalities-y1k Год назад

      @@zeedan1943 bhai ab to sab bhool gya , exams khtm ho gye 😅

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

      @@NoFormalities-y1k sad mere kal hai isiliye padh raha XD

    • @NoFormalities-y1k
      @NoFormalities-y1k Год назад

      @@zeedan1943 best wishes xD

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

    removal of unit prod., null prod.and use less symbol that is 3 steps.

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

    sir GNF?

  • @BG-lj6fw
    @BG-lj6fw Год назад

    great!!!

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

    Option C

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

    thanks sir

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

      You are most welcome @Sufiyan! Keep learning & stay connected! You can also check out our website www.knowledgegate.in for more amazing videos & contents👍😊

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

    Option c

  • @pawanpt2682
    @pawanpt2682 10 месяцев назад +1

    3 steps

  • @zeeeshanmughalmughal6105
    @zeeeshanmughalmughal6105 9 месяцев назад

    Answer is 3

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

    Sir last me sirf a hi aayega aaa nahi aayega

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

    Answer is 3

  • @RukhsarMurtaza
    @RukhsarMurtaza 8 месяцев назад

    C: 3

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

    5

  • @adishukla7386
    @adishukla7386 Месяц назад

    3 Step

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

    3 steps

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

    C

  • @SAGHEERABBAS-j3v
    @SAGHEERABBAS-j3v 5 месяцев назад

    3😊

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

    Three

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

    jai hind

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

    3

  • @pawanpt2682
    @pawanpt2682 9 месяцев назад

    3

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

    3

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

    baharat mata ki jai

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

    🧑‍🏫🧑‍🏫

  • @raghavmanish24
    @raghavmanish24 7 месяцев назад

    thanku sir

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  7 месяцев назад

      You're welcome. Keep learning, supporting & stay connected for more content👍

  • @AnuKumari-qc7ye
    @AnuKumari-qc7ye Год назад +1

    Thanku sir 😊

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

      Most welcome dear❤Keep learning & supporting! Stay connected for more amazing videos & upcoming contents 👍😊You can also check out our CS bundle course for complete preparation of Computer Science subjects, sharing course link below:
      www.knowledgegate.in/learn/Zero-to-Hero-in-Computer-Science

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

    Thank you Sir

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

      Most welcome! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing contents & complete courses 👍😊

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

    3

  • @zuniiiiii
    @zuniiiiii 9 месяцев назад

    3

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

    3

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

    3

  • @AslamKhan-xn1ni
    @AslamKhan-xn1ni 9 месяцев назад

    3

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

    3

  • @RajSingh-fc6vs
    @RajSingh-fc6vs Год назад

    3

  • @SyedaRutbaEman
    @SyedaRutbaEman 5 месяцев назад

    3

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

    3

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

    3

  • @usamajuttjutt6274
    @usamajuttjutt6274 3 месяца назад

    3

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

    3

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

    3

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

    3

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

    3

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

    3