How to Convert NFA to DFA: Dealing with Epsilon Transitions

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

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

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

    Finally, I understand NFA to DFA before Midterms, thanks 🎉

  • @ODAKAB
    @ODAKAB Год назад +4

    cleanest and the clearest explanation even covers starting with an epsilon transition

  • @abenezertasissa49
    @abenezertasissa49 2 года назад +9

    WOW! perfect! the clear and consice explanation added with the amazing visuals, audio pacing being constant + composition and your way of covering a bunch of concepts within one example is perfect! loved it! Thank you!

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

    best explanation on this topic on youtube, thank you!

  • @Iqbal00123
    @Iqbal00123 10 месяцев назад +1

    Great video brother , please keep it up

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

    this man is good af thanks life savor

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

    Appreciate your clear explanation. Please continue making Computer Theory videos, such as converting regular expression to NFA and vice versa. Also, didn't mean to point this out, but because we are building DFA at the end, shouldn't our DFA have trap states? Anyway, thank you for your video, sir.

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

    Amazing video, jazakAllah Khair for clarifying epsilon transition

  • @sun-eq8yw
    @sun-eq8yw Год назад

    Please more video on computation theory, and all amaizing stuff . All the best !

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

    Excellent presentation.

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

    You are amazing!

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

    State (g,f) can be omitted, and the 0,1 transition can be from (a,s,f) to itself. I'm not sure how you got the state (g,f) in the first place, given there are no forward epsilon-transitions (indeed, no forward transitions at all) from state (g) or state (f) in the NFA.
    Essentially, if a newly created DFA state is a subset of any of the others, it doesn't need to be included.

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

      RE: "not sure how you got the state (g,f) in the first place." First, make sure you understand how we got the state {a,s,f} in the first row of the table. Now, consider 0 transition out of {a, s, f} (third row of the table). Observe that we can go from a to f on a 0 transition in the NFA. We can go from s to g on a 0 transition. Hence, we obtain {g, f} from {a, s, f} on a 0 transition. Makes sense? The video has a detailed explanation, including 0 transitions.
      Furthermore, your comment on subset is not true in general (and needs to be further refined). In particular, there are worst case examples (see the "Dragon book" of compiler design) showing that n number of NFA states may lead to 2^n DFA states, where you MUST retain all the subsets.

  • @victorliu9629
    @victorliu9629 Год назад +3

    shouldn't DFA cover all of the transitions(0 and 1)? g and g,f doesn't have any transitions

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

      This is because in the NFA, there is no transition out of g or out of f. In general, we cannot have a transition in the DFA that does not exist in the NFA.

  • @Kod.u
    @Kod.u Год назад

    Thanks for the very helpful explanation!

  • @MuhammedCheema-sl3lp
    @MuhammedCheema-sl3lp 7 месяцев назад +7

    should {g,f} not be {g,f,s} because u can go from a to s through epsilon.

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

    why isnt s part of the set for {a,s,f} on 0?

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

    best explaination

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

    Thank you!

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

    thank you a lot.. also i think we must create a dead state to have complete dfa.

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

    Thank you teacher

  • @sun-eq8yw
    @sun-eq8yw Год назад

    Awesome!
    please, what is the app you use?

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

    thank you so much

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

    very nice! thx

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

    great !

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

    can you refer a book?

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

      This is based on Michael Scott's Programming Languages book.

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

    thankss

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

    What happens when f epsilon to another state

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

    Johnson Brenda Davis Ruth Lopez Helen

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

    Martinez Gary Johnson Sarah Rodriguez Michelle

  • @JuliaHennigan-r1m
    @JuliaHennigan-r1m 3 месяца назад

    Davis Kimberly Lee Amy Williams Nancy