Deterministic Finite Automata (Example 2)

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

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

  • @MohdAslam-yz5kw
    @MohdAslam-yz5kw 5 лет назад +39

    These video lectures is great when you really don't know where to start with.
    Explanation of the guy is amazing.

  • @kanekiken12376
    @kanekiken12376 Год назад +23

    one ofmy university teacher was watching the TOC lectures by NESO academy. she could solve the questions butfailed to explain us the same topics she studied a while ago. I mean,the conditions of a few college teachers is really bad, and pathetic.
    thank you Neso academy for saving the lives of thousands of students. Mad respect for the neso academy teachers!!

    • @Fracasse-0x13
      @Fracasse-0x13 10 месяцев назад +1

      wouldn't fly in america

  • @shaylinpadayachee7766
    @shaylinpadayachee7766 6 лет назад +92

    I appreciate the simplicity and explanation of small things, I only wish the institute which I pay dearly for would try such an approach instead of just being smug and saying how smart they are while not teaching us.

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

      lol

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

      Literally commented the words in the minds of everyone who came to Neso Academy YT channel as a last ray of hope.

  • @hoi5771
    @hoi5771 3 года назад +10

    I can't compare this class with my teacher...Because they teaching the whole thing in a pure disaster manner..
    Your class is precious to me..❤

  • @sumitjaiswal855
    @sumitjaiswal855 4 года назад +11

    Finally I have started to understand automata.. Thank u sir

  • @adityapal5817
    @adityapal5817 5 лет назад +98

    Thank you so much. I have exam tomorrow and i skipped lectures. You are amazing ❤

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

      So how was the exam?

  • @SD-pt1nu
    @SD-pt1nu 5 лет назад +389

    Why these videos keep explaining so amazing while our teacher is teaching like sh*t?? 😃😃😍

    • @uiuxshoaib
      @uiuxshoaib 4 года назад +12

      Asking myself the same question.

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

      Here we are going to listen before exam in class we listen with a sleepy mood

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

      I am surprised

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

      Exactly

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

      Because you are paying to your teacher.

  • @tamzidchowdhury472
    @tamzidchowdhury472 4 года назад +15

    How can people dislike this video?!

    • @gamar1226
      @gamar1226 3 года назад +6

      Those are college teachers, lol

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

      @@gamar1226 lmao 🤣

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

    Even though I have not entered the class for this I now hv a good knowledge of this.

  • @iqbalahmad3754
    @iqbalahmad3754 8 лет назад +17

    Very good explanation, I really appreciate that :)
    Thanks for making this videos :)

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

    well, Thanks so much sir for your efforts .. simple, direct and easy to deliver the idea of the question and how to solve it..

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

    Really helpful man, been to so many lectures and can never understand but your videos are much more helpful in understanding. Thanks

  • @samika1983
    @samika1983 6 лет назад +23

    Prime minister Modi is going to call you out
    Keep up the good work.

  • @AlAmin-sl8eg
    @AlAmin-sl8eg Год назад

    10000000 times better than my course teacher.

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

    Your way of explanation is so good sir

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

    Fantastic, very useful. Thank you so much.
    I have a mid-exam in the afternoon. Your teaching style is a piece of cake.

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

    sir im not even kidding i will bow down to your feet and do a namskar with my head. you are a legendar teacher sir. i had failed in this TOC twice sir, everytime i asked i profesor for notes or how to study this subject they always told that study from the reference book but you know that the reference book as scary as a real ghost. i think i found neso acamedy a little late but anyways finaly i found it and im understanding concepts crystal clear.
    shat shat naman hai guruji aapko.

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

    loved how you explained it in such simple way

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

    Thanku for making this amazing videos on automata. It's help me a lot. Initially I have little bit confused from where it can study automata I have even buy so much books but nothing get help but as I have seen this tutorial it can get help me a lot thanks 🙏🙏

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

    5:200 In the last video you mentioned that for completion of DFA for each state we have to give some input...
    Suppose here in this example is it necessary to give= A takes input ->0,1 & goes to A, same for state B, then & only then it's complete DFA?

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

    you're a great teacher, thank you so much for this !

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

    thank you so much completely upset how I found your channel after my exam --;

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

    I freaken love you and this channel for this content!

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

    Thank you sir. You are teaching us in very nice way. Thank you so much.

  • @marco.nascimento
    @marco.nascimento 5 лет назад +4

    Awesome videos, loving the playlist

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

    I skipped the wix ad just at the moment when he told wait before skipping ad . 😂😂😂😂😂

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

    May you live a long prosperous life!

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

    finally understood automata ,thank you very much🙇‍♀🙇‍♀🙇‍♀🙇‍♀

  • @MohsinAkbar.
    @MohsinAkbar. 7 месяцев назад +4

    But why we can't take a self looo on state C, as we complete the length 2 of the string?

    • @frazebean5117
      @frazebean5117 5 месяцев назад +3

      You cannot self loop at C because it would be contradictory. C is the final state but looping again means you add another symbol, which would exceed the required length of 2. When you exceed that required length it means it would be invalid, which would not be possible as C is the final state. (Final state cannot be invalid).

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

    very impressive,explanation is so clear this videos are so useful at exam point of view thanks !!

  • @id-19-farhadhossain78
    @id-19-farhadhossain78 2 года назад

    sir love you and appreciate all your efforts,,,best wishes from bangladesh

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

    Wow you really helped me understand it better> Thank you very much.

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

    Sir your teaching is really good

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

    1000x better than my lecturer

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

    Thanks a lot, man! Great examples and great explanation!

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

    thankyou so much please complete the COMPILER DESIGN COA CN
    tutorial and DBMS as soon as possible

  • @MikaelTesfaye-tq7he
    @MikaelTesfaye-tq7he 6 месяцев назад +1

    At the first example why didn't we loop 0,1 at the final state C instead of going to the dead state

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

    Can we put a self loop for b containg 0,1 and mention it as final state?

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

    You are a great teacher ✌️

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

    Why we've drawn D ? If we let this after C, it will also satisfy question?

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

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

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

    i have a doubt in 5:22 ..why we extended from final state c to d ? can we not just do self loop in final state itself?can someone expalain?

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

    Sir also provide practice questions with solutions or just answer if possible. Thank you so much 🖋️📖📚📚📚

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

    really, fantastic and dynamic videos.very helpful

  • @anandababu9223
    @anandababu9223 5 лет назад +11

    I have a doubt sir is it necessary to have 3 states or we can use self loop for B state

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

      Ya same doubt

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

      Bro in question they have mentioned length as 2. So it is necessary to have 3 states

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

      If you give self loop on b so it create 1 length as well as 2 length.
      We we want exactly 2 length string.

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

    I have one question sir...why 0,1 is taken as input after reaching state B.is it depends on the length of the string?

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

    Really good explanation

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

    Excellent explanation 👌💐

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

    so if the question wasn't limited to the length of 2, we would have made "A" self loop with 0,1 right ?

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

    Sir please tell how to know how many states we will get? How to check if the drawn diagram is correct?

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

      To know whether the diagram is correct or not only he is checking with the string at the end

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

    why can't "c" having self loop sir. pls clarify my doubt sir pls🙏

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

      If it C has a self loop an input of 3 alphabets will be accepted because the third input would end at C and C is an accept state. He extended the diagram to have a 4th state D so as that the third input can end in a dead state(D), understood?

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

      @@geolegacy2 yep dude

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

      @@geolegacy2 Thank You

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

      @Sunaan S we can't make a self loop on B. Beacause in case of third input or many next inputs, it will accept which is not possible

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

      It also violates the rule of having length 2, if C contains self loop.

  • @MMNayem-dq4kd
    @MMNayem-dq4kd Год назад

    Thanks for the effort

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

    Good Explantion..Sir...Thanks..

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

    during your last example there is string of length 1 which is not a final state so tell me why it isnt a dead state.

  • @كوكتيلسعودي-ج2و
    @كوكتيلسعودي-ج2و 3 года назад

    Thank u man this was so helpful

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

    A terminal symbol is needed, perhaps Sigma = {0,1,T}
    A man jumps off a 5 story building,
    as he passes the 3 floor (final state) he says so far so good

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

    Why would it also be fine if on the example 5:00 there is no dead/trap state and just loots back to c?

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

      when a string can reach the final state, that string is accepted

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

    awsome way of teaching.........

  • @0XDSK_29
    @0XDSK_29 3 года назад

    Sir you are amazing!..plzz make videos on python,compiler design,design and analysis of algorithm sir✨✨

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

    Why can't we give s self loop to state C and finish it there. Whats the point of making another state D? at 5:10

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

      If we self loop state C the string length becomes 3 and it also accepts the string of length 3 as C is the final state.which is contrary to the given question.

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

    Explaination is realy good....

  • @bautistabaiocchi-lora1339
    @bautistabaiocchi-lora1339 3 года назад

    really clear examples

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

    Rather pay my tuition to this channel

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

    What if we eliminate D and put the loop at State C?

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

      the purpose is to eliminate any strings above two to dead state so a self loop on c would not send it to dead state but to final state meaning the you want any 10 combination of infinite length

  • @ChandanaK-yt5lt
    @ChandanaK-yt5lt Год назад

    Love from karnataka❤❤❤❤❤❤

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

    why can't we put A to B (0,1) then from B to B self loop(0,1)?

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

      did you learn the answer??

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

      length 2 is mentioned in question so that's why we taken

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

    You are life saver DUDe

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

    thank u sir!
    But is your solution the only right answer? or there are other possible DFA for this same questions.

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

    To NESO Academy
    Why can't the self loop be implemented in state C itself rather extending it to state D and then implementing a self loop and making it a length of 3.
    If self loop is implemented in state C itself it stays in state C wether or not its '0' or '1'. As done in the previous lecture DFA (Example 1)

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

      if we apply self loop on the state C only it will accept strings of longer lengths like(00000011111) which we dont want to do, we only want to make accept strings having length 2

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

    I have exams tomorrow ,I was like dying then YOU.......... JUST SAVED MY LIFE......

  • @channadissanayaka6450
    @channadissanayaka6450 8 дней назад

    nice explaination

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

    Excellent 👍

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

    At 5:00 , why don't u apply the self loop on C itself ?

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

      because we are to construct a dfa that accepts sets of all strings over the length of "2" making c loop means sets larger than 2 would be accepted because they will then be in the final state

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

    Sir,forgive me but in DFA
    Rule 1:For each state in the DFA, there must be
    exactly one transition defined for each symbol
    in the alphabet
    So:How 0,1 going to same state ? There is an undeterministic situation here i think ?
    However thanks for your clear explanation.

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

      > For each state in the DFA, there must be exactly one transition defined for each symbol in the alphabet
      There was exactly one transition defined for each symbol. There was a transition defined for symbol 0, it goes from A to B. Then there was a separate transition defined for symbol 1, it goes from A to B. Transitions for both symbols go to the same state. He could've used two arrows, one on top going from A to B and labeled 0 and another one at the bottom also going from A to B and labeled 1. Instead he reused the same arrow and simply labeled it 0,1 to mark that they're in fact two separate transitions.

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

    Please help me.. I have doubt is DFA contain only one input where NFA contain two or more that's a difference between them.. Then how is this they use two inputs?

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

    It was very much useful

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

    This is too easy... I'm suspicious...

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

    1. why can the length of input be 3 and 1? 2. Can we define that after C get input, it goes to itself?

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

    Is it necessary to draw dead state to every DFA?

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

      Yes, if dead state isn't present your machine would simply truncate the remaining inputs . For eg: if the input is 000 or 001( these are strings of length 3 ,and hence should be rejected by the machine, but if the dfa doesn't have a dead end every input would simply stay in the final state at the end thereby accepting all string values and our designed dfa will be wrong ) . I just hope you understand whatever I tried to explain.

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

    wonderful explanation. Thank you so much. But i am having one doubt that why you have not put self loop to state C. In first example of DFA construction as the state ended at B you given self loop then why not in C in example 2

    • @ΙωαννεςΦαασεν
      @ΙωαννεςΦαασεν 5 лет назад +3

      Because state C is a final state and a string larger than 2 should not be accepted. A self loop in C would mean that strings larger than 2 would become accepted by the automaton.

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

      Thank-you so much sir

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

    is there any way to run video on higher than 2X.

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

    why you have not put self loop in state c
    please reply asap tomorrow is my exam

    • @luke8983
      @luke8983 5 лет назад +11

      Hi I know this is late but for anyone else wondering. If you put a self loop on state C the string 001 would end on state C, which is the final state. This means it would be accepted. We need to ensure an invalid string ends in a dead state so that it is not accepted.

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

      @@luke8983 Thank you so much

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

      @Luke Nolan but our question was to accept strings of length then how it is possible to accept a string of length 3 or more

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

      I would get the reply after 3 months😂😂

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

    sir,is there any problem if i keep self loop to C which stores 0,1 in itself without sending to D

    • @SaiKumar-zw9eh
      @SaiKumar-zw9eh 7 лет назад +17

      yeah definitely there is a problem cuz if u keep a self loop for C then it means that it accepts strings of length greater than 2 also, so to avoid this we'll send the input to a dead state

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

      i just got the situation, thank you very much sir

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

      Bro this is right because if we take loop over 'C' then problem at time 9:00 L=001 will accept the string and became final state on 'C' but lenght of is two so this is not possible to loop over 'C' in this question...

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

      @@ckumar2028 perfect bro

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

      @@SaiKumar-zw9eh tysm

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

    Sir, here we can also put a self loop to state b and make that only as final state right?

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

    Thank you so much sir

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

    You are awesome thank you very much for explaining so easily, looking forward for other videos

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

    I thought a finite automaton is only deterministic when the transition from one state and another contains only one symbol... you went from A to B with both 0 and 1 on the same transition. This makes this NOT A DFA...

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

      it is not '0 and 1' it is '0or 1'. see carefully , you are taking any one input(either 0 or 1) at a time. since the input at a time is deterministic it is a DFA

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

    Nice lecture

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

    I dint understand one thing !! Is it compulsory to mention Dead state for all DFA problems ... my teacher he dint gave dead state for some problems ... is it optional ..or its mistake if we dont mention it ..

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

    What if I give a self loop to B??

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

      If you give a self loop to B you are allowing inputs greater than length 2 so we need 2 states A and B and a final state C

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

      Then it occurred 1 length

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

      @@aadarshmishra1488 i agree that we should go back to state b with a lenght of one on any input at the final state

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

      @@bmwmaniac3 c is not final state

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

    My teacher 😎

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

    Why don't we create a loop for B for second conditions and make it as final state and create a dead state at c.
    Since we can reduce one element.

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

    Is it necessary to write dead state?
    why he does not stop at the final state? I think this is enough as a solution to the issue

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

      Yes I have also doubt in this can anyone please tell me@ Neso academy

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

    What if i take only two states A and B performing self loop on A and on B also giving both of them 0,1 on the self loop..... please make me understand...quickly

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

      If you will give self loop in state A then it can accept more than 2symbol which is not a valid input for this language. Cross check me if I am wrong.

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

      @@rakhimahanta3357 question is also same bro that accepts only sings of length 2

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

    good lecture

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

    why aren't we adding a self loop in state C ?

  • @DilpreetKaur-zt5eo
    @DilpreetKaur-zt5eo 2 года назад

    why we make state D we can again come back to state C for any input 0 or 1

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

    sir in these example if we give no input then also it goes to an different trap state

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

    Thank you ❤

  • @simrantuteja6949
    @simrantuteja6949 8 лет назад +2

    Do we have to mention each time which state we've chosen dead state?