Conversion of NFA to DFA (Powerset/Subset Construction Example)

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 92

  • @EasyTheory
    @EasyTheory  4 роки тому +5

    Next video! Proving that {0^n 1^n : n at least 0} is not regular: ua-cam.com/video/5GG8goBW9gw/v-deo.html

  • @aokellermann
    @aokellermann 4 роки тому +125

    Thank you so much man. You're way more competent than my university professor.

  • @hectorg362
    @hectorg362 3 роки тому +47

    I personally like this version better than the version where you are building a table of transition states and then drawing out the DFA with that table.

    • @wasgehdabman
      @wasgehdabman 11 місяців тому +2

      it's the same thing though, just with the table you keep track of everything. With a larger alphabet it could get messy.

  • @bachi5373
    @bachi5373 3 роки тому +24

    A lot of videos didn't include the empty string Epsilon. This helps a lot!

  • @hurboglan1003
    @hurboglan1003 Рік тому +2

    my lecture notes look like alien language but this thing right here, anybody could understand this. Thank you so much

  • @ahmadqureshi5366
    @ahmadqureshi5366 Місяць тому

    Never thought I would be learning theoretical Informatics from Dexter. WOW!!!

  • @creeper-d5v
    @creeper-d5v 27 днів тому

    Explained much better than my professor. :)

  • @2v2
    @2v2 Рік тому +1

    Really took all the complex mind bending gymnastics out of it thank you.

  • @jjLishy
    @jjLishy 27 днів тому

    WOW?!?!?! I THOUGHT THE LAST VIDEO I SAW WAS THE BEST BUT URS EVEN BETTER!!!!

  • @JayashreeAPElumalai
    @JayashreeAPElumalai 5 місяців тому

    Thank you soo much. Had to study this for finals and I was confused by my own notes. After many vids yours was the only one that answered all my confusions.

  • @laurenshoste2773
    @laurenshoste2773 Місяць тому

    better explained than university professor

  • @thelogbob281
    @thelogbob281 Рік тому +2

    incredible, incredible video! thank you so much for doing what my textbook could not which would be explaining this process in a simple yet explanatory manner. Have a great day!

  • @yitooasrat4668
    @yitooasrat4668 3 роки тому +2

    keep up the good work
    This is a the best explanation anyone can get on this course

  • @edgermoreno3945
    @edgermoreno3945 3 роки тому +9

    Amazing job, you make solving these problems much easier.

  • @IncendiaHL
    @IncendiaHL Рік тому

    Ok this seemed so difficult in class, but you made it easy. Thank you!!

  • @manalasmouh5549
    @manalasmouh5549 10 місяців тому +1

    I’m glad i came across this channel cuz my teacher sucks

  • @breakloop
    @breakloop Рік тому +3

    i get uni's might have to stick with teaching the most 'formal/textbook' ways of solving a problem. but being taught these hacky but intuitive methods would make overall comprehension such a breeze and personally i think that's what education should be about.

  • @amesund
    @amesund 4 роки тому +4

    Your videos are so helpful, thank you!

  • @kevalgandhi1272
    @kevalgandhi1272 Рік тому

    Thank you SO MUCH for your explanation, I got this concept literally just now!! Thanks a lot!

  • @saladrockstar
    @saladrockstar Рік тому

    Super helpful for my discrete 2 exam this week! Thanks so much :D

  • @abel5545
    @abel5545 4 роки тому +2

    This was very easy to follow. Thanks a lot :)

  • @reyhanehakhlaghian9523
    @reyhanehakhlaghian9523 Місяць тому

    Your video helped me a lot. thank you!

  • @NguyenTran-sn8vt
    @NguyenTran-sn8vt 2 місяці тому

    Very easy to understand viddeo. Thank you so much!

  • @SimoneBova-k8l
    @SimoneBova-k8l 11 місяців тому

    Wow! Congrats on the clear explaination

  • @helcomn
    @helcomn Рік тому +1

    Thanks! In the end i was left with only one final state and it was the one that i started with. I checked my DFA and there was no route starting from my ε-enclosure and getting back there, so I assumed it was alright. I'd be happy to hear from your side to see if i did anything questionable.
    P.S i didnt go to my uni class but you seem superior.

  • @charlie10010
    @charlie10010 Рік тому

    Holy crap this method is so beautiful! Thanks!!!

  • @selinamartinez8067
    @selinamartinez8067 2 роки тому

    I'm always watching your video! And it is the most awesome lecture I've ever seen since I was born!!!! Thank you SOOOO much!!!!

  • @aahilrafiq4850
    @aahilrafiq4850 Рік тому +1

    Thank you , i understood really well !

  • @TiaDzn
    @TiaDzn Рік тому

    3:54 "The set of states I could be in from q_2 reading an 'a' is q_0, q_1, q_2" Could you please explain me why "q_1" too? Starting from q_2, with an epsilon we can't go anywhere, with an a we can only go in q_0 and q_2 itself, and with a b only in q_3. Where am I wrong? Thanks in advance.

    • @zeking3844
      @zeking3844 Рік тому

      From q_2 on input 'a' you can go to q0 and to the epsilon closure of q0 which is q1

  • @isam3l3
    @isam3l3 3 роки тому

    Thanks, along side this. Wikipedia helped me grasp the theoretical side a little aswell

  • @shanestevens516
    @shanestevens516 3 роки тому

    way better than my professor!

  • @dionysismaniatakosmusic
    @dionysismaniatakosmusic 2 роки тому

    Thanks! You did a great job explaining it!

  • @1SnowBall1
    @1SnowBall1 Рік тому

    really late to this gem but thank you! I have a question what if there was also an epsilon from q1 to q3 and an epsilon from q3 to q2 what would the starting state look like in the DFA?

  • @Leaf682
    @Leaf682 4 роки тому

    At 3:11 shouldnt it be just q1 instead of just q2, since getting a 'b' wont let us transition out of that state?

    • @EasyTheory
      @EasyTheory  4 роки тому

      I'm not sure where you're getting q1. Note that the state we are testing "from" is {q0, q1} - note that q0 does not have a "b" transition, and q1 does have one to q2. So the resulting "state" is {q2}.

  • @taijin1369
    @taijin1369 3 місяці тому

    you are the GOAT!

  • @nikolaytodorov2416
    @nikolaytodorov2416 Місяць тому

    Great stuff, thank you!

  • @KonstructChannel
    @KonstructChannel 2 роки тому +1

    But what if theres no epsilon enclosure in the NFA? How do I start? Do I just have to start with a if f.e q0 points with a to q1?

  • @manalasmouh5549
    @manalasmouh5549 9 місяців тому

    best teacher evaaah

  • @cameronfrazier8330
    @cameronfrazier8330 9 місяців тому

    LITERALLY PERFEECT VIDEO

  • @jiwooahn1966
    @jiwooahn1966 8 місяців тому

    thanks a lot! u just saved my mid

  • @nyanyacalc
    @nyanyacalc Рік тому

    Nice explanation, thanks

  • @ahmetmurtezaoglu
    @ahmetmurtezaoglu 9 місяців тому

    Thank you a lot, great work!

  • @wujekjerry1188
    @wujekjerry1188 8 місяців тому

    Can someone explain to me how {q1, q3} + a = {q1, q2} ?? Thats the only thing I cant understand. Is it because theres no defined states from q3 for the input 'a' this 'thread' kinda 'dies' and we can ignore it completely while q1 when given 'a' can result with both q1 and q2 and thats how we compe up with that?

    • @ChamaliVishmani1999
      @ChamaliVishmani1999 7 місяців тому

      from q1 through 'a' we can go to states {q1,q2}. from q2 we cant go to any state using 'a' transition. So next, when we consider the epsilon closures of q1 and q2, i.e. which states we can go to using epsilon transitions, it is themselves ; {q1,q2}. Hope that helps!

  • @溫皓宇-u6y
    @溫皓宇-u6y 8 місяців тому

    very good video, love it

  • @kenana3456
    @kenana3456 3 роки тому

    Great explanation , thanks

  • @forthehomies7043
    @forthehomies7043 2 місяці тому

    Beautiful!

  • @dewman7477
    @dewman7477 4 роки тому

    I don't get the echelon part of determining the set of states.

  • @enisozer5007
    @enisozer5007 Рік тому

    Great content!

  • @john_is_never_home6871
    @john_is_never_home6871 2 роки тому

    "Just use a computer to do this, don't do it by hand".
    Meanwhile I'm over here studying for my thermotical foundations exam where I know that this will show up.

  • @britannio
    @britannio 3 роки тому

    Legendary video

  • @munteanionut3993
    @munteanionut3993 2 роки тому

    What if I don't have Epsilon on my NFA?

  • @booqueefiusbartholomuleiii9957
    @booqueefiusbartholomuleiii9957 2 роки тому

    Thanks for this great video

  • @glizzy5154
    @glizzy5154 2 роки тому

    needed this

  • @stevehof
    @stevehof 2 роки тому

    Thanks a bunch! Super clear!

  • @mohammedmansour3567
    @mohammedmansour3567 2 роки тому

    What do you do if you have a lamda transition?

  • @memoymishra4619
    @memoymishra4619 Рік тому

    C'est incroyable!

  • @TotallyOKaYProductions
    @TotallyOKaYProductions 3 роки тому

    this is some good stuff bro

  • @anarmehraliyev1286
    @anarmehraliyev1286 3 роки тому

    Thanks a lot, I finally got it

  • @javawithhawa
    @javawithhawa 3 роки тому

    Great video!

  • @hlo6217
    @hlo6217 2 роки тому

    intro is iconic lol 🤣🤣

  • @Mike-kq5yc
    @Mike-kq5yc 4 роки тому

    Can you eventually tell me which book(s) your videos rely on? Because the professor in our Theoretical Computer Science lecture is not explaining everything thoroughly and deeply. Thanks in advance.

    • @EasyTheory
      @EasyTheory  4 роки тому

      It's mainly the Sipser textbook, 3rd edition. All the notation I use is from there too.

  • @zacklnwza0073
    @zacklnwza0073 Рік тому

    you the best.

  • @azuboof
    @azuboof Рік тому

    youre awesome. thanks

  • @andreymarchuk8938
    @andreymarchuk8938 3 роки тому

    Thank you!

  • @wentaohe3076
    @wentaohe3076 2 роки тому

    very clear

  • @gurkengerd9981
    @gurkengerd9981 4 роки тому

    How is this a DFA? {q1,q3} have 2 inputs leading to the same state {q1,q2}. This makes it non-deterministic.

    • @EasyTheory
      @EasyTheory  4 роки тому +3

      Not quite. Non-determinism happens when you have 2 transitions *with the same symbol* going from the same state. In this case, it's 2 transitions with *different* symbols. Only one of the two can possibly be taken at a time.

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 3 роки тому

    thank you so much

  • @adityamishra6389
    @adityamishra6389 2 роки тому

    Thanks man.

  • @thelockenbubi7117
    @thelockenbubi7117 2 роки тому

    Thx dude!

  • @munteanionut3993
    @munteanionut3993 2 роки тому

    Thanks a lot! : D

  • @caominhnhat1455
    @caominhnhat1455 4 роки тому +3

    *heart react

  • @MatthewMiller-b5e
    @MatthewMiller-b5e 2 місяці тому

    Perez Edward Hall Brenda Jones Laura

  • @MatthewMiller-b5e
    @MatthewMiller-b5e 2 місяці тому

    Taylor Matthew Williams Helen Martinez Jason

  • @itsweird3373
    @itsweird3373 9 місяців тому

    abi çok tatlısın da anlatırken niye sinirleniyorsun anlamadım

  • @ion_propulsion7779
    @ion_propulsion7779 Рік тому

    Ahhhhh why are you making me do it by hand Sir! 😡

  • @sharpvik
    @sharpvik 3 роки тому +1

    Man, I'm afraid you have a video in your ads...

  • @Tf_vincent
    @Tf_vincent 4 роки тому

    Don't understand for shit, plez make second vid...

  • @VonSteiner1
    @VonSteiner1 3 місяці тому

    I hate professors for being so damn stupid. Why not just teach it this way?

  • @armandduval4893
    @armandduval4893 2 місяці тому

    Great video, thanks a lot!