Chomsky Normal Form (CNF) Conversion Example

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

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

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

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

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

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

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

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

  • @ancient1844
    @ancient1844 3 месяца назад

    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.

  • @TudorStoica2001
    @TudorStoica2001 2 месяца назад

    Your videos are the difference between barely passing and a 80+%
    Keep up the great work!

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

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

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

    Thank you! This is so helpful and easy to understand

  • @IntoLsys
    @IntoLsys 2 месяца назад +1

    clear explanation, thank you. minor miss: your last step missed replacing U_1C with Y-4 in rule B ->

  • @HieNeb
    @HieNeb 9 месяцев назад +14

    You explained this more complicated than it needs to be.

    • @kaethis
      @kaethis 3 месяца назад

      Very helpful comment. 👍 Explain how and why?

    • @noitsnotgood
      @noitsnotgood 2 месяца назад +1

      Actually I find that compared to other videos this one is the most complete

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

    best video explaining ever ❤❤

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

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

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

    Thanks a lot
    I finally got it🤩

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

    amazing work sir 👏👏👏

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

    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.

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

    Thank this was extremely helpful

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

    such a great video!

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

    very helpful

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

    THIS IS GOLD CONTENT

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

    very clear ..thanks

  • @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 года назад +3

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

  • @reisinilminetabiolmusbiras5865

    thanks sir

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

    great

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

    I'm buying an IPad.

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

  • @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 3 года назад +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 3 года назад +1

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

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

    solved

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

    You should replace my professor

  • @cansecosar
    @cansecosar 17 дней назад

  • @jcasp0947
    @jcasp0947 2 месяца назад

    ts od asf work