Deterministic Finite Automata (Example 3)

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

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

  • @alexwilson8269
    @alexwilson8269 5 лет назад +991

    I'm proud of you. Single handedly saving students that have poor professors.

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

      Truee

    • @yashnarang637
      @yashnarang637 4 года назад +46

      exactly i don't know how that poor professors become permanent faculties of government institutes. My TOC teacher doesn't know how to use zoom for online classes. see wtf

    • @ismail8973
      @ismail8973 4 года назад +8

      dude same here bro. me also from govt institute. The institute hire professors by checking only their qualification like if they have phd from IIT then they are in .but they are not checking weather they have a skill to teach students.may be they are very rich in knowledge.

    • @woofelator
      @woofelator 4 года назад +3

      @@yashnarang637 Lol you answered your own question when you said "government".
      The government can't run anything efficiently

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

      Exactly.. 💕💕

  • @zeal1059
    @zeal1059 4 года назад +92

    This may help :
    q1: Why C gets a self loop ?
    A1: Before C we have got our "aa" as required in "aabb", so any further a's do not disrupt our required sequence of "aabb" that is we cud still have "aaaa..ab" and still it will be valid since we got 2 a's in conjunction preceeding our b.
    q2: If C got a self loop, Why did we loop D to B and not create a self loop for it as well?
    A2: Before D we have got our "aab" as required in "aabb". If we create a self loop for D , we have end up with "aaba" which does not match our required string. In order to only get a "b" after "aab" we must go to the start (that is where our sequence started to form) since it will make our string "aaab" which is still valid and hope that when it reaches again to D we are getting input as "b".

    • @samalexander3295
      @samalexander3295 4 года назад +3

      Understood but why can't we send the input "a" from D to C instead of B, C has a self-loop of "a" so can we not still obtain "aab" if we send it to state C?

    • @revenant8061
      @revenant8061 4 года назад +17

      @@samalexander3295 That is because we can't predict what input will be ! So to make sure that we don't depend on ""Assumption"" and get the correct output.
      Explanation:
      You are correct about the the self loop of C that will give the desired output, but the problem will arise when we get b as input at C and the output will be """aabab""" which is wrong.
      Moral: So we have to check all the cases while solving DFA problems , else it will be incorrect.

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

      @@revenant8061 Understood. Thank you for explaining.

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

      @@revenant8061 thanks bro... i had same question

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

      Thanks bro had the same doubt​@@revenant8061

  • @oskarkamil8208
    @oskarkamil8208 Год назад +42

    You're doing exceptional work. You're helping massive number of students pass their studies. Keep up the good work 🏆

  • @Danger418
    @Danger418 5 лет назад +38

    I like how you give us multiple examples to work with, makes learning so easier!

  • @manasaggrawal9177
    @manasaggrawal9177 6 лет назад +429

    A lot of confusion is going on here but i think this will help: "it's not the string 'aabb' that u have to achieve. It can be 'aaabbaa' or 'aabbaba' or any other string as long as it contains 'aabb' in it and the rest of the string can consist of any pattern.

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

      It seems to me that it works fine.

    • @shaifaliverma153
      @shaifaliverma153 5 лет назад +40

      ......what we want is that "aabb" should be there as a substring in those strings....we don't want only aabb

    • @vibecatcher4416
      @vibecatcher4416 5 лет назад +13

      we want the string,which "contains"(please note this word) aabb . Ok? ... "Not aabb alone"

    • @rkogaming844
      @rkogaming844 5 лет назад +9

      @@shaifaliverma153 only aabb is also a solution.'our main idea is to make aabb as a substring for all the strings'. aabb is a substring of aabb as well.

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

      @@rkogaming844 yaa i agree.....but what im saying is just.....that there's a big difference b/w a machine accepting only "aabb" and accepting "aabb" as a substring, because machine accepting only "aabb" is not gonna accept a string like "babbaabbab" which contains "aabb" as a substring.

  • @skandeshkkblr3416
    @skandeshkkblr3416 Год назад +11

    i dont think there will be better explanations than this .. thanks a lot for such amazing content !

  • @JcMorgan619
    @JcMorgan619 6 лет назад +26

    You did very well sir, the explanation was very clear. I cannot thank you enough 🙏

  • @NiveshPatil
    @NiveshPatil 4 года назад +31

    that is brilliant

  • @shardul3622
    @shardul3622 2 года назад +6

    You're an absolute genius sir, you saved my dreadful exams with the help of your absolutely amazing teaching! Thank you so much!

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

    This is a powerful example. I like question like these. These make sure you understand the concept. Thank you

  • @xingxanghanji6583
    @xingxanghanji6583 5 лет назад +8

    It got from D to B for in put 'a' because after getting to B if we have another 'a' then our required string becomes "aa" when it reaches C and then the same process can continue again.If there had been a 'b' after jumping from D to B then it would go to A to start the whole process again as out string then would be "ab" and not "aa".

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

    Thank you for providing such great content to help us learn properly. The example is pretty good and pretty perfect to use the flip technique to solve the problem. The explanation is pretty clear as well. Great job! And Thank you again!

    • @SURAJ-cv8nt
      @SURAJ-cv8nt Год назад

      Where are you from?
      Asking just out of curiosity 🤠

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

    Awesome explanation sir! I recommend all my friends to watch your tutorials

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

    Sir ,did anyone forced the faculty to design these kind of subjects?

  • @starmakerspro4984
    @starmakerspro4984 3 года назад +28

    If there is an award like oscar in studies this man truly deserves 🙏🙏

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

    I am starting a similar course in Uni. My lecture said solution might easy to understand but hard to figure it out. I guess now I knew what does that mean.

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

    i missed my first three lectures and i was lost but thank god i found you you life save

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

    such a nice example, it helps us to understand the concept better!

  • @nazirahassan2971
    @nazirahassan2971 4 года назад +10

    got an exam tomorrow, thanks for the explanation really helpful!

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

    exceptionally good teaching , I am a final year student at University of Kwa Zulu Natal in South Africa and your videos help me a lot, thanks

  • @ilakiyasivakumar3814
    @ilakiyasivakumar3814 4 года назад +6

    U were really awesome..keep rocking in many more students career 💯💯✨

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

    Wonderful teacher, thank you for all your help.

  • @TunerXMusic4u
    @TunerXMusic4u 9 месяцев назад +1

    ❤❤❤maja aagya is video mein to...thnx

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

    neso is revolutionising the education. Thankyou very much for helping the students worldwide. you are doung great job.

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

    thank you very much, the things i haven't learned from the past 6 months, you taught me in minutes.

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

    Thank you sir! Your step by step tutorial is so clear and understandable.

  • @varungupta947
    @varungupta947 25 дней назад

    Brilliant explanation!

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

    what can i say! hallelujah you saved my life the night before my exam , i was really lost in this topic but i don't even know how i got here , God really loves me . my God bless you abundantly your videos are just amazing . thanks so much

  • @CocoMelon-i8z
    @CocoMelon-i8z 18 дней назад +1

    the string should accept over {a,b} right, in the final answer the initial state only is been the final state also then that could make {a or b} ??

  • @pagolchagol22
    @pagolchagol22 6 лет назад +3

    These lectures have been really helpful! Thanks! One point about this one is that you could've written B the same way u did C and not had the C state at all

  • @CherryMarz
    @CherryMarz 5 лет назад +3

    you are a life saver. thank you for explaining so clearly

  • @ChethangowdaChethu-u7f
    @ChethangowdaChethu-u7f 7 месяцев назад

    Thanks a lot with this course i got good amount of knowledge and able to do well in my vtu exams

  • @woofelator
    @woofelator 4 года назад +30

    You are the G.O.A.T.
    I should be paying you instead of my university lmao

  • @saitcam9973
    @saitcam9973 2 года назад +16

    Sir but 11:06, D state can return to C state, it is not necessary to retun to B, because in C state there are two "a" transition already

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

      nhi bhai we only consider the "a" we have in hand so we start building the "aabb" pattern again.

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

      I have a question: From final state E, if we get another 'a', it's possible that we might get the sequence again so can't we move from state E to State B on receiving 'a' as input?

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

    Totally did not know we could flip a DFA. Awesome video :)

  • @MinhLe-xk5rm
    @MinhLe-xk5rm 5 лет назад +9

    THIS IS AMAZING!!!!! THANKS FOR THIS GREAT TUTORIAL!

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

      Can I get your number for help

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

      @@indronilbose haha bob n vagene pls

  • @Farahat1234
    @Farahat1234 5 лет назад +8

    Your starting music is awsome. I love it😍😍

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

      I hate that music :( please change and add some pleasant music over here

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

      tidim tim tim...,tidim tim tidim tim tim.....

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

      @@RTXzenith 🤣🤣🤣

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

      @@deepudakshu why u hate? Its good music ok

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

    Fully understable explanation

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

    Can we go to C also,after getting a on D?It also satisfies the sequence aabb.

    • @manoranjanpanigrahi3677
      @manoranjanpanigrahi3677 2 года назад +5

      maybe because if you get b in state C then it starts again so better be safe going to B

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

      Why didn't we leave input b in B,why go back to A?

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

      @@stephenodogwu7359 cz suppose after A→a→B→b→B we get an "a" then it'll proceed to C, that'll be an error. So it goes back to A.

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

      @@manoranjanpanigrahi3677 aha thanks. It was easy!

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

    I think from state D if we get input a we should go to state C.But you made it to go to state B.please clarify.

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

    Very good job sir... I am actually helped a lot in understanding the concept with examples!

  • @srikanthramachandran7755
    @srikanthramachandran7755 7 лет назад +5

    Is it the only solution or we can have any other solution for the problem ?

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

    Sir your explanation is very well.
    Sir you make video only for gate

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

    This is great. I didn’t see that trick in Sipser.

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

    Best explanation ever

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

    I had to watch it twice to understand. It made sense the second time.

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

    Please guys do watch from 16.40 bcoz its game changing point and its explained that why we interchange the states thanks alot! Helped alot still gng through vids

  • @juliepradhan2418
    @juliepradhan2418 7 лет назад +13

    sir plz upload a video for this video (DFA example-3) in any other way for the same example....
    by solving by "Presence of aabb in the string"...creates some confusion..

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

    Thank you fot teaching this trick... I socred higher in examl......
    thanks a lot...

  • @gabrielpereiramendes3463
    @gabrielpereiramendes3463 5 лет назад +4

    The best class!

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

    Outstanding Explanation.

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

    Great explanation. Can there be different answers that are correct?

  • @NareshKumar-un9er
    @NareshKumar-un9er 4 года назад

    pleasant explanation with perfect examples....thank you very much sir.

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

    U explain tough topics very easily.....thank u sr

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

    Thanks a lot, Neso Academy for saving us...

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

    at 10:15 we can also send it to state c right???

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

    At first, I tried to find solution my own, when I do that I didn't consider simplification of problem. So I found 6 states and 1 state for exit. How can we decide which is lesser costly? extra 1 state or extra 3 final states for DFA?

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

    Thank you sir.

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

    hai sir, doing great job. requesting to upload lectures on DIGITAL COMMUNICATION. we are in great need. thank u

  • @SOULITUDE-xoxo
    @SOULITUDE-xoxo 9 месяцев назад +1

    7 years later still better than proffessors rn

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

    amazing lecture

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

    Nice approach. Thanks it helped me in solving another problem of my book

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

    Thank you sir! Good example and even better explanation!

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

    we can also Send state D to C with input a instead of D TO B both give the output right

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

    Sir,if I am not false , i think that,It does not accept aabba ,aabbbb and so many strings .To accept these string transition from state E when input either a or b must be within final states(like A,B,C,D) to accept other strings that originate from aabb.

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

    10:38 Why we need we sent back to state 'B' , as we have already achieved half of our string (i,e. aab). So now we need one more 'b', can we sent back from State 'D' to 'C' in order to get 'b'. I am confused here, help please🙌🙌

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

      same doubt, I had also sent it back to c ,if you find any contradict case pls comment...

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

    You are the real reason by which I got grades

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

    Thank you so much for your clear videos ❤

  • @أحمدعليعبدالله-ي4ه
    @أحمدعليعبدالله-ي4ه 6 месяцев назад

    Thanks your efforts ❤

  • @АркадийЛаскин
    @АркадийЛаскин 6 лет назад

    finally I start to understand what is actually is DFA mean . Thank you very much

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

    You Sir, are a great man! Thank you.

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

      Hey are you here? I have replied to yku one of your you tube comments about your DP contain housefly .it seems like a original flies is stick in my mobile 😁😁🤣

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

      @@shyamprakashm6325 Ha Ha, Great to see you again 🤣

  • @AkshayKumar-dz5ts
    @AkshayKumar-dz5ts 7 лет назад +16

    that was simply genius,thanks for these lectures NESO ACADEMY

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

    quick question in state D in case we get an a cant we return it to state C instead of B, since it doesn't matter if it's an (a)aabb or aa(a)bb. note: the parenthesis to point out the a that came from state D

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

    I guess we should to add a self loop (input b) for the final state D , cuz if we do not , the automata will reject for example all the strings "aabb*" or "abbaabb*" not just aabb . THANKS A LOT Neso Academy !

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

      As it should. The question says to accept strings that does not "CONTAIN" aabb in it. As you can see "aabb*" or "abbaabb*" do "CONTAIN" aabb in them hence does need to be rejected.

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

    Please continue this good work you will get love from students

  • @chinu157
    @chinu157 6 лет назад +4

    does the flipping of states work every time?
    like if you get any other problem, and then you first do the opposite of what is asked, then we flip the initial and final states? will it work?

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

    Nice explanation

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

    I would like to make a comment on the step from D to B when a is the input (while doing the question when accepting any string containing aabb)
    We could have gone from D to C when input a is encountered.

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

      according to your suggestion, "aababa" will be accepted. look closely, you will reach the final state without having aabb in your string

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

      @@samarth638 yes.
      On giving aabababb, the input is accepted but it does not suffice our conditions.

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

    hey i want to mention that on getting input 'a' in state D you should transition back to state A because the string is disturbed if you get a combination 'aaba' , i think you might have missed that....

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

      In the string 'aaba,' there is already an 'a' at the end. If you go back to state A, then there will be 'aaa' in the string.

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

    Thank you so much you are a life saver

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

    Thank you sir!!

  • @bikramnath9766
    @bikramnath9766 6 лет назад +15

    Comparing both the example 2 (in the previous video) and this example 3, how am I supposed to know, whether the terminating state will go further or get self looped?

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

      I still confused

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

      @dangeroux can please tell best online source to study theory of automata for college level since in neso video example are less

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

      @dangeroux and from where you solve question which book Or source

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

    Thanks a lot for your nice well explained course 👍🏼👍🏼👍🏼

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

    Thanks so much. I will recomment my friends to come here.

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

    Phenomenal tutorial. Well done.

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

    BRO WTH IM LEARNING SO MUCH I HAVE MY EXAM ON FRIDAY AND THIS HELPS ME SO MUCHO, LOVE YOU. I'LL TELL YOU WHAT HAPPENED ON THAT DAY...

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

      what happendd

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

      @@chinmaygaming3827 Lol, I didn't remember this. I passed the exam with the minimum. It was a complete win for me.

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

    Thanks bro helped me a lot

  • @127rushikeshpatane8
    @127rushikeshpatane8 Год назад +1

    sir in transition at State D if we get to C for 'a' it should still work .... cuz even if we get 'a' it can loop in it self that is in C and then continue for b and so on
    plz correct me if I'm wrong🥲
    I got rest of the things but I'm confuse at that part 🙂

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

      You can still get 'b' in that state so it could form the string 'abb' instead of 'aabb' and reach the final state and that is incorrect
      Sorry for my broken English

  • @ARWORLD-xw8ph
    @ARWORLD-xw8ph 5 лет назад +9

    what is the problem when i make transition from d to c over a instead of d to b over a?

    • @ARWORLD-xw8ph
      @ARWORLD-xw8ph 5 лет назад

      please give me the exact ans asa soon as possible

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

      @@ARWORLD-xw8ph I did the same while solving. I think that works well..

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

      No, if you send it to C state,(remember, before getting to D state we got b) then if the next state is bb and you send transition a to C then, its finish without having aabb with no way to go back. Look carefully, then you will notice.

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

      Check what happens for the string aabaabb

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

    thank you very much! I found this course as the most useful one.

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

    your videos are a goldmine! Thank you so much!

  • @sumaiyyakamble1878
    @sumaiyyakamble1878 9 месяцев назад +1

    Bro i was so confused when ma'am was teaching 😥...but now all my doubts are clear some how😅

  • @apkat2066
    @apkat2066 4 года назад +3

    Sir 🙏👌👌👌❤
    It would be more interesting if you included some practical examples.

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

    ❤Well explained.. Thank you very much..😊🔥🔥🔥👍

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

    Thank you so much sir
    Love from muzaffer garh Pakistan

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

    damn boi it was spectacular

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

    Man thanks so much. Finally i understand something

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

    brilliant video sir thank u

  • @souravpal3225
    @souravpal3225 4 года назад +8

    Sir when the input is 'a' in stante D, then why not send in state C

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

      Same doubt

    • @gabrielsales7402
      @gabrielsales7402 4 года назад +13

      It's confusing, but bare with me. Don't just read, try it on a piece of paper. Because, when we get to state D we have "aab". Now if we input "a" and go back to C, and in C we input "b", we will get "aabab" and advance back to D. So we will have "aabab" in D. So now if we add "b", it will go the final state as "aababb", but that's not what we want. So we would end up with an invalid string at the final state. We would end up with "aababb", which doesn't contain "aabb" as the problem requires.

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

      @@gabrielsales7402 Nice explanation
      I understood it

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

      @@gabrielsales7402 At D if we input 'a' and go back to A? Will that be wrong? Please do reply...I am really confused. I need to give my university exam.

    • @bidhya6236
      @bidhya6236 4 года назад +3

      @@indu5996
      When you are at D, if you get an 'a' instead of a 'b' , it means that now you just have the first 'a' of the string that we want. So, instead of starting all over again from A, go to B because we just need 1 more 'a' in the string (the first one we got from D) before getting 'b'. If you go to A, you're not making use of the 'a' that you already have.
      Hope this helps..

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

    Thank you.we learnt lot