Chomsky Normal Form (CNF) Conversion Example

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

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

  • @EasyTheory
    @EasyTheory  4 года назад +1

    Next video! Strings that are not substrings but are subsequences: ruclips.net/video/Ms3zpTbqmBI/видео.html

  • @AHMED-ry2gy
    @AHMED-ry2gy 2 года назад +15

    thanks for the video, that was really helpful,
    you forgot to change the rule U1CU2 with Y4U2 in the Variable B in stage 5

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

    I'm buying an IPad.

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

    I am gonna have my exam in 7 hours and this video could´ve not been more helpful thank you so much

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

    You're the best. My textbook for Theory of Computation only has one example for a CFG to CNF conversion, and it didn't do a great job at explaining it. Thank you so much! I have a question, though. When the conversion is finished, isn't S redundant? S_0 has the exact same rules except the epsilon, so why have it? S_0 doesn't call it, and it isn't called anywhere else either.

  • @ofcdune
    @ofcdune Год назад +6

    amazing work, I told my entire computer science course about you

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

    Man, I really appreciate you and all the time you've put into this series of videos. You seem like a great guy, I hope everything is well.

  • @HieNeb
    @HieNeb 5 месяцев назад +11

    You explained this more complicated than it needs to be.

    • @kaethis
      @kaethis 2 часа назад

      Very helpful comment. 👍 Explain how and why?

  • @ChildArvin-x8s
    @ChildArvin-x8s 19 дней назад

    Garcia Jason Thomas Ruth Robinson Jeffrey

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

    amazing work sir 👏👏👏

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

    Thank you! This is so helpful and easy to understand

  • @GeorgeJames-e3d
    @GeorgeJames-e3d 28 дней назад

    Lee Richard Moore Ruth Hernandez Michelle

  • @SaifulMia-y3t
    @SaifulMia-y3t 27 дней назад

    Martinez Ruth Young Susan Smith Ruth

  • @DollyCalvin-n3p
    @DollyCalvin-n3p 29 дней назад

    Walker Kevin Wilson Helen Wilson Barbara

  • @jamescommon478
    @jamescommon478 8 месяцев назад +1

    solved

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

    THIS IS GOLD CONTENT

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

    You left S0 -> Epsilon. This isnt considered Chomsky as you have to eliminate all epsilons. Is that correct?

    • @alan.torres
      @alan.torres 2 года назад +2

      I believe CNF has a special rule where the start variable can go to epsilon, but no other variables can

  • @lix2146
    @lix2146 4 месяца назад +1

    such a great video!

  • @veeramakalit9642
    @veeramakalit9642 22 дня назад

    great

  • @codylaw2130
    @codylaw2130 3 года назад +1

    Thank this was extremely helpful

  • @Joe-mx1jb
    @Joe-mx1jb 2 года назад +1

    very helpful

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

    thank you so much. you really do make theory EASY!!!!

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

    For eliminating epsilon rules, what if B --> epsilon but S --> aBB. Would S be considered a nullable variable or are nullable variables only if it would be like S --> B

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

      By that rule alone, no. However, if there is a *different* rule where you determine that S is nullable, then that's enough. The rule you gave is not enough on its own to determine if S is nullable or not.

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

    absolutely saved me, thanks

  • @QuanNguyen-oq6lm
    @QuanNguyen-oq6lm 2 года назад

    You should replace my professor

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

    best video explaining ever ❤❤

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

    I have a question. When you "eliminate" the unit rules the all S rules become unaccessible from S0. Is that fine?

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

      Well, in this particular example, you don't need that state S0 since there is no state that has S in its RHS.

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

      I guess he was just showing off what we would do if we had any S in the RHS of any state.

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

    thanks sir

  • @joshsnailz
    @joshsnailz 4 года назад

    very clear ..thanks