00:01
We're asked to construct a during machine that recognizes the set of all bit strings that end with a 0.
00:10
So we want the machine to scan the input tape until it reaches the first blank.
00:21
So machine t scans string until t finds a b.
00:42
And so we want that in state s0, if t finds b, what we want, is to essentially back up.
01:00
So we're kind of using some memory here.
01:06
So t should enter a new stage, s1, and t's not going to change b to anything, but t should move left, whereas it was moving right previously.
01:28
So now we are examining the final bit in the string.
01:33
Now in s1, if t, t finds a zero, well this means that the string ends with a zero.
01:47
And this is a desirable outcome.
01:50
And so if this to be accepted, let's have t enter a new stage s3.
02:04
And t's not going to change the zero or anything, but t will move right.
02:10
So the next input to be recognized will be the blank.
02:19
Now, say instead that we're in s1 and t finds a 1.
02:27
This means that the bit string ends with a 1.
02:29
We do not want our turing machine to accept this input.
02:35
Therefore, you want t to remain in state.
02:40
Sorry, this should be to a state s2 here.
02:44
Instead of s3.
02:46
Now we want t to remain in the state s1 and t should not change the one, but t should simply move right.
02:59
And notice that we haven't given any instructions for how t is to react if it is in state one and finds a blank space.
03:11
And this will essentially recognize all input strings which end with a zero and will not recognize any input strings that end with a one.
03:26
One more question is, will this input string, i mean, will this machine recognize the empty string? well, this depends on how we define our five tuples.
03:41
So, first of all, we have our machine t is a four tp, with components s, i, f, s, 0, where s is the set of all states.
04:00
So this includes s0, s1, and s2 according to our touring machine...