DFA to Regular Expression Conversion (when the DFA has Multiple Final States)

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

КОМЕНТАРІ • 89

  • @philhearing3659
    @philhearing3659 6 років тому +36

    You are a great lecturer, thank you for your help!

  • @_a_r_un_
    @_a_r_un_ Рік тому +5

    Thanks sir very good explanation 👍

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

    Thanks for this Theory of Computation video! Is there a problem that you want to see done?

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

      The legend himself! Great work, your channel was very useful!

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 роки тому +27

    In short, when having multiple final states, the final RE for the given DFA is the *union* of the regular expressions found for the individual final states using Arden's theorem.
    After that, if you wish, you can simplify the RE obtained using suitable rules. That's all.

    • @jonaskoelker
      @jonaskoelker 2 роки тому +2

      I like stating exactly the same in multiple steps.
      Step one: decompose the given automaton (with k accepting states) into k automata each with a single accepting state.
      Step two: convert the single-accepting-state automata into regular expressions.
      Step three: take the union of those regular expressions.
      I find it interesting that step one is a thing one can do. I hadn't thought about it before now. I wonder if it's useful for other purposes.
      Just like we can do the product construction for arbitrary DFAs, we might define a sum/union construction for isomorphic DFAs (modulo accepting states) such that step 1 is its inverse.

  • @chiluvurideepthi6822
    @chiluvurideepthi6822 3 роки тому +5

    Crystal clear 😀

  • @aesophor
    @aesophor 6 років тому +6

    Oh my god this method is the awesome

  • @vincenzopalazzo173
    @vincenzopalazzo173 4 роки тому +7

    is good to have also the State elimination method :-)

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

    Thankyou sir

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

    Thank you so much!

  • @sumairah9346
    @sumairah9346 7 років тому +6

    Thanks a lot for this videos........ Very helpful......

  • @sierraliao1012
    @sierraliao1012 6 років тому +2

    Thank u very much!

    • @Nofaltuguy1
      @Nofaltuguy1 11 місяців тому

      😮you was has 5 years ago
      What are currently pursuing?

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

    Thank u sir!

  • @bbpranathi1804
    @bbpranathi1804 2 дні тому

    Tq sir

  • @manolia4221
    @manolia4221 5 років тому +6

    i think the final regular expression should be 0*1+ because if you look at the automata you'll see 0* is leading to a final state but 1* doesn't if you wanna go to q2 then you need at least one 1 so it's 1.1*-> 1^+

    • @ShusenAcademy
      @ShusenAcademy 4 роки тому +1

      I think the teacher is right. You see, q1 is also the final state. The string "0" is also accepted and it does not have "1". So, 0*1* is correct.

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

      yes it should be1+

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

      @@princevasoya6684 no

    • @harsh_t
      @harsh_t 2 роки тому +2

      If it was 1^+ , then epsilon wouldn't be accepted. But epsilon should be accepted as q1 is a final state.

  • @babanparab2370
    @babanparab2370 8 років тому +3

    thank you naco acadamy ,you are doing really good work

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

      yes naco academy is good

  • @MobileTechBangla-MTB
    @MobileTechBangla-MTB 6 років тому +7

    Can we use union symbol (U) instead of + symbol?

  • @deependra5233
    @deependra5233 7 років тому +7

    Sir, please do some videos on how to find, Regular expression using state elimination method. Please Thank you

    • @anshjain257
      @anshjain257 5 років тому

      yes

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

      this method feels a bit easier i will say especially when the dfa is complex or has multiple final states

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

    But Q3 is dead state right?
    We need to remove that state right?

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

    Book : Mishra and Chandrasekaran ; Page no 150 (3rd ed).

  • @vikrantbaliyan5075
    @vikrantbaliyan5075 7 років тому +3

    very very thank you neso academy

  • @abhaynanda1117
    @abhaynanda1117 7 років тому

    Best video I have ever seen for this topic

  • @AirTrake1
    @AirTrake1 5 років тому

    Dankeschön

  • @sc5shout
    @sc5shout Рік тому +5

    can q2 = 0*1(1*) be replaced with 0*1+?

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

    Does only DFAs have multiple final states, does NFAs always have only one final state?
    Iam new to this subject, that's why I am asking this question for my knowledge.

    • @prernasurana8094
      @prernasurana8094 4 роки тому +1

      NFAs do have multiple final states, however, given the current state that you are in, there could be multiple next states and could be chosen at random. All the next states can be chosen simultaneously as well. We also do not have to specify as to which state the NFA goes in, provided a certain input.

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

    are they same ? (a+b) == (b+a)

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

      Yes they are. But the same does not work for concatenation.
      Union is commutative.
      Concatenation is not commutative.

  • @mgs_4k198
    @mgs_4k198 6 років тому

    Really good, thank you very much

  • @shoaibali5795
    @shoaibali5795 4 роки тому +1

    Hi sir.
    We should only find regular expression for the final states or all the states?

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

    life saver!

  • @anjalimeena8169
    @anjalimeena8169 7 років тому

    very helpful sir Thank You

  • @ziyadelabid679
    @ziyadelabid679 4 роки тому +9

    Sorry but we have 11*=1+ why we can't use it

    • @miku4j
      @miku4j 4 роки тому +6

      We can
      = 0*(e + 11*)
      = 0*(e + 1+)
      = 0*1*

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

      Can you explain? What is the meaning of 1+. I know 1* means the Kleene Closure of 1, which includes all possible strings that can be made with 1.
      But what does 1+ mean?
      I hope you're still in touch with the subject, seeing that this comment is 2 yrs old. If you aren't, somebody else reading may please try and answer.

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

      @@pranavnyavanandi9710 1+ means all possible string made using 1 except null string (epsilon)

  • @danishbhatia1734
    @danishbhatia1734 8 років тому +1

    Sir, when will you complete the syllabus of TOC

  • @shoaibali4309
    @shoaibali4309 5 років тому

    Thanks a lot.

  • @kriskurti7497
    @kriskurti7497 10 місяців тому

    You sir deserve to get paid as much as football players

  • @varunvarun6022
    @varunvarun6022 8 років тому

    Sir..........Its a HUMBLE request, PLZ upload more videos...........

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

    What can we write in the lhs of obtained re in the last 5 seconds

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

    is this state ellimination method

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

    Why didnt we solve q3

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

    how R is union of both final states? Can anybody explain?

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

      When you have more than one final state, you do a union operation on the regular expressions of those final states.

    • @perelium-x
      @perelium-x 21 день тому

      @@talhamalik3tm 😭did you just explain

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

    what if R=QP ??

  • @morsgang
    @morsgang 6 років тому

    Cool

  • @AbhishekSingh-vz7ob
    @AbhishekSingh-vz7ob 8 років тому

    Sir, when will the new video of this series will be uploaded??

  • @ash57781
    @ash57781 8 років тому

    sir can you upload video to convert regular expressions to dfa

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

    Plz someone tell can we follow this method in University exam engineering?

    • @perelium-x
      @perelium-x 21 день тому

      what is wrong with this method? its outlined in books as Ardens Theorem...

  • @KadelandTheWizard
    @KadelandTheWizard 5 років тому

    When we wrote the last expression h there should be 1 with 0*
    0*1+0*11*
    because in q2 expression there is q11

  • @Ankit-we8ym
    @Ankit-we8ym 8 років тому +18

    if you have started, then at least finish it please

    • @ShiviNigam-yi4iy
      @ShiviNigam-yi4iy Рік тому +15

      Bhai mai aapka comment 6 saal baad dekh rha hu......abhi aap kya kr rhe ho

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

      ​@@ShiviNigam-yi4iy😂

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

      ​@@ShiviNigam-yi4iy lagta hai placement hogya Bhai ka😊😅

    • @gauravprakash2192
      @gauravprakash2192 4 місяці тому +1

      @@ShiviNigam-yi4iymeh aapka comment 1 saal baad dekh rha aap kya kr rhey ho ab

  • @TheKseth
    @TheKseth 8 років тому +8

    Sir bacho ko beech me chhodke chale gaye sab rore hain....Aage ki videos to daalo

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

    53

  • @Ankit-we8ym
    @Ankit-we8ym 8 років тому +1

    sir where are you why are you not uploading tutorial??

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

    can you plz help me in dfa for the exam pllzzzzzzzzzzzzzzzz?

  • @legendneverdiegaminglndg4136
    @legendneverdiegaminglndg4136 6 місяців тому

    It's only getting complicated

  • @shivanshsoni1776
    @shivanshsoni1776 6 років тому

    SORRY SIR in this viedos have a mistack Q2 state is not asain e empity velue .....

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

    you are god

  • @Dexteritye
    @Dexteritye 7 років тому

    How would you do DFAs that have 2 incoming arrows for each state. This problem is solvable with this algorithm because q1 has the form of epsilon + q1(0). And we can use Arden's theorem but if there are two arrows pointing towards q1 and q2 also has two arrows, and q3 also has two arrows. This algorithm will fail.

    • @ChristianBurnsShafer
      @ChristianBurnsShafer 6 років тому +2

      No, the algorithm still works. This is covered in previous videos. Try making an example for yourself where you think it will fail, then test the algorithm.

  • @Rajesh732-y4l
    @Rajesh732-y4l 8 років тому

    hello sir I have a query can u please clarify it???

  • @swm7f137
    @swm7f137 7 років тому

    please teach us Context free grimmer

  • @sonukosuno6803
    @sonukosuno6803 5 років тому

    But DfA m to 1 hi output hota h na🙄🙄

  • @karthikshinde6739
    @karthikshinde6739 6 років тому +1

    i think it is NFA to R.E ...not DFA to R.E..........please cross verif your video

    • @aydict
      @aydict 5 років тому +1

      please cross verify your thinking