Answer
a) 1111
b) 011
c) 00001.
d) 00.
Work Step by Step
Let T be the Turing machine defined by the fivetuples: (s0, 0, s1, 1,R), (s0, 1, s1, 0,R), (s0,B, s1, 0,R), (s1, 0, s2, 1,L), (s1, 1, s1, 0,R), and (s1,B, s2, 0,L). For each of these initial tapes, determine the final tape when T halts, assuming that T begins in initial position.
a) The nonblank portion of the tape contains the string 1111 when the machine halts.
b) The nonblank portion of the tape contains the string 011 when the machine halts.
c) The nonblank portion of the tape contains the string 00001 when the machine halts.
d) The nonblank portion of the tape contains the string 00 when the machine halts.