Chapter 13: Q5E (page 898)
What does the Turing machine described by the five-tuples \(\left( {{s_0},1,{s_1},0,R} \right),\left( {{s_1},1,{s_1},1,R} \right),\left( {{s_1},0,{s_2},0,R} \right),\left( {{s_2},0,{s_3},1,L} \right),\;\left( {{s_2},1,{s_2},1,R} \right),\;\left( {{s_3},1,{s_3},1,L} \right),\)\(\left( {{s_3},0,{s_4},0,L} \right),\left( {{s_4},1,{s_4},1,L} \right)\), and \(\left( {{s_4},0,{s_0},1,R} \right)\) do when given
\(a)\)\(11\)as input\(?\)
\(b)\)a bit string consisting entirely of \(1\)s as input\(?\)
Short Answer
\(a)\)Machine halts with \({\bf{01}}\) on the tape, but the input was not accepted.
\(b)\)The first \(1\) (if any) is changed to a \(0\) and the others are left alone.
The input is not accepted.