Simplification of CFG | Context Free Grammar | Compiler Design

  Рет қаралды 102,809

KnowledgeGATE by Sanchit Sir

KnowledgeGATE by Sanchit Sir

Күн бұрын

Пікірлер: 136
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg 9 ай бұрын
For complete Compiler Design, check out this video: kzbin.info/www/bejne/hYKmm5Shn6h9q5Y
@NeerajHSingh
@NeerajHSingh Жыл бұрын
Sir ek correction h . 17:55 pr s->aA/a hoga aaa nhi nhi to language "a" derive nhi kr payegi
@oneshotstudy4303
@oneshotstudy4303 5 ай бұрын
Same 😁 here mene bhi comment check Kiya ki mene hi notice Kiya ya ye sir se mistake ho gayi hai 😄
@ankitmishra697
@ankitmishra697 4 ай бұрын
@@oneshotstudy4303 same question bro
@souravsaini2187
@souravsaini2187 Жыл бұрын
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 Жыл бұрын
correct
@Jogsgarden
@Jogsgarden 10 ай бұрын
correct, otherwise we can not generate 'a' which was possible by the same grammar before removal of null production.
@vandnagureja3
@vandnagureja3 Жыл бұрын
Sir, there may be many intellectuals but your way of building concept is praiseworthy.
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
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👍
@devanshurawat826
@devanshurawat826 Жыл бұрын
c) 3 steps Null removal Unit production removal Useless production removal
@kathanparekh6135
@kathanparekh6135 11 ай бұрын
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...
@adityaralhan1154
@adityaralhan1154 3 күн бұрын
17:53 ans is:- S->aA|a A->aaA|aa therefore-c)4 Thanks for the lecture sir
@samarthtandale9121
@samarthtandale9121 Жыл бұрын
Sir, at 17:45, the symbol S can also generate string 'a' as A can be lambda as well...
@tusharkulkarni8742
@tusharkulkarni8742 Жыл бұрын
bro before that we eliminated lambda from A.
@samarthtandale9121
@samarthtandale9121 Жыл бұрын
@@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 Жыл бұрын
yes the corrent ans would be S->a/aA A->aaA/aa
@rohantandale3419
@rohantandale3419 11 ай бұрын
true@@humaneBicycle
@gauravsingh8173
@gauravsingh8173 10 ай бұрын
@humaneBicycle correct. There has been slight error from sir
@tannuchauhan326
@tannuchauhan326 Жыл бұрын
Option C - Three steps Thanks a lot sir ❤❤
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
You're welcome dear @Tannu😍 Keep learning & stay connected for more amazing videos & contents👍
@YASHPAL-qb9sn
@YASHPAL-qb9sn 9 ай бұрын
Yes you are right
@OmkarBcw
@OmkarBcw Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Sir kuch na samajh nhi aa rha
@rahulrai1530
@rahulrai1530 10 ай бұрын
​@@vikramverma2152Skill issue bro
@smit1044
@smit1044 10 ай бұрын
​@@rahulrai1530kya skill issu thoda kat Diya value layenge par kahase laye kaise Kiya vo kahi bataya
@pawanpt2682
@pawanpt2682 8 ай бұрын
S->AB/a A->Bc/b B->aB/c C->aC/B sir after elimination useless production what will be the resultant gram?
@vanshmalhotra6430
@vanshmalhotra6430 Жыл бұрын
17:09 When we replaced aBB with lambda how we got aaa instead of a?
@ilihaspatel399
@ilihaspatel399 Жыл бұрын
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 Жыл бұрын
@@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 ?
@rushalithorat2865
@rushalithorat2865 8 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
@@khushiprajapati1939 thanks dear
@ankitmehta4133
@ankitmehta4133 Жыл бұрын
You are right, padhai ki koi video kabhi trending me nhi aati,
@AmazingVideoGaming
@AmazingVideoGaming Жыл бұрын
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
@ankitmishra697
@ankitmishra697 4 ай бұрын
Thankyou so much sir all doubt is clear with concept
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg 4 ай бұрын
Glad to know that, Ankit. Keep learning & following for more content🙂
@millionmistakesG99
@millionmistakesG99 Жыл бұрын
At 18:09 sir ne answer bata diya (3)
@daSPacito666
@daSPacito666 Жыл бұрын
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 👍😊
@rahulgiri627
@rahulgiri627 Жыл бұрын
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
@HARSH-uh9nc
@HARSH-uh9nc Жыл бұрын
Homework question:- option C
@soumyadeepbarik5711
@soumyadeepbarik5711 Жыл бұрын
3 steps must be needed 1. for elemination of epsilon production , 2. elimination of unit production 3. elimination of useless function.
@ankitmishra697
@ankitmishra697 4 ай бұрын
S-> aA A-> aaA | epsilon isi me confusion ho gya sir S-> aA | a A -> aaA | aa and thankyou so much isr
@erkamalbajpai8372
@erkamalbajpai8372 Жыл бұрын
Very nice sir❤❤
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
Thanks a lot dear @Kamal❤ Keep learning & supporting! Stay connected for more amazing contents & videos 👍
@erkamalbajpai8372
@erkamalbajpai8372 Жыл бұрын
Sure sir🙏🙏
@dkcodecamp1892
@dkcodecamp1892 Жыл бұрын
Thanks sir
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
You're most welcome dear! Keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing courses & contents 👍😊
@RailExpressbyPreetam
@RailExpressbyPreetam 7 ай бұрын
thank you so much sir , well explained
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg 7 ай бұрын
Most welcome, keep learning & following. You can also check out our website www.knowledgegate.in for more videos & content👍
@pranav1718
@pranav1718 Жыл бұрын
Thanks a lot sir 😊🙏✨
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
Most welcome! Keep learning & supporting! Do check out our website www.knowledgegate.in for more amazing contents & courses👍😊
@Deepak-e2f2h
@Deepak-e2f2h Жыл бұрын
Good evening sir
@ratneshsiddha88
@ratneshsiddha88 Жыл бұрын
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 👍😊
@Honey_Goyal
@Honey_Goyal Жыл бұрын
Sir Maja aa gya aapse padta rha to back to kabhi lagegi hi nhi😅
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
Haha very nice! All the best 👍 Keep learning & stay connected for more amazing videos & contents ❤
@suman0332
@suman0332 9 ай бұрын
From 18:20 heart touching ❤😢
@39.parteekkumar77
@39.parteekkumar77 Жыл бұрын
Great video!!
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
Thanks a lot dear @Parteek❤Keep learning & supporting! Stay connected for more amazing videos & upcoming 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
@17-ashitoshjagtap41
@17-ashitoshjagtap41 Жыл бұрын
3 steps are required to help the simplification of grammer
@jisouu2985
@jisouu2985 Жыл бұрын
sir GNF?
@shaktivedantasingh2903
@shaktivedantasingh2903 Жыл бұрын
Option C - Three steps
@3024_SahilThite
@3024_SahilThite 11 ай бұрын
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"
@namandeep4332
@namandeep4332 Жыл бұрын
removal of unit prod., null prod.and use less symbol that is 3 steps.
@dillusion8588
@dillusion8588 6 ай бұрын
Correction in the practice ans: S->a/aA A->aaA/aa
@fearless_fusion
@fearless_fusion Жыл бұрын
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
@arshadv.ansari246
@arshadv.ansari246 Жыл бұрын
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👍😊
@anansari1808
@anansari1808 11 ай бұрын
thanks sir
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg 11 ай бұрын
You are most welcome @Sufiyan! Keep learning & stay connected! You can also check out our website www.knowledgegate.in for more amazing videos & contents👍😊
@NoFormalities-y1k
@NoFormalities-y1k Жыл бұрын
in the last question , s -> a/aaa/aA . but sir have not taken a , can anyone explain? why!
@zeedan1943
@zeedan1943 11 ай бұрын
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 11 ай бұрын
@@zeedan1943 bhai ab to sab bhool gya , exams khtm ho gye 😅
@zeedan1943
@zeedan1943 11 ай бұрын
@@NoFormalities-y1k sad mere kal hai isiliye padh raha XD
@NoFormalities-y1k
@NoFormalities-y1k 11 ай бұрын
@@zeedan1943 best wishes xD
@AditiVerma825
@AditiVerma825 Жыл бұрын
Option C
@VickyKumar-yd8od
@VickyKumar-yd8od Жыл бұрын
Ans is at 18:09
@Crafteruru
@Crafteruru Жыл бұрын
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 👍😊
@pawanpt2682
@pawanpt2682 8 ай бұрын
3 steps
@zeeeshanmughalmughal6105
@zeeeshanmughalmughal6105 7 ай бұрын
Answer is 3
@BG-lj6fw
@BG-lj6fw Жыл бұрын
great!!!
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg Жыл бұрын
Thank you, keep learning👍😊
@Redhuji653
@Redhuji653 Жыл бұрын
Option c
@anandsagar4646
@anandsagar4646 Жыл бұрын
Answer is 3
@RukhsarMurtaza
@RukhsarMurtaza 6 ай бұрын
C: 3
@41_ZakiKhan
@41_ZakiKhan 7 ай бұрын
Le lo sir engagement ❣️😂
@monikajoshi3074
@monikajoshi3074 Жыл бұрын
Sir last me sirf a hi aayega aaa nahi aayega
@muhammadumairshaikh4971
@muhammadumairshaikh4971 10 ай бұрын
3 steps
@soumyadeepbarik5711
@soumyadeepbarik5711 Жыл бұрын
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.
@SAGHEERABBAS-j3v
@SAGHEERABBAS-j3v 4 ай бұрын
3😊
@abhisheksutar344
@abhisheksutar344 11 ай бұрын
3
@muhammadumairshaikh4971
@muhammadumairshaikh4971 10 ай бұрын
jai hind
@pawanpt2682
@pawanpt2682 8 ай бұрын
3
@palworld_gaming
@palworld_gaming Жыл бұрын
5
@krsnabantai
@krsnabantai Жыл бұрын
3
@royalgirl2837
@royalgirl2837 Жыл бұрын
Three
@sidharthkumthekar3179
@sidharthkumthekar3179 Жыл бұрын
C
@muhammadumairshaikh4971
@muhammadumairshaikh4971 10 ай бұрын
baharat mata ki jai
@cp65143
@cp65143 Жыл бұрын
🧑‍🏫🧑‍🏫
@raghavmanish24
@raghavmanish24 6 ай бұрын
thanku sir
@KNOWLEDGEGATE_kg
@KNOWLEDGEGATE_kg 6 ай бұрын
You're welcome. Keep learning, supporting & stay connected for more content👍
@muhammadsalman9914
@muhammadsalman9914 Жыл бұрын
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 👍😊
@AnuKumari-qc7ye
@AnuKumari-qc7ye Жыл бұрын
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
@Motivational_for_young
@Motivational_for_young 10 ай бұрын
3
@zuniiiiii
@zuniiiiii 7 ай бұрын
3
@salaooddinansari311
@salaooddinansari311 Жыл бұрын
3
@salmanimteyaz733
@salmanimteyaz733 10 ай бұрын
3
@AslamKhan-xn1ni
@AslamKhan-xn1ni 7 ай бұрын
3
@dimpisansarwal9506
@dimpisansarwal9506 Жыл бұрын
3
@suman0332
@suman0332 9 ай бұрын
3
@SyedaRutbaEman
@SyedaRutbaEman 4 ай бұрын
3
@RajSingh-fc6vs
@RajSingh-fc6vs Жыл бұрын
3
@reemayadav6648
@reemayadav6648 Жыл бұрын
3
@usamajuttjutt6274
@usamajuttjutt6274 Ай бұрын
3
@gopalagrawal8378
@gopalagrawal8378 Жыл бұрын
3
@khalidsiddiqui3549
@khalidsiddiqui3549 Жыл бұрын
3
@anmolgoyal6010
@anmolgoyal6010 Жыл бұрын
3
@omsinghal3610
@omsinghal3610 Жыл бұрын
3
@musicartlovers7477
@musicartlovers7477 Жыл бұрын
3
Context Free Grammar | CFG | Context Free Language in Compiler Design
14:29
KnowledgeGATE by Sanchit Sir
Рет қаралды 40 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 133 МЛН
Simplification of CFG (Reduction of CFG)
13:57
Neso Academy
Рет қаралды 1 МЛН
Theory of Computation: Construction of CFG - Examples
21:18
Anita R
Рет қаралды 302 М.
Ambiguous Grammar | Unambiguous Grammar | Inherently Ambiguous Grammar | Compiler Design
9:55
Lec-47: What is Context free grammar in TOC | Formal Definition
7:57
Gate Smashers
Рет қаралды 990 М.