Conversion of CFG to Chomsky Normal Form

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

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

  • @eclipseilff
    @eclipseilff 7 ปีที่แล้ว +630

    I just wanna say that I've spent my afternoon with your videos and I think I learned more in these couple of hours than I did for the whole semester... The way you teach is simply amazing. Thank you and greetings from Germany!

    • @tangdaniel3434
      @tangdaniel3434 7 ปีที่แล้ว +25

      Same here as well from Malaysia!

    • @ДенисМарянчук
      @ДенисМарянчук 7 ปีที่แล้ว +34

      Exactly! In one night I have learned and understood all the things that I couldn't understand during the semester. And I have passed the exam :)

    • @NeerajKumar-tb3ek
      @NeerajKumar-tb3ek 6 ปีที่แล้ว +10

      same here, from India

    • @Farahat1234
      @Farahat1234 5 ปีที่แล้ว +7

      You are from germany?

    • @rauapayl4223
      @rauapayl4223 5 ปีที่แล้ว +10

      Same Bangladesh

  • @123-CHeeeesss
    @123-CHeeeesss 2 ปีที่แล้ว +70

    This Academy is litrelly saving lives of many students 😭...
    All I wanna do is Thank You🙏

  • @salounik.2894
    @salounik.2894 7 ปีที่แล้ว +59

    I have been following this channel past two years. All I want to say is thank you so much for guiding me through various subjects. I have scored really well in whatever subjects you've taught me!!!

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

    Please upload the rest of the videos asap.You are doing a huge service to mankind by making these videos.

  • @smurfx6922
    @smurfx6922 4 ปีที่แล้ว +17

    i have no words for the way you explain a topic .... its like learning from the topic itself... great respect whoever you are

  • @ShubhamKumar-hv3gu
    @ShubhamKumar-hv3gu 7 ปีที่แล้ว +13

    I have seen almost every lecture of toc Its very helpful for learning and getting understand to toc topics this is the best channel of TH-cam for studying toc I explore many channel and waste the time but you neso academy you are the best

  • @siddharth.chandani
    @siddharth.chandani ปีที่แล้ว +5

    The level of questions this Channel uses is absolutely great..
    I have seen many videos of this topic but the question they take were very basic.. which obviously didn't clear whole concept..

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

    Very helpful, these lectures are getting me through my theory of computation class.

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

    At 1:27, the first step S'->S doesn't conform to chomsky normal form, since S is not in T. But disappear in step 3.

  • @snehalmachan
    @snehalmachan 7 ปีที่แล้ว +63

    Sir,In the removing unit production of S'->S at 7:17
    You've replaced S' by the value of S but in the lecture of removing unit productions you have stated that you have to replace A->B by A->x whenever B->x in the Grammer and x belongs to terminals, but Here in S'->S ,S contains both terminals and non terminals

    • @JP-qp9ht
      @JP-qp9ht 6 ปีที่แล้ว +3

      ya i think it should be S'->a because on replacing S'->S , S->a so S'->a . am I correct or not ??

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

      Same confusion!!!! if anybody can explain please do so!

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

      @JAY prakash sorry to say but u are wrong, think if S' wants to go to another option or a non terminal Symbol like AS but in your case you are restricting S' to go only to a terminal symbol a.

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

      @snehal machan Go step by step , first add S'->S (coz S is on the right hand side) then it becomes a case of unit production and after that remove the unit production and also remove more than 2 non terminals.

    • @JP-qp9ht
      @JP-qp9ht 6 ปีที่แล้ว

      ya exactly i was wrong . now i have understood .thanx

  • @govindparulekar862
    @govindparulekar862 5 ปีที่แล้ว +13

    Thank you so much for this great explanation , understood fully.

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

    Cristal clear explanation sir💀.. thank you soo much.. ur vedios r our all time saviours.

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

    You are born to teach.

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

    Thank you, is not enough :)
    Well appreciated

  • @iqramirza2947
    @iqramirza2947 2 หลายเดือนก่อน +1

    You made the concept crystal clear thanks ❤

  • @nikeshdahal4117
    @nikeshdahal4117 5 ปีที่แล้ว +4

    wow it was great to extract the concept from your videos . hope to see yuh in the upcomming days with new more conceptual videos . thanking you from NEPAL............

  • @princetomar2247
    @princetomar2247 7 ปีที่แล้ว +76

    yours lecture really helps me to understand theory of automation
    plz upload all remaining videos which is about PDA and turing machine
    plz upload alls
    BCOZ MY paper coming soon
    please understand problem
    thanks for giving me a such lecture to understand CNF

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

      yes sir I agree Prince

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

      yes true....we are waiting for those of turing Machine
      actually we can't wait

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

      ya plz my xams are coming plz upload them fast and thanx for teaching in such a great way....

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

      Please treat teacher as Sir, sir. I dont understand problem

  • @KavyaShree-s1l
    @KavyaShree-s1l 6 หลายเดือนก่อน +1

    There are no words describe a devotional thank fullness for your work🥺🙇‍♀️🫶

  • @priyalnamdev-zk7kq
    @priyalnamdev-zk7kq 28 วันที่ผ่านมา

    Thank you so much sir
    The way of explaining the concepts are very good

  • @allsorted9976
    @allsorted9976 9 หลายเดือนก่อน +1

    at 7:37, S'->a (only this should have happened) because S->a; here 'a' is the only terminal and only the terminals and null are replaced in unit productions as told *in video 76 at 1:18*.
    Also change on removing A->S
    So, the result on removing all unit productions should be :-
    S' -> a, S -> ASA | aB | a | AS | SA, A -> b | a, B -> b

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

    Easily the best video on this method, thanks

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

    freaking life saver dude. Good job

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

    Thank you so much for this video❤️❤️it's very helpful for mah MSc exams😘😘

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

    Great explanations in a simple way. Thanks

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

    Well that was really helpful , I really appreciate your work Sir. Greetings from Pakistan🇵🇰🇵🇰

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

    sir we are glad enoughfor this fav effort u done for us .............
    we are eagerly waiting for ur further lectures

  • @abhishekbalyan7189
    @abhishekbalyan7189 7 ปีที่แล้ว +12

    Sir please upload remaining lectures. I'm totally dependant on your lectures. My exams starts from 12 May. Because of you I was able to pass DLD in last semester. All the students are waiting for your lectures. Please it's a sincere request upload it ASAP!

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

      Bhai job lag gayi kya?

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

      @@Arham__Qasim haan ji bhai, job lag gyi hai

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

      @@abhishekbalyan7189 congrats🥳

  • @qanbar-pucit8534
    @qanbar-pucit8534 2 ปีที่แล้ว

    This is very Informative video. This cleared my all concepts

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

    again superb work thankyou! (India)

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

    Explanation for why all the production rules from S is copied to S' : because S' is the new starting symbol now, so if we write only S'-> a after removing the unit productions then, the grammar is generating only a, all other non terminals are unreachable. That's why to avoid that case, we are copying all the productions from S to S' along with a.
    Hope this helps

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

    When we convert a given CFG to CNF. The following simplification order must be followed strictly:
    1. Elimination of Null Productions (Epsilon Productions)
    2. Elimination of Unit Productions
    3. Elimination of useless Symbols (useless Productions)
    Then the remaining process will be very Easier.

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

    Thank you for teaching with wonderful dedication 🇮🇳

  • @shubhamathawane
    @shubhamathawane 2 ปีที่แล้ว

    It the best explanation, Thank You Neso Academy

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

    Really helpful lectures , I'm waiting for the next one.

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

    Amazing explanation. Buch of thanks💗

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

    Most Beautiful explaination ❤❤

  • @pavansatyakrishna7490
    @pavansatyakrishna7490 7 ปีที่แล้ว +9

    Hi sir, please upload remaining lectures about PDA and Turing machines. the way you explaining is in simple manner understandable. waiting for your next videos

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

    Thank you for these videos sir.
    plz upload rest of the topic videos which are turing machine, push down automata etc soon. It'll be really helpful for us.
    Thank you so much for this great help.

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

    Thanks buddy for this its helpful for my internals

  • @safxxrahmed
    @safxxrahmed 8 วันที่ผ่านมา +1

    I have a doubt , in 4th step there are two more non terminals AS|SA which violate the CNF , shouldn't we change them too ? Please reply.

    • @LikhitSB
      @LikhitSB 8 วันที่ผ่านมา +1

      S' -> AS|SA
      This can be written as,
      S' -> AS
      S' -> SA
      That's why it is valid

    • @safxxrahmed
      @safxxrahmed 8 วันที่ผ่านมา

      @LikhitSB thanks !

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

    thank you neso u helped alot. full playlist completed

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

    Thank You So Much 💖

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

    Awesome lecture sir ..... Thank you

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

    Thank you so much Sir 😇💫

  • @ricaspinto
    @ricaspinto 4 ปีที่แล้ว

    Thank you Sire , for anyone in FEUP i have to say Sir you are gud!

    • @ricaspinto
      @ricaspinto 4 ปีที่แล้ว

      super suportive sir, sir!

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

    Superb explanation❤️

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

    Thank you from uk❤

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

    sir please add push down automata lectures also it will be really helpful and appreciable .........great work..

  • @techpiano7010
    @techpiano7010 9 หลายเดือนก่อน +2

    I found the same question which is in my exam thank you!
    😂

  • @k.abhijeet
    @k.abhijeet 3 ปีที่แล้ว +5

    Null production removal method in previous video is different from this one. Please tell which one is correct and should be followed.

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

      Both are same, in this lecture the concepts of removal were directly put into action.

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

      @@cricadic rather than saying it the same, you should explain it. useless

  • @abhishekkant9368
    @abhishekkant9368 5 ปีที่แล้ว

    Kya badiya smajaya bahishab aap see ,well done

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

    11:08; i thought rather than introducing new production Y -> a, we can use A->a, but that would also allow other productions of A which we don't want. that's why we introduce Y that only goes to a and nothing else.

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

    pls upload the videos of PDA and turing machine and thanks for such an excellent videos
    it will definitely help me in exams.....

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

    at 10:46 we took x->SA not x->AS as AS was also common of the three. Any specific reason?

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

      just a matter of preference nothing else.

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

    Helped out a lot, thanks my dude!

  • @JyotirmaySenapati
    @JyotirmaySenapati 7 ปีที่แล้ว

    Awesome Series.. very much recommended...

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

    ur lectures are outstanding..plz upload cnf to gnf conversion quickly
    if it possible plz upload pushdown automata.

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

    sir pls upload all remaining videos.......its very helpful for us.

  • @sarvanivallur1268
    @sarvanivallur1268 2 ปีที่แล้ว

    Thank you so much neso academy

  • @021_anuskapaul2
    @021_anuskapaul2 2 ปีที่แล้ว +1

    Sir I have a question. In the second step there is we have to remove the null production..but in the grammar there is only B tens to epsilon..there is no A tending to epsilon..from where you got that grammar ..I couldn't get that part

    • @14kadarshraj3
      @14kadarshraj3 2 ปีที่แล้ว +1

      because he remove B from A so there remain null.

  • @debarati2000
    @debarati2000 4 ปีที่แล้ว

    You're a life saviour 🔥

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

    Thank you that's all i can say 🙌🏻❤️

  • @bkdurgaprasad6039
    @bkdurgaprasad6039 4 ปีที่แล้ว

    Great explanation thank you sir!!

  • @prakharsinha7
    @prakharsinha7 15 วันที่ผ่านมา

    Sir what would we have to do if there exists two terminals on the RHS?
    Asking because in your method, none of the steps would remove that and a CNF cannot contain two terminals on the RHS

  • @sajitmagar3748
    @sajitmagar3748 7 ปีที่แล้ว

    well explained ,greetings frm texas

  • @tolubrand5330
    @tolubrand5330 7 ปีที่แล้ว +5

    Sir plz provide the lectures on PDA and TURING MACHINES🙏

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

    Sir in removing A->S at 8:25
    You replace S with it's sting but after that A again start refer to B (A->B) but you does not replace B with b(smal b(terminal)) in end why? Please answer

    • @fabiosilva9917
      @fabiosilva9917 5 ปีที่แล้ว

      Where do you have A->B? You have A->b, A->ASA, A->aB, A->a, A->AS, A->SA but never A refering B alone, you have to replace when you are refering to a single non terminal simbol, like in S'->S and A->B and A->S

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

    hello neso academy first of all thanks for the automata vdos ,this will help me a lot for my coming semester as it covered the whole syllabus and I learned all that.....I want to request u to upload d vdos on turing machine and PDA too as early as possible cz, my exams r one month later and this is in syallbus too. ur vdos helping me to score good in automata ...

  • @09faizan
    @09faizan 2 ปีที่แล้ว

    Thank-you sir very useful and helpful

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

    Helps a lot..🤟

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

    Hi! I wanted to ask what should you do if you have:
    A--> SbS ?? how can you transform it to CNF?
    Thanks in advance :)

  • @noahross3642
    @noahross3642 3 ปีที่แล้ว

    Thank you for the video!!

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

    thank u so much for this videos

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

    Sir please make the videos on Computer organizations and architecture 🤗🤗

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

      th-cam.com/play/PLBlnK6fEyqRgLLlzdgiTUKULKJPYc0A4q.html

    • @swatimaurya9405
      @swatimaurya9405 3 ปีที่แล้ว

      @@nesoacademy sir but this is not in detailed as per our college syllabus can you please refer that 🙏🙏🙏.

  • @rohanabraham4169
    @rohanabraham4169 3 ปีที่แล้ว

    Fantastic video.

  • @rahulshetty2918
    @rahulshetty2918 4 ปีที่แล้ว

    A plathero of thanks❤️

  • @vaishnavikhairnar4672
    @vaishnavikhairnar4672 4 ปีที่แล้ว

    Thank you so much sir🙏

  • @bhargavirevalli6102
    @bhargavirevalli6102 3 ปีที่แล้ว

    Good explanation

  • @radhadevigandluru5260
    @radhadevigandluru5260 3 ปีที่แล้ว

    I think starting symbol 'S' should not be appear on the right-hand side of any production ?

  • @matinaminsabouri
    @matinaminsabouri 11 วันที่ผ่านมา

    thanks sir❤‍🔥

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

    sir,(S->AX/aB/a/AS/SA) why the last SA is not replced by X ?

  • @ayeshabilal275
    @ayeshabilal275 3 ปีที่แล้ว

    Thanks for the video

  • @mistusural
    @mistusural 7 ปีที่แล้ว

    thank you sir for making that helpful vedio. pleace also make vedio about PDA and turing machin

  • @arunmanivarughese9085
    @arunmanivarughese9085 7 ปีที่แล้ว

    Excellent ,thanks sir

  • @akshatkumar2956
    @akshatkumar2956 4 ปีที่แล้ว

    In 11:52, you said that Y=a, then you have to change all 'a' production into 'Y'... But if u r doing so.. Then each production you have a add 'Y' individual(S'=Y, S=Y & A=Y) . Which can't possible...

  • @kushalhu7189
    @kushalhu7189 3 ปีที่แล้ว

    perfect explanation.......

  • @IFennecYouCODM
    @IFennecYouCODM 7 ปีที่แล้ว

    please upload PDA and Turing Machine Videos. Your videos really help.

  • @AnilKumar-wq2fv
    @AnilKumar-wq2fv 6 ปีที่แล้ว +1

    At the last step can we replace the S -> aB with S -> SB ??
    we have a production of S -> a...so we can replace that a with S...right?

  • @bikramized
    @bikramized 7 ปีที่แล้ว

    Please ,please🙏🙏
    please complete the Theory of Computation course.Please upload videos of rest of the topics and their examples i.e., PDA and Turing machine
    I have semester exams from 2nd week of next month.
    Please upload.
    NESO ACADEMY has helped me a lot in getting good marks in my previous semester.
    Please help.

  • @geniusgamez6258
    @geniusgamez6258 4 ปีที่แล้ว

    Isn't this the same example from the book "Introduction to the theory of computation" by Michael Sipser?

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

    at 10:45 - why let X -> SA and not say X-> AS ?

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

      because that do not have both terminal and non terminal

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

    You saved my life

  • @prasanth5283
    @prasanth5283 6 ปีที่แล้ว

    Are S,S' the start variables or is it only S? We can see that there is no way to reach S' if the start variable is S alone.

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

    What Should we do if there is no S on RHS?????

  • @pratyushdas8267
    @pratyushdas8267 5 ปีที่แล้ว

    Does S being on the right side have any relation to right linear grammar?

  • @AbhinavKumar-qn1dt
    @AbhinavKumar-qn1dt 7 ปีที่แล้ว

    Add some more videos, please. And if possible, then please add Microprocessor lectures too.

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

    In step 4,can we replace the most right sided SA with X????

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

      No, then you'll have only one Non terminal symbol, which is not in CNF.
      I know this comment is kinda late )

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

    sir please upload the remaining videos as soon as possible..please
    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @kushjoshi9427
    @kushjoshi9427 4 ปีที่แล้ว

    I have a doubt since we remove the unit production don't we remove B->b as well

  • @VidishArvind
    @VidishArvind 4 ปีที่แล้ว

    at 10:36 don't u think that in s',s and A we can write them as : AX|aB|a|AS|X in s and s' and in A> b|AX|aB|a|AS|X ????