00:01
We're asked to construct a tauri machine that computes the function f of n equals n plus 2 for all non -negative integers n.
00:18
Now to construct this machine, we're going to use unary notation.
00:23
So this means that we have an input of n plus 1 ones.
00:34
Then we should receive or should accept this input and output a tape which contains.
00:51
N plus 2 plus 1, which is equal to n plus 3 ones.
01:04
So essentially, we want to add two more ones to this string.
01:13
So there are some easy ways to do this.
01:22
For 1, starting out in state s0, we know that for any non -negative integer n, the tape is going to contain at least 1 -1 in the initial configuration.
01:35
And so we'll want to take this 1 and say s0, we recognize it.
01:41
And in the start configuration, this is the leftmost 1.
01:46
So let's move left and shift into state s1.
01:53
Keep the 1 as is.
01:59
And then once we've moved left, now we're reading a blank...