Simplification of CFG | Context Free Grammar | Compiler Design

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • 📝 Talk to Sanchit Sir: forms.gle/WCAF...
    💻 KnowledgeGate Website: www.knowledgeg...
    📲 KnowledgeGate Android App: tiny.cc/KG_Offi...
    ➡ Do not miss our Bestseller Courses:
    🔴 GATE Guidance-2025: www.knowledgeg...
    🟠 GATE Guidance Plus-2025: www.knowledgeg...
    ➡ Contact Us:
    🟩 Whatsapp Chat: wa.me/91859512...
    📞Call on: +91-8000121313
    🟦 Telegram Updates: t.me/kg_gate
    🟩 Whatsapp Updates: www.whatsapp.c...
    📧 Email: contact@knowledgegate.in
    ➡ Our One Shot Semester Exam Videos: 👇
    ▶ Operating System: • Complete Operating Sys...
    ▶ DBMS: • Complete DBMS Data Bas...
    ▶ Computer Network: • Complete CN Computer N...
    ▶ Digital Electronics: • Complete DE Digital El...
    ▶ Computer Architecture: • Complete COA Computer ...
    ▶ Data Structure: • Complete DS Data Struc...
    ▶ Algorithm: • Complete DAA Design an...
    ▶ Software Engineering: • Complete Software Engi...
    ▶ Theory of Computation: • Complete TOC Theory of...
    ▶ Compiler: • Complete CD Compiler D...
    ▶ Discrete Maths: • Complete DM Discrete M...
    ➡ Free Subject-Wise Complete PlayList: 👇
    ▶️ DBMS: tiny.cc/kg_yt_DBMS
    ▶️ Operating System: tiny.cc/kg_yt_OS
    ▶️ TOC|Automata: tiny.cc/kg_yt_toc
    ▶️ Computer Networks: tiny.cc/kg_yt_CN
    ▶️ Digital Electronics: tiny.cc/kg_yt_D...
    ▶️ Compiler Design: tiny.cc/kg_yt_C...
    ▶️ Computer Architecture: tiny.cc/kg_yt_COA
    ▶️ Data Structure: tiny.cc/kg_yt_D...
    ▶️ Algorithms: tiny.cc/kg_yt_A...
    ▶️ Set, Relation, Function: tiny.cc/kg_yt_D...
    ▶️ Graph Theory: tiny.cc/kg_yt_g...
    ▶️ Group Theory: tiny.cc/kg_yt_g...
    ▶️ Proposition: tiny.cc/kg_yt_p...
    #knowledgegate #GATE #sanchitjain
    *********************************************************

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

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

    For complete Compiler Design, check out this video: th-cam.com/video/OQCjakjCJu4/w-d-xo.html

  • @souravsaini2187
    @souravsaini2187 ปีที่แล้ว +32

    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 9 หลายเดือนก่อน +2

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

  • @samarthtandale9121
    @samarthtandale9121 ปีที่แล้ว +32

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

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

      bro before that we eliminated lambda from A.

    • @samarthtandale9121
      @samarthtandale9121 ปีที่แล้ว +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 ปีที่แล้ว +29

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

    • @rohantandale3419
      @rohantandale3419 10 หลายเดือนก่อน +2

      true@@humaneBicycle

    • @gauravsingh8173
      @gauravsingh8173 9 หลายเดือนก่อน

      @humaneBicycle correct. There has been slight error from sir

  • @NeerajHSingh
    @NeerajHSingh ปีที่แล้ว +21

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

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

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

    • @ankitmishra697
      @ankitmishra697 3 หลายเดือนก่อน

      @@oneshotstudy4303 same question bro

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

    Option C - Three steps
    Thanks a lot sir ❤❤

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

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

    • @YASHPAL-qb9sn
      @YASHPAL-qb9sn 8 หลายเดือนก่อน

      Yes you are right

  • @pawanpt2682
    @pawanpt2682 6 หลายเดือนก่อน

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

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

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

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

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

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

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

    3

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

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

  • @arshadv.ansari246
    @arshadv.ansari246 ปีที่แล้ว +2

    Thanks a TON Sir.🌟

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

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

  • @fearless_fusion
    @fearless_fusion ปีที่แล้ว +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

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

    Option c

  • @VickyKumar-yd8od
    @VickyKumar-yd8od ปีที่แล้ว

    Ans is at 18:09

  • @41_ZakiKhan
    @41_ZakiKhan 6 หลายเดือนก่อน

    Le lo sir engagement ❣️😂

  • @muhammadumairshaikh4971
    @muhammadumairshaikh4971 9 หลายเดือนก่อน

    3 steps

  • @SyedaRutbaEman
    @SyedaRutbaEman 2 หลายเดือนก่อน

    3

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

    3

  • @vanshmalhotra6430
    @vanshmalhotra6430 ปีที่แล้ว +16

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

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

      yes that is mistake i also got a

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

      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 ปีที่แล้ว +13

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

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

    3

  • @Motivational_for_young
    @Motivational_for_young 9 หลายเดือนก่อน

    3

  • @devanshurawat826
    @devanshurawat826 11 หลายเดือนก่อน +6

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

  • @vandnagureja3
    @vandnagureja3 ปีที่แล้ว +15

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

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

      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👍

  • @kathanparekh6135
    @kathanparekh6135 10 หลายเดือนก่อน +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...

  • @ankitmishra697
    @ankitmishra697 3 หลายเดือนก่อน

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

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

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

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

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

  • @30-csejayamahotkar30
    @30-csejayamahotkar30 ปีที่แล้ว +13

    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  ปีที่แล้ว

      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 9 หลายเดือนก่อน

      ​@@vikramverma2152Skill issue bro

    • @smit1044
      @smit1044 9 หลายเดือนก่อน

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

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

    3 steps

  • @dillusion8588
    @dillusion8588 5 หลายเดือนก่อน

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

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

    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.

  • @muhammadumairshaikh4971
    @muhammadumairshaikh4971 9 หลายเดือนก่อน

    baharat mata ki jai

  • @17-ashitoshjagtap41
    @17-ashitoshjagtap41 ปีที่แล้ว +1

    3 steps are required to help the simplification of grammer

  • @HARSH-uh9nc
    @HARSH-uh9nc ปีที่แล้ว +4

    Homework question:- option C

  • @rushalithorat2865
    @rushalithorat2865 6 หลายเดือนก่อน +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 6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

      @@khushiprajapati1939 thanks dear

  • @usamajuttjutt6274
    @usamajuttjutt6274 3 วันที่ผ่านมา

    3

  • @zeeeshanmughalmughal6105
    @zeeeshanmughalmughal6105 6 หลายเดือนก่อน

    Answer is 3

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

    3

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

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

    3

  • @RukhsarMurtaza
    @RukhsarMurtaza 5 หลายเดือนก่อน

    C: 3

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

    Sir last me sirf a hi aayega aaa nahi aayega

  • @muhammadumairshaikh4971
    @muhammadumairshaikh4971 9 หลายเดือนก่อน

    jai hind

  • @SAGHEERABBAS-j3v
    @SAGHEERABBAS-j3v 3 หลายเดือนก่อน

    3😊

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

  • @AslamKhan-xn1ni
    @AslamKhan-xn1ni 6 หลายเดือนก่อน

    3

  • @zuniiiiii
    @zuniiiiii 6 หลายเดือนก่อน

    3

  • @pawanpt2682
    @pawanpt2682 6 หลายเดือนก่อน

    3

  • @salmanimteyaz733
    @salmanimteyaz733 9 หลายเดือนก่อน

    3

  • @abhisheksutar344
    @abhisheksutar344 9 หลายเดือนก่อน

    3

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

    3

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

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

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

    From 18:20 heart touching ❤😢

  • @ankitmishra697
    @ankitmishra697 3 หลายเดือนก่อน

    Thankyou so much sir all doubt is clear with concept

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

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

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

    Thank you sir

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

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

  • @RailExpressbyPreetam
    @RailExpressbyPreetam 6 หลายเดือนก่อน

    thank you so much sir , well explained

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  6 หลายเดือนก่อน

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

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

    sir anand aagya

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

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

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

    Thank you Sir

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

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

  • @anandsagar4646
    @anandsagar4646 10 หลายเดือนก่อน

    Answer is 3

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

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

    Thanks sir

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

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

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

    sir GNF?

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

    Thanks a lot sir 😊🙏✨

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

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

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

    Option C

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

    Option C - Three steps

  • @RajSingh-fc6vs
    @RajSingh-fc6vs ปีที่แล้ว

    3

  • @NoFormalities-y1k
    @NoFormalities-y1k ปีที่แล้ว

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

    • @zeedan1943
      @zeedan1943 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

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

    • @zeedan1943
      @zeedan1943 9 หลายเดือนก่อน

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

    • @NoFormalities-y1k
      @NoFormalities-y1k 9 หลายเดือนก่อน

      @@zeedan1943 best wishes xD

  • @Suraj414-h4u
    @Suraj414-h4u ปีที่แล้ว

    Good evening sir

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

    🧑‍🏫🧑‍🏫

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

    C

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

    Three

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

    3

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

    3

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

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

    5

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

    3

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

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

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

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

  • @anansari1808
    @anansari1808 10 หลายเดือนก่อน

    thanks sir

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  10 หลายเดือนก่อน

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

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

    thanks a lot sir

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

      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

  • @BG-lj6fw
    @BG-lj6fw 11 หลายเดือนก่อน

    great!!!

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  11 หลายเดือนก่อน

      Thank you, keep learning👍😊

  • @3024_SahilThite
    @3024_SahilThite 10 หลายเดือนก่อน +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"

  • @raghavmanish24
    @raghavmanish24 4 หลายเดือนก่อน

    thanku sir

    • @KNOWLEDGEGATE_kg
      @KNOWLEDGEGATE_kg  4 หลายเดือนก่อน

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