Conversion of Regular Expression to Finite Automata - Examples (Part 1)

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

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

  • @mohammadfaisal3649
    @mohammadfaisal3649 2 года назад +48

    dear neso academy , you have always helped me in my engineering journey. I am so grateful that we have teachers like you. Thanking you from the core of my heart🥰🥰

  • @ziliestarrive
    @ziliestarrive 5 лет назад +33

    Thank you so much for this. My lecturer makes the material super confusing and while the textbook(Hopcroft) is good, it's really wordy and takes forever to get to the working knowledge, given that it uses proofs to introduce new concepts. This is perfect.

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

      I'm jealous that you've long been done with this course haha

  • @Soulhunter17
    @Soulhunter17 5 лет назад +29

    This video has a pretty good quality to show the very basic steps on how to do it with good explanation. Exactly what I was looking for. Thank you! =)

  • @HabiburRahamaniit
    @HabiburRahamaniit 3 года назад +14

    You are a saviour . I am from IIT KGP, I follow your lectures from the very first year. Thanks .

  • @vectrex28
    @vectrex28 5 лет назад +32

    Thanks for the videos, I might just ace my exam tomorrow thanks to them :)

  • @bishalmohari8748
    @bishalmohari8748 4 года назад +14

    Your explanations are just so concise . Love your work

  • @JD_Mapes
    @JD_Mapes 3 года назад +274

    Pretty sure I need to be paying you instead of my school

  • @chabotaluputa7665
    @chabotaluputa7665 5 месяцев назад +1

    Awesome,for the last one I made only two states,it still worked

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

    Thank you very much. I'm having trouble understanding regular expression in automata

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

    I literally sing along to the intro song because that’s how great the lectures are.

  • @trollerninja4356
    @trollerninja4356 6 лет назад +11

    I have to say this....thanks a fucking ton.....I despised this subject...it sucked for me......and I have my midterm in 2 hrs...started watching yur videos few hrs back...and I absolutely love solving these problems....its about how one is taught that changes the student's approach towards the subject....thanks a lot again...!!!

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

    good explanation sir

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

    Thank you so much sir ,,love from India✌️✨🥰

  • @visheshkumar15
    @visheshkumar15 11 месяцев назад +1

    00:01 Converting regular expressions to equivalent finite automata
    01:11 Conversion of Regular Expression to Finite Automata - Examples (Part 1)
    02:12 Conversion of Regular Expression to Finite Automata - Examples (Part 1)
    03:20 Conversion of Regular Expression to Finite Automata - Examples (Part 1)
    04:23 Finite Automata accepts strings based on the given regular expression
    05:30 Design finite automaton for a BC closure
    06:41 Finite Automata Closure
    07:47 Conversion of Regular Expression to Finite Automata
    Crafted by Merlin AI.

  • @shahzadafathurrahmanbscs-2773
    @shahzadafathurrahmanbscs-2773 2 года назад +3

    for question 3. if you have string ac or ab as there is star over bc, so one can pick any number of b or any number of c, so by doing that we won't reach the final state?

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

      We won't reach final like that as we always need 'b' and 'c' together and also at the end of the string.

  • @studywithme4599
    @studywithme4599 6 месяцев назад

    Thanks for the video best video on finite automata

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

    thanks great explination 😊

  • @utsavbudathoki2384
    @utsavbudathoki2384 5 лет назад +1

    thank you sir ..all my doubt are clear now

  • @SasiKumar-pk5uf
    @SasiKumar-pk5uf Год назад +1

    I am sure because I spent a useful time for this video

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

    Tq so muchh sir ♥️

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

    Thank you, sir

  • @tharindumarapana6670
    @tharindumarapana6670 2 года назад +2

    Very clear explanation. Thanks much

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

    Thank you teacher!

  • @AadeshingaleOfficial-zl5fd
    @AadeshingaleOfficial-zl5fd 2 месяца назад

    Nice Sir 😊

  • @pallavikavalipati1431
    @pallavikavalipati1431 3 года назад +12

    for a(bc)* can we return both bc to final state b instead of another state c?

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

      same doubt

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

      I was thinging that too.

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

      Bc we should make one transition fir B and another for C

    • @arshitaanchaliya1583
      @arshitaanchaliya1583 2 года назад +7

      I think no because if u make b,c on b only it means that it accept the string abbb, ACCC, also but here we have bc repeating not b or c ....

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

      @@arshitaanchaliya1583 when a self loop is given to B for b,c, when b is given self loop happens ab when c is given self loop happens abc will work na?

  • @AnuRajpoot-h4u
    @AnuRajpoot-h4u 5 месяцев назад

    Thanku sir ❤

  • @shahzadafathurrahmanbscs-2773
    @shahzadafathurrahmanbscs-2773 2 года назад +1

    To my little knowledge , in finite automata every state and transition should be determined, as there is no trap state after the final state so its more of an NFA.

    • @akashchoudhary8162
      @akashchoudhary8162 2 года назад +3

      That's for DFA. In the qn it was just mentioned FA. DFA and NFA are both FA

  • @divinesoul3311
    @divinesoul3311 11 месяцев назад +3

    in the third question can we add a self loop to b for inputs b,c instead ?

    • @marianeziade1997
      @marianeziade1997 11 месяцев назад

      I did the samee and it make more sence cause b ans c should be togheter not like he did but im not sure if its right

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

      nope, in that case, after 'a' if you only read 'b', it ends up at a final state though "ab" is not an accepted string

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

    found this channel just a day before my exam damn I'm unlucky🙂

  • @sebastianarturoobandomayor1554
    @sebastianarturoobandomayor1554 7 лет назад +2

    Thank You Thank YOU !! Thank YOU !!! for ALL the videos !! :D Really Thank YOU

  • @buzzfeedRED
    @buzzfeedRED 6 лет назад +13

    +Neso Academy Please give the answers when students asked to , You always said in your video if U have a doubt then Comment it , i will answer

  • @fadelcmd9969
    @fadelcmd9969 5 лет назад +5

    Sir please make a video about Regular expression to Epsilon NFA Conversion, thankyou

  • @NOLAMarathon2010
    @NOLAMarathon2010 5 лет назад +10

    Worth noting that none of these conversions were to DFA's. All the conversions were to NFA's.

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

      I know it's been 2 years but could you elaborate more? Here, there are no epsilon-transitions and no two identically labeled transitions out of the same state. So, it is fine with the definition of DFA.

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

      @@tavasoli no a DFA has to have all the inputs and their outputs which means all the state has to have all the inputs

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

    Thankyou !!

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

    Thanks Alot

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

    Thankyou sir

  • @manindermanish3843
    @manindermanish3843 7 лет назад +8

    Sir ,Is there no need to show the dead state or trap state in making the dfa of these examples

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

      you are right

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

      @Shivansh Thapliyal its none of my use now i use these lectures when i was doing MCA and neso academy is the only academy at that time which help me alot to pass these subjects anyway thanks for your reply work hard play hard

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

      @@manindermanish3843 what are you doing now g

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

    Great explanation! 👍

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

    Super explanation sir

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

    Very helpful🙌😄

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 4 года назад

    Thank you..

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

    Design DFA over an alphabet = (a,b), so every string accepted must end with
    'aa,bb,aba'
    Please solve the question

  • @sadikabdullahi288
    @sadikabdullahi288 2 года назад +10

    Tomorrow I have a theory of computing exam:

  • @Birabhadra1234.
    @Birabhadra1234. 3 года назад

    As we know that for n, no. Of input alphabet there are nth no. Of ways from one state to another

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

    My exam is day after tomorrow. I guess you will make me pass.

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

    Thank you so much

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

    sir in 3rd part why didn't you go for more than 3bc's?

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

    thanks

  • @jyothijyo6409
    @jyothijyo6409 3 года назад +3

    Sir can't we put the self loop for final state in the example 3

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

      We can't as if we end the string with a 'b' that string would still get accepted which is wrong

  • @saisreenivas8875
    @saisreenivas8875 5 лет назад +2

    In the 2nd example,string aac is also accepted right?Then how is that correct?

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

      The string "aac" will not be accepted. (a+b) means either a or b will be read before 'c'..... It will read only one from 'a' and 'b'

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

    you are the best thanks alots

  • @saravana___
    @saravana___ 4 месяца назад

    for closure in last example, do we need to give a self loop sir

  • @rrsc07
    @rrsc07 5 месяцев назад +2

    ee bc bc bc bc😂😂😂😂..... I started laughing in the library lol

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

    Great videos :)

  • @vaggelismanousakis6147
    @vaggelismanousakis6147 5 лет назад +2

    Is there a diffrence between NFA and DFA regarding their automata design ? Is there any video related to that with examples? Thanks in advance

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

      The difference lies in the rules for it. DFA cannot have two different transitions on the same symbol from a state or a null transition, but NFA can. We ought to implement a deterministic machine and so every NFA must be converted to DFA before implementation (physically). So design perspective they are different because of the transitions that are allowed.

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

    Thank you 🙏🏼

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

    on c part bc can produce lamda right ?

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

    Are we converting it into nfa
    Because we are not showing all transitions?

  • @yas-sinesl9105
    @yas-sinesl9105 10 месяцев назад

    If (a+b) is a or b , then what does (a|b) means ?

  • @mohdluai1808
    @mohdluai1808 3 месяца назад

    for the 2nd example (a+c)b why is the + operator considered or rather than one or more 'a'?

  • @pp-xc8kb
    @pp-xc8kb 2 года назад +1

    can anyone tell me briefly what is the useage of this? I just learn it from my university but don´t know still what does it imply

  • @koteswaripeddinti7089
    @koteswaripeddinti7089 3 месяца назад

    construct a nfa-epsilon either a or abb or a* b+
    Sir can you solve it

  • @jamilafathima
    @jamilafathima 5 лет назад +1

    Hello sir
    Good explanation video
    Thank you so much, kindly do videos for database , im preparing for gate exam (self preparation) do the needful sir

  • @arpanasingh9959
    @arpanasingh9959 7 лет назад +4

    Can u solve this solution (11+110)*0

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

    for RE 2 why "abbc" is not accepted by that machine?

  • @taibamalik8114
    @taibamalik8114 11 месяцев назад +1

    Why we don't use self loop for bs in a(bc)*

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

    Thanks a lot!!!!!!!

  • @elishauppalapati
    @elishauppalapati 7 месяцев назад

    In 3rd example at B state we can loop bc?

  • @maryamriaz9001
    @maryamriaz9001 11 месяцев назад

    why we didnt apply the loop to bc?in last example

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

    why cannot we put b,c in self loop to B??

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

    in 3rd example if input given is only a then it goes to final state but according to regular expression it should go to final state only if input is like abc abcbc abcbc..... please explain if my doubt is correct.

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

      a is also a valid expression since it is (bc)* so it can be epsilon as well so a or a followed by any number of (bc)

    • @vinayaddagatla1569
      @vinayaddagatla1569 6 лет назад +1

      @@chinmaysingh513 thanks got it

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

    8:15

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

    what is the fa if the expression is like "a/b"
    please explain this

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

    sir , is this thompson's construcion method ?

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

    what does this use for ?

  • @5430amit
    @5430amit 6 лет назад

    Thanks from IIIT_Kalyani :)

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

    can't the third case can be done with the help of two state as 2nd state having loop

    • @aakash9579
      @aakash9579 3 года назад +2

      got it concatenation introduce a new state

  • @GOLDENBOYRICHIE
    @GOLDENBOYRICHIE 3 месяца назад

    Where do you get the c from

  • @manikanta-oh3qy
    @manikanta-oh3qy 7 лет назад

    sir why r u not upload the design of amplifier in analog electronics

  • @scaldbox7442
    @scaldbox7442 6 лет назад +5

    I thought(a+b)c meant, one or more occurrences of 'a' followed by 'b', followed by 'c'

    • @ChristianBurnsShafer
      @ChristianBurnsShafer 6 лет назад +1

      Only if the '+' is superscript. At least, in the context of this lecture series.

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

      Hello Scald Box,if it is (a+b)c,means there is a path from one state to another by a or b and then we can reach to next state by c,that means (a or b) followed by c

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

    can we have a self loop at B for input a,b?

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

    For the second expression if the input is ca thn????

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

    In third example were is ur self loop for closure?

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

    dont you have to define every state transition over every state? in Q1, you defined over state a only transition 'b'

    • @Karim-nq1be
      @Karim-nq1be Год назад

      Its says Finite Automata not Deterministic Finite Automata.

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

    i love u

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

    can you self loop B with bc as input?? 3rd example

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

    My doubt is Can we take a self loop over state B as (bc) as one input
    Because we have (bc)* , so we can do it ?????????? Reply PLease

    • @RahulMadhavan
      @RahulMadhavan 6 лет назад +1

      the alphabet doesn't contain bc, only {a,b,c} so you need to keep a new state to transition through

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

      @@RahulMadhavan if i only give b,c as an inputs to State B as a self Loop....then what is the problem???...
      Please reply.

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

      @@suvenduhatua_1754 I don't think i understand your question because i've lost context. Any case, here's my understanding of the question.
      For the third question in the video, you are proposing a state A and a state B. State A transitions to state B on input 'a', and state B self loops on the inputs 'b', or 'c'? You then propose B as the terminal state. Is this understanding correct?
      If so, then it has a clear disproof. Your automaton would accept input ab, which it should not.

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

    please sir signal and system ka aur video uplod ker dijiye

  • @theonlyarjun
    @theonlyarjun 7 лет назад +7

    in 3rd example. can't we self loop on state b with b,c ?

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

      Arjun Manoj same doubt

    • @sotsnein3873
      @sotsnein3873 7 лет назад +12

      No, you can't use a self loop with b, c as b,c stands for b+c. In this case, there is a concatenation of b and c(b.c).

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

      No, that would accept the string 'ab' for instance.

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

      GeishaTheSerpantClan is an idiot that wets their pants at night.

    • @joydeepmukherjee8263
      @joydeepmukherjee8263 6 лет назад +1

      Self loop will accept these strings: abcc, abbc, abcbbc, .... so on. The point is that, self loop can't impose the sequence b->c

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

    Where is prvious lecture

  • @sheerazamushtaq368
    @sheerazamushtaq368 6 лет назад +1

    Where r rules for this sir?...in which lecture

    • @kalpesh7668
      @kalpesh7668 6 лет назад +1

      prior to this video , #54 video

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

    can you please make DFA of my RE which is: a ( ab + b )* bba ( a + b )

    • @chetanyasaini3899
      @chetanyasaini3899 3 года назад +3

      Kaise kiya 1 saal hogya ab

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

      Kaise kiya 3 saal hogaya ab aur@@chetanyasaini3899 apko 2 saal...🤣🤣

  • @Birabhadra1234.
    @Birabhadra1234. 3 года назад

    1st finite automata graph is wrong because there are only one path from A to B not the other path for going a, alphabet fromA to B

  • @sireesharani6314
    @sireesharani6314 3 года назад +3

    There is no keypoints for how to solve those sums ...he just solved the particular sums ...there is no subject foro how to solve any problem in regular expression..

  • @MohamedOsman-xk3xe
    @MohamedOsman-xk3xe 6 лет назад

    if my input became what happen in example one

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

    Today is my toc exam and 😢

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

    please help creatin dfa for "a*a" or how we can simplify the RE

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

      self loop with input 'a' on state A and out transition with input 'a'-> towards final state B

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

      @@birajpaul4060 That's not a dfa.

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

      @@birajpaul4060 Just the self loop should work.

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

    Can anyone solve this....(alb)l(ab)*(bla)*(bb)*..... urgent please

  • @GOLDEN-wq8uz
    @GOLDEN-wq8uz Год назад +1

    2 is incorrect, + means 1 or more times, what if we wanted to put in more than 1 a or b

  • @bigboybolt
    @bigboybolt 3 месяца назад +1

    u bc bc bc not a