NFA to Regular Expression Conversion

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • TOC: NFA to Regular Expression Conversion
    Topics Discussed:
    1) NFA to Regular Expression conversion
    2) NFA to Regular Expression conversion example
    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 - ...

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

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

    I'm gonna jump off a tall building now.

  • @nishukumar8518
    @nishukumar8518 7 ปีที่แล้ว +187

    at 8mins 34 secs i guess "b" should be inside the braces as "q1*a" has no "b". But still is taken commom

  • @samanthagomez1858
    @samanthagomez1858 3 ปีที่แล้ว +32

    I think you are missing a parenthesis in q1, should be q1 = ((a + a(b + ab)*) b )*

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

      yeah

    • @argala6189
      @argala6189 11 หลายเดือนก่อน +1

      no before this equation see two step before and see he done a mistake of multiplying b to whole but it is not , he later write right in this step so this is correct.

    • @zikondenyirenda
      @zikondenyirenda 5 วันที่ผ่านมา

      no it's supposed to be q1 = (a+a(b+ab)*b)*. You modified the equation, look at it as (a+ bc) not (a+b)c. That b was only part of the latter part

  • @lima073
    @lima073 2 ปีที่แล้ว +18

    Thank you so much for the explanation and to help us all!

  • @KM-sf6zy
    @KM-sf6zy 4 ปีที่แล้ว +116

    out of all of your tutorials I have attended so far this one is a little complicated

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

      The proof of arden's theorem is more confusing. Nevertheless, the theorem is used here effectively.

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

      @@marxman1010 Well, I byhearted the equation and totally ignored the proof lol

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

      @_Aftab _Hundekari Yes :)

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

      Most of his explanation are difficult
      Wtf you mean I am ediot.😅

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

      @Aftab uska kya aya jo bhi h, teko kay fark padra bhai

  • @talhamasood6847
    @talhamasood6847 4 หลายเดือนก่อน +3

    the explanation was not easy to understand. But there are seriously no other explanatory video better than neso for this subject. I got the concept after watching this video 2-3 times.

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

    If neso academy is giving so much efforts to make us understand
    Than after watching we should like the video
    I am also a teacher and I have seen that audience don't appreciate the efforts of teachers
    But when it comes to entertainment part then crack the like button.

  • @jay3952
    @jay3952 2 ปีที่แล้ว +61

    I think there is a mistake in equation (6) regarding b.

    • @tradbakindersingh-yx6pc
      @tradbakindersingh-yx6pc ปีที่แล้ว +4

      Their is no problem bro

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

      ​@@tradbakindersingh-yx6pcdhyan t dekhe ga to dikhe gi

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

      You are right bro

    • @peixinxiao2576
      @peixinxiao2576 11 หลายเดือนก่อน +6

      do you mean the parentheses before b ?

    • @shadprakash
      @shadprakash 8 หลายเดือนก่อน +4

      @@abhinavnain149 tujhe dikhra to elaborate krna, ye dhyan se dekhega ky hota hai 😂

  • @Mert-tw4ev
    @Mert-tw4ev 3 หลายเดือนก่อน +4

    so, what's the point

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

    Why we not take q2 value from equation 2 when we are finding for q1 [from eqn 3 q1= £+q1a+q2b] like previous eqn 3 for (q2 value from 2(q1a+q2b+qb = q2)) ?

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

    In equation 6 are you missed () before the last b ?

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

    I'm so grateful of the teacher but this problem is soooo specific! What if a transition happens with epsilon? How do you write its equation? What if there are multiple terminals? What is the logic behind the whole solution?

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

      @@lkcbharath Yeah the do, DFA is the one with no epsilon transition.

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

    GG very nice video, now gotta sleep. Oh my head, it's too heavy now, what the hell!!!!! I mean, I understood the video, but this is the thing we are going to do in semesters. Lucky that I started preparations 1 week before the exam.

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

    Book : Mishra and Chandrasekaran ; Page no 149(3rd ed) with a little modification.

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

      Found book 📖, thanks 😊!

  • @sujjawalmalik9371
    @sujjawalmalik9371 7 ปีที่แล้ว +73

    Equation 4 seems to be useless 😲😲

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

      The appropriate algorithmic way to start the problem is to start on the final state, so he solved for equation 4 even though it didn't come into use.

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

      Sujjawal Malik you'll see it in the next video why it is important to do it fitst

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

      Hell Yeah

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

      @@ankittanwar8435 very well said bro...i also thought it is useless but i saw next vdo and came back to reply you

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

    Sir,Can't we substitute (q1a+q2b)=q1 in eqn1?if not please give me the reason

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

    THANKU NESO ACADEMY

  • @romanaxle
    @romanaxle 7 ปีที่แล้ว +40

    When you are solving equation 2, you substitute q3 with "q2a" (equation 1) not equation 4 (which was "q1aa+q2ba+q3ba").
    When you solve equation 3, you substitute q2 with the value from equation 5, not from equation 2.
    How do you know where to substitute from?

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

      our aim is to get all the regular identities..!

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

      Substituting a q3 with an expression that contains q3 is not worthwhile (for equation 2). Similarly, for equation 3 it is not worthwhile to substitute q2 for an expression that contains q3.

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

      states in LHS and RHS should not match, In equation 4 RHS as well as LHS contained q3, hence it's not taken.

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

      @@ChristianBurnsShafer Thank you

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

      @@adityadubey5204 wtf!

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

    Thank you sir. But what if i have many ACCEPT STATE. What gonna be my final state?

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

      Union of all final states

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

      You can technically route all of them to a single accepting state with input of epsilon, that is the same as union all of them

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

    at 8:35, b is with q1a + ((q1a)(b+ab)*)b, next q1a + (q1a)(b+ab)*b and then in the next step, there shoud be q1(a + a(b+ab)*b) but you written q1(a + a(b+ab)*)b. How?

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

      I stopped at that point and came to the comment section if it was solved by someone. However, no one seems answered it.

  • @clivethompson342
    @clivethompson342 6 หลายเดือนก่อน +1

    Thank you!

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

    Are NFA to Regular Expression and DFA to Regular Expression Conversion both same ????

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

    Is there no difference between nfa to re and dfa to re conversion?

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

    Gawddd... lasu comp.sci dey carry me where i nor know😭

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

    there is a mistake in part 3. q1 should be = E(a+(a(b+ab)*)b)* please check

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

    Sir, you had mentioned in one of your previous lectures(epsilon - NFA), the epsilon is a string that is passed to every state, then why is it not passed here, in every state, while you've done that for the first state?

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

      it is applied only to epsilon NFA

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

      NFA and Epsilon NFA are different.

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

    so there mas no point in doing the Q3 the final sate at first because one we didn't use equation 4 and second we had to substitute the value at last anyway.

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

    What was the point of equation 4?

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

      The appropriate algorithmic way to start the problem is to start on the final state, so he solved for equation 4 even though it didn't come into use. If it did end up becoming useful then it's important that we had it solved.

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

    Thank you so much!! 🙏🏼

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

    i can understand the language that you speak... but my mind couldn't understand of it ...

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

      ;jalksdfsad;lfsadfjlsadfljsadfjksadlkfjsklafa;sljkjlkasf like this?

  • @renofrancis
    @renofrancis 7 ปีที่แล้ว +10

    *Is there a mistake?* - You haven't used Arden's rule in the last. You directly substituted the values in _equation 1_ while you had to do it in _equation 4_

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

    Dada, apuni g pohale, pohi bhal lagil, khali exam ot he etau koribo nuarilu 💔

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

    You didn't use equation 4, I think it is not necessary to get it, am I right ?

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

    in regular expressions, is a+b = b+a ?
    bcs, the answer I got s (a+a(ab+b)*b)*a(ab+b)*a
    is this a correct answer?

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

      Yes, union is commutative.

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

    11:17 if we had to work with the equation i instead of equation iv then what was the point of even simplifying the equation iv?

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

    What is the use of equation4

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

    can we use U and instead of + ?

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

    good lecture

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

    Teacher: "the exam is not that hard"
    The exam:

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

    I am so confused why you calculated the equation 4 in the q3= q2a, because you did not use it at all in the next a few steps. did yo miss something .

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

    He writes better with a mouse and no ruling, than I write with my pen in my ruled register.
    Ruling == the lines drawn in a register.

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

      He could have Surface Pen or touch latop right

  • @anbarasan.M
    @anbarasan.M 4 ปีที่แล้ว +3

    Semaya sonnaingka sir

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

    Would solving this NFA provide you with its GNFA?

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

    what about - > a*a(ba*a)*(b*a)(bb*a)*
    is this incorrect?

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

    Very very good video

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

    How to do the problem if there are 2 final states?

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

    equation 6 is wrong. it misses a ")".
    it should be "[ ( a+a( b+ab )*) b ]*"
    not "[ a+a (b+ab)* b ]*"

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

    convert everything until there are only symbols on RHS

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

    whats the use of equation 4? frend zoned?

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

    Which software do you use for writing? Please reply. I'm a teacher, it would be helpful

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

      Lol. You think he bout to help competition? There's too many of you guys back there, all you fighting for scraps

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

    Left to right second 'a' first 'b' and third 'b' ----> it is in your language but not in NFA . Am I wrong ?

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

      Bcoz we consider input only

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

      @@arijitchatterjee7840 even i forget what is NFA man :) 2 years ago :)

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

      @@okandursun5505 I know man ... XD .. thought this might help others... So .. replied

  • @theremakers.
    @theremakers. 2 ปีที่แล้ว

    What in the hell is the purpose of eq 4

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

    What does the "+" equate to? Is that union?

  • @130-jyoshnakandi5
    @130-jyoshnakandi5 4 ปีที่แล้ว

    What if we have multiple final states?

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

    what if we have two final states?

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 4 ปีที่แล้ว

    Thank you..

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

    Thankyou sir

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

    I am trying to generate regular expression using the state elimination method, and getting a different answer than Arden's theorem. Why is that?

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

    The smaller Regular Expression i got after simplification is aa(b(ba*)*a)*. Note:- I used another simplification method called state elimination method.

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

    what if two final states given sir??

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

    Where do you get that epsilon in equation for q1??? As I can see, q1 is not a final state and does not accept epsilon...

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

      string before coming to q1 state come with epsilon

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

    at 7:06 how can Q=q1a....as Q is only a expression..how can it contain the state q1????

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

    Ur video are nice.
    Can you plzz tell me, is there any video for RE to DFA conversion??

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

    Will i get a heart after 3 years??
    Thank you Sir.. You saved me

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

      people are that desperate to get some mere stars huh!!

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

    Eq 4 is of no use

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

    q1 = (a+a(b+ab)*b)*

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

    Tq sir

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

    Thanks

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

    Nice Video 🎉🎉

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

    Nice 👍

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

    8:37 mistake

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

    bit complicated :(

  • @kumard-n9m
    @kumard-n9m 4 หลายเดือนก่อน

    best

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

    lengthy process...

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

    If this is part-2, where is part 1 lmao

  • @rishabhjoshi3797
    @rishabhjoshi3797 หลายเดือนก่อน +1

    who made this fucking subject

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

    Common Statement in every lecture.👇
    I hope this is clear to you. Thank you for watching & see you in the next one.

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

      You've got a problem with that smarty, eh?

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

    I was able to reduce to a(a+b)*a . Anyone else?

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

    Pro tip watch at 1.5

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

    thank you sir it helped alot

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

    Jab 5 ki value 3 me daali wahan galti kardiii

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

    thanks, so helpful !!! !

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

    ❤️

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

    ok...

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

    great!!

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

    51

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

    brain fuck.. thank you sir

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 3 ปีที่แล้ว

    👍👍👍💯

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

    should I die ?

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

    tutu

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

    Difficult for me!!🥲