Chomsky Normal Form Conversion Example

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

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

  • @EasyTheory
    @EasyTheory  3 года назад +59

    Correction (from Natnael Taye): at 10:12, I incorrectly drew an arrow from B -> S0, whereas I meant B -> S (I even say it correctly...). If you see anything else wrong, reply to this and I'll credit you here.

    • @bhavesh.adhikari
      @bhavesh.adhikari 9 месяцев назад

      @ 12:03 why A goes to S° ? or is it just the way we do it? since we have introduced the new start S° that goes to S, it's pretty much the same duplication for A (which you mentioned afterwards) for substitution of S° as S° goes where S goes. so if A goes to S°(say), shouldn't B does the same ?
      btw your videos are so helpful. thank you very much

  • @domc97
    @domc97 3 года назад +34

    what an underrated channel. The way you explained really helped!

  • @ТамирланБельгибаев
    @ТамирланБельгибаев 4 года назад +14

    You will save my money and time, sir! Thank You!

  • @t-en-t2542
    @t-en-t2542 3 года назад +5

    Thank you from Germany.
    I have my final exams next week. Your videos definitely helped me a lot! Keep up the great work!

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

    watched this just now. thank you from the bottom of my heart because I was so confused with the way it was being taught in the course I'm taking, but the way you explained it sounded so clear and easy to understand

  • @muhammed2174
    @muhammed2174 13 дней назад

    Saved me on my midterm this example!!

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

    it was really helpful. i finally understand CNF... wish me luck i have an exam tomorrow. thank you so much, sir!

  • @qwqqq2416
    @qwqqq2416 3 года назад +9

    Thank you Professor, I wish I had you at my college to teach this.

  • @randomguy18632
    @randomguy18632 4 года назад +3

    Now I get it! 3 hr collage voom meeting did not help.

  • @eleman971
    @eleman971 10 месяцев назад

    final is in 7 hours. you are a life saver

  • @natnaeltaye2279
    @natnaeltaye2279 3 года назад +14

    Thank you for your video. Super helpful!
    Just one question:
    At 10:06, why do we have a directed edge from B to S0? Shouldn't it be from B to S instead? because that's what the rule implies.
    Thank you.

    • @EasyTheory
      @EasyTheory  3 года назад +3

      Wow I didn't even notice that. Thanks!

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

    That was perfect! Thank you for this lesson

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

    Thank you, that's a great explanation. Maybe you have an example with brackets, for example with rules something like S -> A, A -> (S)A etc. It's just a bit confusing for me how we should treat brackets as terminal symbols i guess? Thank you for your explanations sir.

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

    Thanks a lot man ! You are making things so simple to understand

  • @امینجمالی-خ9ص
    @امینجمالی-خ9ص Год назад

    great explanation

  • @QasimKhan-nd8og
    @QasimKhan-nd8og 2 года назад

    excellent explanation

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

    Thanks for the video!

  • @mr.philbs3807
    @mr.philbs3807 3 года назад +1

    Thank you for your help! Great video

  • @juliangershwin
    @juliangershwin 3 года назад +5

    At 10:07 you draw a line from B --> S0, shouldn't that be a line from B --> S? Wouldn't that change the final form? EDIT: No it wouldn't.

    • @mertellialti
      @mertellialti 3 года назад

      but it was a mistake I think, or we think wrong? I'm confused...

    • @juliangershwin
      @juliangershwin 3 года назад

      @@mertellialti it was a mistake. However, I am pretty sure that the answer is the same.

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

      Wanted to write the same

  • @Mike-ej9dg
    @Mike-ej9dg 9 месяцев назад +1

    Hello. At 13.32 why didnt you copy the whole expression of B?

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

    Hi, you said A can go to S0 at 12:06 but there is no edge in the graph, how can it A to S0 then please?

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

      he made mistake, there is no way A can reach S0... his graph has mistake.

  • @vimalathithand917
    @vimalathithand917 10 месяцев назад

    Thanks!

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

    much love

  • @vikhyatsharma8138
    @vikhyatsharma8138 3 года назад

    Like from India

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

    would you break 4 nonterminals into two Y variables? ex: ABCD --> Y1Y2 where Y1 = AB and Y2 = CD

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

      I know this is late, but for anyone reading this: that is incorrect.
      Here is an example: X->CDEF becomes X->CY, Y->DEF and then in the next iteration we have X->CY, Y->DZ, Z->EF

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

    At the end S0 and S both are same . So can we remove S0 and make S as the starting variable.

  • @unamattina6023
    @unamattina6023 4 месяца назад

    why S is deleted from B in 12.33?

  • @humiracousary1790
    @humiracousary1790 3 года назад

    thank you sir.....

  • @joshuadelorbe4444
    @joshuadelorbe4444 3 года назад

    great video

  • @shadowlite18
    @shadowlite18 3 года назад

    hello sir, hopefully you see this before i start my quiz, im wondering if the order of mixed var needs to be changed too? i learned from the vid that we need to change forms of (aA) by replacing it with another var X or Y but if the form is (Aa), do we still change it? or leave it as is?

    • @shadowlite18
      @shadowlite18 3 года назад

      additional question, when do we simplify the CFG(removing useless symbols)? do we do it before or after converting to CNF?

  • @arkprince9413
    @arkprince9413 3 года назад

    u should be an actor

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

      I kinda am when I'm teaching ;)

  • @mertellialti
    @mertellialti 3 года назад

    no one tried to do it in a different order... let me try

    • @EasyTheory
      @EasyTheory  3 года назад

      Most orders don't work - I've done a video where (I think) around 20 out of the 120 possible orders work.