Turing Machine (Example 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

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

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

    As a undergrad CS punk 🤣 i can say my collage professors need to take lessons on how to teach like you in less than 15min

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

    holy crap dude.......I never knew ToC could be understood so easily........You have my respect ^_^

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

    Your channel is a life saver for every engineering students.. Love your videos, soooo good methods of explaining... SALUTE TO NESO ACADEMY...

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

      Ya it's very helpful
      Love you

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

      But... isn't this video is for scientist?

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

      S 🙉👌

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

      @@sent4444 what no ,all this is indian undergrad CS engineering sylabus for 3 or 4th semester students

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

      SALUTE TO NESO ACADEMY...

  • @pinklady7184
    @pinklady7184 7 ปีที่แล้ว +69

    1st yay. You are heaven sent. God bless your brains and your time to teach us. Thank you for making tutorials.

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

    The only explanation of turing machine on youtube that makes sense ❤️

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

    Such a life saver you are. Teaching with the basic concepts easily. 🌟😌

  • @vix-sb9qb
    @vix-sb9qb ปีที่แล้ว +16

    Anyone wondering does this machine accepts input 00? Yes it does, the reason is, 1* = {epsilon, 1, 11, 111...} and 00 is in the language. So this machine represents the language 01*0. Don't confuse with the Blank symbol and epsilon, they are two different concepts.

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

    from the future and it still saving me

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

    Really well explained. Thank you!

  • @kishorprasad3817
    @kishorprasad3817 7 ปีที่แล้ว +21

    pls also add examples on conversion of cfg to PDA and vice versa. do reply.

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

    As per my teacher, we can't replace whole set of '1' with 'y' at once. Instead replace one '1' with 'y' at a time then again traverse back. Hope you got it!

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

    I wish all teachers taught like you

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

      if u listen in class carefully u will understand

    • @AmanSingh-om1zu
      @AmanSingh-om1zu 2 ปีที่แล้ว

      @@SattiSanthoshReddy Then why are you here?

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

      @@AmanSingh-om1zu i am not a student

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

    The machine just came out of nowhere! plz explain the steps involved in creating the machine. I can understand how it works i want to know how it is built.

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

    Soooooo good explains for us ,, very very thank you

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

      very very thank you

  • @pratush.mishra
    @pratush.mishra 5 ปีที่แล้ว +3

    Very awesomely explained

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

    Thanks a lot to you. Clarity in explanation.

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

    Thank you soo much Sir, best i never had seen classes... Superb tq once again.

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

    Very clear explanation. Thank you!!

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

    the empty string is included in 1*, hence I believe blank should be accepted as well in the B state?

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

      @Prathmesh Tiwari SO a 1 is not needed to be accepted.

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

      blank is not a symbol in Sigma so can't accept it

  • @MuhammedThameem-j5k
    @MuhammedThameem-j5k 23 วันที่ผ่านมา +1

    so easy to understand brooo

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

    wonderful explanation of a complex topic

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

    It's very good for understanding

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

    Godly Explanation! Thanks

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

    Why we want to differ the tape symbol and the input symbol ?

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

    Thank you..very well explained

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

    I thoroughly enjoy your lectures, they are an immense help.
    The example needs a slight modification though because we only want strings of the form 01*0. However, the Turing machine in the example will wrongly accept string 00. State B needs to be broken into two states B1 and B2. B1 to B2 should ensure the second alphabet of the string is a 1 and B2 can have the loop described above.

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

      Also blank is not a input alphabet,. The example is confusing.

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

      but 00 is also a string the form 01*0

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

      00 is part of this language so it's correct.

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

    what if you get a 0 at state B right after getting a 0 in state A. Shouldn't that reject the string ?

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

      it will accept because 1* means 0 or more 1's

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

    Dude u r the best 😘

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

    good example thanks

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

    Just need a clearification sir. Should we add one blank or infinite blank in the Tape for the input string 0110?

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

    I think if encounter two 0's continuously when we are in initial state, the TM will accept the string which should not happen.(example 1)please clarify sir

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

    life saver💙💙

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

    Sir, what if the input is 00 blank? And how will we know if it went to the accept state or the reject state in the tape??

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

      Should go to the reject state, as he said in the final few minutes of the video, since there is no transition drawn.

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

      it will go to accept state Mrs.Just laugh

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

      1* can be null.It will be accept by that reason.

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

      I know this is an old comment but I wanted to add my answer to it. If the input is 00 blank, it still follows the rules of the language and it will be accepted. The rules are that it must start and end with 0, and there can be ANY number of 1's inbetween. I hope this helps :^)

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

    A very nice explanation. But I have a question:
    What will happen if we get a input string '00' instead of '010'. According to your logic the input string is still going to meet the final state. Waiting for your reply.

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

      State -> A B C 'Accept'
      Tape -> x x Blank 'Blank'
      Result is accept
      '' mean current state/current head pointer

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

      as stated above in some other comment, the empty string is included in 1* hence, 00 is in the language L. Thus, one should expect 00 to be accepted.

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

    I have one question sir, how can we design a TM such that (0^n 10^3n) how do we solve this?

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

    05:48 08:45

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

    My Teacher uses this channel to teach us

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

    My prof for this works at lockheed and tells us we will never use it... but thanks!

  • @AadeshingaleOfficial-zl5fd
    @AadeshingaleOfficial-zl5fd 28 วันที่ผ่านมา

    Nice Sir 😊

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

    Well explained...

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

    Turing machine uses 0.0001% of its power
    Thanos dies

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

      LOL - us turing machine folks think Marvel Movies are epic.

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

    1. If we don't need the tape in this particular example, why write anything to it? Cannot we just leave the writing head where it is or skip the writing process altogether? Or use the tape to write the answer?
    2. So the input is not from the tape, but from "somewhere else"? Why can't we read the input from the tape then?
    3. If the blank symbol is the "tape" symbol, not the "input" symbol, how come it is a part of the transition description? :q

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

    God bless you Sir!!!

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

    Good for understanding

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

    a^nb^nc^m, n, m>=1, sir could u solve this question..

  • @BeyondBasic-jk2ps
    @BeyondBasic-jk2ps 6 ปีที่แล้ว +2

    Very well explained but my teacher always find mistakes from this method 🤷🏻‍♀️🤷🏻‍♀️🤦‍♀️🤦‍♀️

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

    this video is extremely misleading - it makes a distinction between the input string and the tape as if they are two separate things when in reality the input string is ON the tape. this is bound to confuse viewers. there's also absolutely no reason to print different symbols "x" and "y" on the tape if the machine is only ever traversing rightwards and not reading these symbols. changing what's being printed to the tape for no logical reason is again bound to cause confusion, and will have viewers unnecessarily questioning if there is some meaning behind it, when there just isn't. it would be more intuitive to just print blank symbols to the tape in all cases

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

      Got it SIr (Salute Emoji)
      In the morning my exam is there

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

      😂​@@dvalley56

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

    Sir can u plzz make video on complexity theory

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

    how to make turing machine for double word over alphabet a,b ????

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

    correction : the transition from state C should have 'L' instead of 'R' as we only want the string to be accepted not the special symbol.

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

      the input tape is unbounded on either side, and the input string is surrounded by blank spaces. therefore, you can assume that there are spaces all around it and explicitly writing the blank will not change the state of the tape vs not writing it.

  • @BeyondBasic-jk2ps
    @BeyondBasic-jk2ps 6 ปีที่แล้ว +2

    Yr am totally confused with Turing machine because my teacher says
    One bye one replace a 0 by X then ho right move
    Then come back at left move and traverse again
    We can't replace it at one time
    Plz sir solve my prblm

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

      My teacher says the same thing. Same doubt after 4 yrs,,, hehe ~

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

    Thanks Sir JI😊😊

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

    Does turing machine accept ∅? If no, then either ∅ is regular language or turing machine doesnot accept regular language?

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

    Sir give lecture no in title of video plz it's confusing which 2 watch frist
    Hope u notice

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

    Can this Turing Machine not accept string "00" which is not in the Language of "01*0"?

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

    Well explained. Thank you.

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

    what if we get a string 00B, then it will be accepted .

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

    Blank symbol does not belong to sigma, the input alphabet. See previous video.

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

    01110 would be a better example than 0110. I got confused by 01*0 for a moment (I thought * was a single "digit" placeholder). Not a big issue though. It's a good video overall.

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

      That's because you might not have come across the Kleen closure and plus videos.
      Any input symbol with a star signifies Kleen closure which means it can be replaced by Epsilon or occurrences of that input symbol any number of times.

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

    But how did you design that machine?

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

    you are awesome !!

  • @safiyagani-5565
    @safiyagani-5565 ปีที่แล้ว

    Sir aap English mai qu lecture dy rahi hai.... Aap bht acha padati hai or mje smj b aata hai but kuh kuh words na meri sar k upar se jati hai please🙏 aap se request hai aap hindi mai b lecture diya karo please🙏 ye meri request hai aap se... Aagay aap ki marxi sir.... Thank you so much

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

    IS IT CORRECT IF THE TM TAKING EVEN 00? LIKE ACCEPT?

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

      BUT THE L SAYING THAT IT SHOULD BE 010 OR 01111110... BUT NOT 00

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

    Thank you so much 😁

  • @cool-qc4om
    @cool-qc4om 5 ปีที่แล้ว

    Input symbol doesn't consist blank symbol right

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

    merci beaucoup

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

    Thankyou sir

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

    I have a doubt there your machine is going to accept 00 also which is not represented in the language hence another state should be added

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

    So like in this this one state, we wright on the tape and move to the right then we go right and then write some more.... Am I right? XD

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

    I need more understanding in this subject 😢

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

    00_ will be also accepted -> A B C ACCEPT. This example is wrong and you are missing one more state to design it properly

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

      i think 1* means any no. of 1s which inludes 0 no. of 1s as well
      and hence it will be accepted

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

      1* means that there can be no instances of 1.

  • @AjayKumar-ft1yj
    @AjayKumar-ft1yj 6 ปีที่แล้ว

    Sir, is your course enough for the university examinations ??

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

      Is this enough for gate

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

      @@tejasri5313 of course not!!

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

    Is it necessary to draw reject state

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

      the reject state is simply a state that only transitions to itself, it is drawn for completeness. One could leave it out for a simpler diagram of the Turing machine.
      Note: if you remove the reject state for the sake of simplicity of the diagram, then it is still technically there (one would interpret the missing transitions as going to the reject state).

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

    Will the string 00 is accepted??

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

    but why did you put the rehect , there is no meed

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

      coz this turing machine is a deterministic one

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

    Nice tq sir

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

    Is it possible to get like from NESO in 2021?

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

    what if input is 00 only.

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

    i don't know why he don't show us how does he draw it in the video

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

    So the blank state is not included in 1*? Thought it was

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

    isn’t this a finite state machine 🤔

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

    my strange addiction

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

    Rejected state act as dead state 🤔

  • @DeepSingh-fp5rh
    @DeepSingh-fp5rh หลายเดือนก่อน

    what if 00 comes

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

    Nice

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

    Respect ++

  • @akashkumar-sp5iy
    @akashkumar-sp5iy 5 ปีที่แล้ว

    What happened if we get a 0010.

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

    what if the string is 0010????

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

      State -> A B C 'Reject'
      Tape -> x x '1' 0
      Result is reject

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

    why you write x not write 0

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

    i love you

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

    What about 01100

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

      Wouldn't it end up in the reject state since adding the extra 0 would not be in the language 01*0?

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

      It would definitely reject. It even shows a transition there for that case.

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

      yes you need to expand the algorithm with logical solution like how he suggested, so basically try works too

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

    Your explanation sometime isn't clear. You say that why to replace 0s and 1s with x and y and then you gave no explanation why you did that.

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

    megan thee stallion

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

    Such a boring explanation....

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

    isnt 1* the kleene closure? so shouldnt it also allow the string "00"?