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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • TOC: DFA to Regular Expression Conversion (when the DFA has Multiple Final States)
    This lecture shows how to design the Regular Expression for a given DFA when the DFA has Multiple Final States.
    Contribute: www.nesoacademy...
    Website ► www.nesoacademy...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Pinterest ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    • Axol x Alex Skrindo - ...

ความคิดเห็น • 82

  • @philhearing3659
    @philhearing3659 5 ปีที่แล้ว +33

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

  • @_a_r_un_
    @_a_r_un_ ปีที่แล้ว +5

    Thanks sir very good explanation 👍

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 ปีที่แล้ว +22

    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.

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 3 ปีที่แล้ว +2

    Thankyou sir

  • @chiluvurideepthi6822
    @chiluvurideepthi6822 3 ปีที่แล้ว +5

    Crystal clear 😀

  • @eku333
    @eku333 5 ปีที่แล้ว +6

    Oh my god this method is the awesome

  • @darkblack9958
    @darkblack9958 ปีที่แล้ว +1

    Thank you so much!

  • @EasyTheory
    @EasyTheory 4 ปีที่แล้ว +6

    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 :-)

  • @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 6 ปีที่แล้ว +6

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

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

  • @babanparab2370
    @babanparab2370 7 ปีที่แล้ว +3

    thank you naco acadamy ,you are doing really good work

    • @akshat680
      @akshat680 ปีที่แล้ว

      yes naco academy is good

  • @sierraliao1012
    @sierraliao1012 5 ปีที่แล้ว +2

    Thank u very much!

    • @Nofaltuguy1
      @Nofaltuguy1 6 หลายเดือนก่อน

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

  • @suvankar54
    @suvankar54 2 ปีที่แล้ว +1

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

  • @sc5shout
    @sc5shout ปีที่แล้ว +4

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

  • @mobiletechbangla
    @mobiletechbangla 6 ปีที่แล้ว +6

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

  • @divyaanshuagrawal3383
    @divyaanshuagrawal3383 ปีที่แล้ว

    Thank u sir!

  • @ksp2103
    @ksp2103 3 ปีที่แล้ว +5

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

  • @vikrantbaliyan5075
    @vikrantbaliyan5075 7 ปีที่แล้ว +3

    very very thank you neso academy

    • @harshithshetty8528
      @harshithshetty8528 7 หลายเดือนก่อน

      What are u doing now bro😅😅

  • @AirTrake1
    @AirTrake1 5 ปีที่แล้ว

    Dankeschön

  • @abhaynanda1117
    @abhaynanda1117 6 ปีที่แล้ว

    Best video I have ever seen for this topic

  • @sarial
    @sarial 2 ปีที่แล้ว +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.

  • @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 3 ปีที่แล้ว +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.

  • @mikael673
    @mikael673 9 หลายเดือนก่อน

    life saver!

  • @anjalimeena8169
    @anjalimeena8169 7 ปีที่แล้ว

    very helpful sir Thank You

  • @mgs_4k198
    @mgs_4k198 6 ปีที่แล้ว

    Really good, thank you very much

  • @varunvarun6022
    @varunvarun6022 7 ปีที่แล้ว

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

  • @shoaibali4309
    @shoaibali4309 5 ปีที่แล้ว

    Thanks a lot.

  • @kriskurti7497
    @kriskurti7497 5 หลายเดือนก่อน

    You sir deserve to get paid as much as football players

  • @shoaibali5795
    @shoaibali5795 4 ปีที่แล้ว +1

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

  • @ziyadelabid679
    @ziyadelabid679 4 ปีที่แล้ว +9

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

    • @ahmaddynugroho
      @ahmaddynugroho 3 ปีที่แล้ว +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)

  • @User_435gyu6
    @User_435gyu6 3 ปีที่แล้ว

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

  • @sreekuttanjs932
    @sreekuttanjs932 ปีที่แล้ว

    is this state ellimination method

  • @rohmanatasi1771
    @rohmanatasi1771 10 หลายเดือนก่อน

    what if R=QP ??

  • @siddiq_sid
    @siddiq_sid 2 ปีที่แล้ว +1

    Why didnt we solve q3

  • @KadelandTheWizard
    @KadelandTheWizard 4 ปีที่แล้ว

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

  • @danishbhatia1734
    @danishbhatia1734 7 ปีที่แล้ว +1

    Sir, when will you complete the syllabus of TOC

  • @Ankit-we8ym
    @Ankit-we8ym 7 ปีที่แล้ว +17

    if you have started, then at least finish it please

    • @ShiviNigam-yi4iy
      @ShiviNigam-yi4iy ปีที่แล้ว +10

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

    • @_sf_editz1870
      @_sf_editz1870 ปีที่แล้ว +1

      ​@@ShiviNigam-yi4iy😂

    • @willingdoc
      @willingdoc 9 หลายเดือนก่อน +2

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

  • @deadvision22
    @deadvision22 4 หลายเดือนก่อน

    you are god

  • @neiljohn2637
    @neiljohn2637 2 ปีที่แล้ว

    53

  • @ash57781
    @ash57781 7 ปีที่แล้ว

    sir can you upload video to convert regular expressions to dfa

  • @golfgang7567
    @golfgang7567 6 ปีที่แล้ว

    Cool

  • @ayeshakhalid4529
    @ayeshakhalid4529 3 ปีที่แล้ว

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

  • @legendneverdiegaminglndg4136
    @legendneverdiegaminglndg4136 หลายเดือนก่อน

    It's only getting complicated

  • @TheKseth
    @TheKseth 7 ปีที่แล้ว +8

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

  • @AbhishekSingh-vz7ob
    @AbhishekSingh-vz7ob 7 ปีที่แล้ว

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

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

  • @swm7f137
    @swm7f137 7 ปีที่แล้ว

    please teach us Context free grimmer

  • @Rajesh732-y4l
    @Rajesh732-y4l 7 ปีที่แล้ว

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

  • @Dexteritye
    @Dexteritye 6 ปีที่แล้ว

    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.

  • @sonukosuno6803
    @sonukosuno6803 5 ปีที่แล้ว

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

    • @vipulsharma4702
      @vipulsharma4702 5 ปีที่แล้ว

      Nahi ,more than 1 o/p ho Sakta h

  • @karthikshinde6739
    @karthikshinde6739 6 ปีที่แล้ว +1

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

    • @aydict
      @aydict 4 ปีที่แล้ว +1

      please cross verify your thinking