Section 3.1

Exercises

[8/100%]
Show
LaTeX
Problem 3.1

This exercise concerns TM M2M_{2}, whose description and state diagram appear in Example 3.7. In each of the parts, give the sequence of configurations that M2M_{2} enters when started on the indicated input string.

?
(a)
(b)

ᴬ 00.

(c)
(d)
Problem 3.2

This exercise concerns TM M1M_{1}, whose description and state diagram appear in Example 3.9. In each of the parts, give the sequence of configurations that M1M_{1} enters when started on the indicated input string.

?
(a)

ᴬ 11.

(b)
(c)
(d)
(e)
Problem 3.3

ᴬ Modify the proof of Theorem 3.16 to obtain Corollary 3.19, showing that a language is decidable iff some nondeterministic Turing machine decides it. (You may assume the following theorem about trees. If every node in a tree has finitely many children and every branch of the tree has finitely many nodes, the tree itself has finitely many nodes.)

?
Problem 3.4

Give a formal definition of an enumerator. Consider it to be a type of two-tape Turing machine that uses its second tape as the printer. Include a definition of the enumerated language.

?
Problem 3.5

ᴬ Examine the formal definition of a Turing machine to answer the following questions, and explain your reasoning.

?
(a)

Can a Turing machine ever write the blank symbol ⊔\sqcup on its tape?

(b)

Can the tape alphabet Γ\Gamma be the same as the input alphabet Σ\Sigma?

(c)

Can a Turing machine's head ever be in the same location in two successive steps?

(d)

Can a Turing machine contain just a single state?

Problem 3.6

In Theorem 3.21, we showed that a language is Turing-recognizable iff some enumerator enumerates it. Why didn't we use the following simpler algorithm for the forward direction of the proof? As before, s1,s2,…s_{1}, s_{2}, \ldots is a list of all strings in Σ∗\Sigma^{*}. E=E= "Ignore the input.

  1. Repeat the following for i=1,2,3,…i=1,2,3, \ldots. 2. Run MM on sis_{i}. 3. If it accepts, print out sis_{i}."
?
Problem 3.7

Explain why the following is not a description of a legitimate Turing machine. Mbad =M_{\text{bad }}= "On input ⟨p⟩\langle p\rangle, a polynomial over variables x1,…,xkx_{1}, \ldots , x_{k} :

  1. Try all possible settings of x1,…,xkx_{1}, \ldots , x_{k} to integer values. 2. Evaluate pp on all of these settings. 3. If any of these settings evaluates to 0, accept; otherwise, reject."
?
Problem 3.8

Give implementation-level descriptions of Turing machines that decide the following languages over the alphabet 0,1.

?
(a)

ᴬ {w∣w contains an equal number of 0 s and 1 s }\left\{ w \mid w\text{ contains an equal number of 0 s and 1 s }\right\}

(b)

{w∣w contains twice as many 0 s as 1 s }\left\{ w \mid w\text{ contains twice as many 0 s as 1 s }\right\}

(c)

{w∣w does not contain twice as many 0 s as 1 s }\left\{ w \mid w\text{ does not contain twice as many 0 s as 1 s }\right\}