Regex to NFA Conversion Isn't Hard! (Sipser 1.28a)

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

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

  • @farheenshaikh6724
    @farheenshaikh6724 11 дней назад

    Thank you so much for this video! After banging my head against countless other tutorials, yours was the one that finally made Regex conversion click for me. The clarity and detail you provided were exactly what I needed. I can't express how much I appreciate your effort-this is a game-changer for me. Keep up the awesome work! 🙌

  • @dawidbania7903
    @dawidbania7903 Год назад +25

    There is a mistake in constructing the expression (abb)*. With the way you described it, you can make expressions that are of form (abb)^n where n>=1. There should be a returning loop between last state (that we get into by reading 'b' for the second time) and the state before we read 'a' with 'epsilon' read. And there should be a forward path from starting state to end state with 'epsilon' read.

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

      yes, this is very right. I was looking out for a comment that matches my thought. Thanks

    • @chongwan4712
      @chongwan4712 7 месяцев назад +3

      I think what Easy Theory had was correct.
      First, you're saying that "There should be a returning loop between last state (that we get into by reading 'b' for the second time) and the state before we read 'a' with 'epsilon' read" but this is equivalent to linking the last state to the beginning state because epsilon transitions don't take up any string.
      Second, responding to the statement "And there should be a forward path from starting state to end state with 'epsilon' read.", this is redundant because the starting state is already a final state, so we don't need the epsilon transition to the end state.
      Please correct me if you think I am wrong.

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

      It's a standard procedure. Don't make things more complicated

  • @benjaminwatkinson6464
    @benjaminwatkinson6464 3 года назад +20

    If NFAs are like onions and ogres are like onions can you convert directly from NFAs to ogres?

  • @cristianiorga6393
    @cristianiorga6393 Год назад +31

    You are amazing! It`s a shame I only discovered your channel in the night before the exam :D

  • @seiftarraf6213
    @seiftarraf6213 2 года назад +4

    Very helpful. Thank you. This converted the regex into an epsilon-NFA. Now I could convert this epsilon-NFA into an NFA but this would take even more time. Do you have any tips on how to convert this regex into an NFA without epsilon-transitions?

  • @CK-od6ig
    @CK-od6ig Год назад +1

    If we had the regular expression a(abb)* U c and instead of b we put c in place of the corresponding b in the NFA how would the NFA accept for example the string αc ?

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

      It doesn't. The strings accepted would be {EMPTY, c, a, aabb, aabbabb,...}. It's the union of the unitary string 'c' and the strings generated bu the regular expression a(abb)*, that is, string that start with 'a' and has any amount of 'abb's, even none.

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

    thanks a lot thanks a lot you are my saviour i was so stressed

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

    You are my savior.

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

    Can we get rid of some of the epsilons?

  • @Karim-nq1be
    @Karim-nq1be Год назад

    That was easy indeed and brilliantly explained.

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

    how would you convert this to left linear grammar? with all the Epsilons?

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

    Thank you so much! Very good explanation and procedure!

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

    simple and well explained

  • @KevinGarcia-ws1kt
    @KevinGarcia-ws1kt Год назад +1

    is the union and the Plus sign the same ??

  • @carina.zip2002
    @carina.zip2002 10 месяцев назад

    this made so much sense than you so much!! really helping me in my algo analysis class :))

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

    Awesome and explained clearly, thank you!

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

    Thank you, I'd request please more pumping lemmas problems :)

  • @최현아-i4n
    @최현아-i4n Год назад

    this video will be my source for compiler class lmao

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

    Thanks I learnt a lot from your videos

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

    Thank you! Very easy to understand ❤❤❤

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

    ty

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

    great explanation as always!

  • @MiguelMartinez-yj7yu
    @MiguelMartinez-yj7yu 2 года назад

    You're amazing, man!

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

    Thanks, very helpful!!

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

    Thank you!

  • @golden-jungoo655
    @golden-jungoo655 9 месяцев назад

    Thank you so much ^^

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

    Amazing thank u so so much

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

    THANK U MAN U ROCK

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

    Thanks! This was helpful :D

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

    great video 😍

  • @JenniferThomas-z7l
    @JenniferThomas-z7l Месяц назад

    Clark Robert Taylor Deborah Thomas Jose

  • @MatthewMiller-b5e
    @MatthewMiller-b5e Месяц назад

    Wilson Jennifer Clark James Wilson David

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

    barra yarham bouk

  • @JenniferWhite-l6r
    @JenniferWhite-l6r Месяц назад

    Walker Anna Hernandez Donald Walker Paul

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

    complicated thiongs

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

    that was eazzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzi

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

    Go to an indian teacher they are very good in teaching..

  • @ConradRobert-y3q
    @ConradRobert-y3q Месяц назад

    6997 Jerrod Overpass