fbpx
  1. Tubelator AI
  2. >
  3. Videos
  4. >
  5. Education
  6. >
  7. Building Deterministic Turing Machines: A Tutorial with Examples

Building Deterministic Turing Machines: A Tutorial with Examples

Available In Following Subtitles
English
Variant 1
Posted on:
Video by: NLogSpace
Learn how to build deterministic Turing machines step by step in this tutorial video. Understand the capabilities of Turing machines and get hands-on experience in specifying their operations. Gain insights into accepting specific languages and develop a deeper understanding of calculability.
tubelator logo

Instantly generate YouTube summary, transcript and subtitles!

chrome-icon Install Tubelator On Chrome

Video Summary & Chapters

No chapters for this video generated yet.

Video Transcript

0:00
Welcome to the fourth part of the series about calculability.
0:05
In this video we want to build some DTMs.
0:08
We will build a Turing machine that accepts this language.
0:14
You can watch this video as a tutorial.
0:19
There won't be much new.
0:23
I think it's important to build some DTMs yourself.
0:28
At the beginning we have to get used to what deterministic Turing machines can do.
0:36
As the Church-Turing-Thesis already said, they can do everything you can do with any other programming language.
0:42
But we have to get used to it first. We have to get a feeling for it.
0:46
and until we have the feeling we will specify the Turing machine in a very concrete way and
0:52
later we will go to the point that you only specify the Turing machine in a pseudo code way
0:58
something like yes the Turing machine writes this and that, it copies it to there and so on
1:04
but we are not there yet so we are now building concrete Turing machines and this is the
1:09
first language yes the language consists of words of the form a also in b in c in n with n
1:15
greater than or equal to 1 yes an old acquaintance if we remember the context-free languages ​​that
1:22
were a typical example of a language that is not context-free but we will now
1:28
indicate a turing machine for this, that is, we will show that this language is
1:32
turing recognizable ok and if you get such a task then it is best to
1:38
always think of a strategy first, so how would you proceed if you get any word that
1:43
a, b and c. How would you proceed to find out whether this is really
1:50
the form a to n b to n c to n. So first of all, let's think about the strategy.
1:56
That means we get a word like this. In this case it is of the form a to n b to n c to n.
2:02
How would we verify that now? There can of course be different options.
2:07
I will now just present one. One possibility is, so our
2:12
tolling machine will be at the beginning on the first symbol here, yes, one possibility is to
2:18
check whether it really has first A's, then B's and then C's, yes, so that we
2:24
have the first C and then B and then A or something that we can exclude them, yes, that
2:31
So we could run through the code and see if there are any a's, b's, c's and the word is at the end.
2:39
This could be a first step, a pre-processing.
2:42
If this is not the case, we can throw away the code.
2:45
If this was the case, we run through the code again.
2:47
back to the beginning and now we check whether the numbers are really correct, i.e. whether we have
2:51
exactly the same number of a's b's and c's and we can do that now we can mark this first
2:56
a here so replace the a with a new symbol and then we look for a b find
3:03
one then we mark that we keep going and then we look for a c if we find one then we mark
3:09
that and as soon as we have marked c we go back to the beginning and do the whole thing
3:14
front that is a loop so we look for a mark such a b mark such a c mark
3:20
run back here a mark b mark c run back and at some point when the word is only
3:28
made up of marked symbols yes that means if we can only see marked symbols
3:33
and at the end we bump into a blank without bumping into a
3:37
b or c in between, then we can accept that should now be our
3:43
strategy and we are now building it as a touring machine so here I have the pre processing
3:49
step written down so where we only look over the word once are first a then b
3:55
then c and it always has to be at least one yes here n was bigger than one that means we
4:02
look is the first symbol in a then leave it at a and go to the right then there can be
4:13
a b must come at some point and several bs can also come then at some point c must come then
4:19
several cs can also come we leave the symbols all so and just run
4:23
over to the right and at some point a blank comes yes at some point we are here yes hopefully so if
4:29
the word of the form is also a b or a c then there will definitely be a blank at some point
4:34
yes then there is no longer an a or something else and then we walk a step
shape-icon

Download extension to view full transcript.

chrome-icon Install Tubelator On Chrome