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

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

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

  • @philhearing3659
    @philhearing3659 6 лет назад +36

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

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

  • @_a_r_un_
    @_a_r_un_ Год назад +5

    Thanks sir very good explanation 👍

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

    Crystal clear 😀

  • @aesophor
    @aesophor 6 лет назад +6

    Oh my god this method is the awesome

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

  • @vincenzopalazzo173
    @vincenzopalazzo173 4 года назад +7

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

  • @sc5shout
    @sc5shout Год назад +5

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

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

    Thank you so much!

  • @MobileTechBangla-MTB
    @MobileTechBangla-MTB 6 лет назад +7

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

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

    Thankyou sir

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

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

  • @babanparab2370
    @babanparab2370 7 лет назад +3

    thank you naco acadamy ,you are doing really good work

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

      yes naco academy is good

  • @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 Год назад

      @@princevasoya6684 no

    • @harsh_t
      @harsh_t Год назад +2

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

  • @sumairah9346
    @sumairah9346 7 лет назад +6

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

  • @ksp2103
    @ksp2103 4 года назад +5

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

  • @abhaynanda1117
    @abhaynanda1117 7 лет назад

    Best video I have ever seen for this topic

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

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

  • @vikrantbaliyan5075
    @vikrantbaliyan5075 7 лет назад +3

    very very thank you neso academy

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

    Thank u sir!

  • @sierraliao1012
    @sierraliao1012 6 лет назад +2

    Thank u very much!

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

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

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

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

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

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

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

      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 День назад

      @@talhamalik3tm 😭did you just explain

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

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

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

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

    life saver!

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

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

    • @perelium-x
      @perelium-x День назад

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

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

    You sir deserve to get paid as much as football players

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

  • @varunvarun6022
    @varunvarun6022 7 лет назад

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

  • @anjalimeena8169
    @anjalimeena8169 7 лет назад

    very helpful sir Thank You

  • @mgs_4k198
    @mgs_4k198 6 лет назад

    Really good, thank you very much

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

    is this state ellimination method

  • @AirTrake1
    @AirTrake1 5 лет назад

    Dankeschön

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

    what if R=QP ??

  • @danishbhatia1734
    @danishbhatia1734 7 лет назад +1

    Sir, when will you complete the syllabus of TOC

  • @shoaibali4309
    @shoaibali4309 5 лет назад

    Thanks a lot.

  • @Ankit-we8ym
    @Ankit-we8ym 7 лет назад +18

    if you have started, then at least finish it please

    • @ShiviNigam-yi4iy
      @ShiviNigam-yi4iy Год назад +12

      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 3 месяца назад

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

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

    Why didnt we solve q3

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

  • @ash57781
    @ash57781 7 лет назад

    sir can you upload video to convert regular expressions to dfa

  • @AbhishekSingh-vz7ob
    @AbhishekSingh-vz7ob 7 лет назад

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

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

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

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

  • @TheKseth
    @TheKseth 7 лет назад +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 7 лет назад +1

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

  • @shivanshsoni1776
    @shivanshsoni1776 6 лет назад

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

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

    It's only getting complicated

  • @morsgang
    @morsgang 6 лет назад

    Cool

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

    you are god

  • @Rajesh732-y4l
    @Rajesh732-y4l 7 лет назад

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

  • @swm7f137
    @swm7f137 7 лет назад

    please teach us Context free grimmer

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

  • @sonukosuno6803
    @sonukosuno6803 5 лет назад

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