Chapter 3

The Church-Turing Thesis

[22/95%]
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\}

Problem 3.9

Let a kk-PDA be a pushdown automaton that has kk stacks. Thus a 0-PDA is an NFA and a 1-PDA is a conventional PDA. You already know that 1-PDAs are more powerful (recognize a larger class of languages) than 0-PDAs.

?
(a)

Show that 2-PDAs are more powerful than 1-PDAs.

(b)

Show that 3-PDAs are not more powerful than 2-PDAs. (Hint: Simulate a Turing machine tape with two stacks.)

Problem 3.10

ᴬ Say that a write-once Turing machine is a single-tape TM that can alter each tape square at most once (including the input portion of the tape). Show that this variant Turing machine model is equivalent to the ordinary Turing machine model. (Hint: As a first step, consider the case whereby the Turing machine may alter each tape square at most twice. Use lots of tape.)

?
Problem 3.11

A Turing machine with doubly infinite tape is similar to an ordinary Turing machine, but its tape is infinite to the left as well as to the right. The tape is initially filled with blanks except for the portion that contains the input. Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that this type of Turing machine recognizes the class of Turing-recognizable languages.

?
Problem 3.12

A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form

δ:Q×Γ⟶Q×Γ×{R, RESET }. \delta : Q \times \Gamma \longrightarrow Q \times \Gamma \times \left\{ \mathrm{R}, \text{ RESET }\right\} .

If δ(q,a)=(r,b\delta (q, a)=(r, b, RESET )), when the machine is in state qq reading an aa, the machine's head jumps to the left-hand end of the tape after it writes bb on the tape and enters state rr. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.

?
Problem 3.13

A Turing machine with stay put instead of left is similar to an ordinary Turing machine, but the transition function has the form

δ:Q×Γ⟶Q×Γ×{R, S}. \delta : Q \times \Gamma \longrightarrow Q \times \Gamma \times \left\{ \mathrm{R}, \mathrm{~ S}\right\} .

At each point, the machine can move its head right or let it stay in the same position. Show that this Turing machine variant is not equivalent to the usual version. What class of languages do these machines recognize?

?
Problem 3.14

A queue automaton is like a push-down automaton except that the stack is replaced by a queue. A queue is a tape allowing symbols to be written only on the left-hand end and read only at the right-hand end. Each write operation (we'll call it a push) adds a symbol to the left-hand end of the queue and each read operation (we'll call it a pull) reads and removes a symbol at the right-hand end. As with a PDA, the input is placed on a separate read-only input tape, and the head on the input tape can move only from left to right. The input tape contains a cell with a blank symbol following the input, so that the end of the input can be detected. A queue automaton accepts its input by entering a special accept state at any time. Show that a language can be recognized by a deterministic queue automaton iff the language is Turing-recognizable.

?
Problem 3.15

Show that the collection of decidable languages is closed under the operation of

?
(a)

ᴬ union.

(b)

concatenation.

(c)

star.

(d)

complementation.

(e)

intersection.

Problem 3.16

Show that the collection of Turing-recognizable languages is closed under the operation of

?
(a)

ᴬ union.

(b)

concatenation.

(c)

star.

(d)

intersection.

(e)

homomorphism.

Problem 3.17
  • Let B={⟨M1⟩,⟨M2⟩,…}B=\left\{ \left\langle M_{1}\right\rangle ,\left\langle M_{2}\right\rangle , \ldots \right\} be a Turing-recognizable language consisting of TM descriptions. Show that there is a decidable language CC consisting of TM descriptions such that every machine described in BB has an equivalent machine in CC and vice versa.
?
Problem 3.18
  • Show that a language is decidable iff some enumerator enumerates the language in the standard string order.
?
Problem 3.19
  • Show that every infinite Turing-recognizable language has an infinite decidable subset.
?
Problem 3.20
  • Show that single-tape TMs that cannot write on the portion of the tape containing the input string recognize only regular languages.
?
Problem 3.21

Let c1xn+c2xn−1+⋯+cnx+cn+1c_{1} x^{n}+c_{2} x^{n-1}+\cdots +c_{n} x+c_{n+1} be a polynomial with a root at x=x0x=x_{0}. Let cmax c_{\text{max }} be the largest absolute value of a cic_{i}. Show that

∣x0∣<(n+1)cmax⁡∣c1∣. \left|x_{0}\right|<(n+1) \frac{c_{\max }}{\left|c_{1}\right|}.
?
Problem 3.22

ᴬ Let AA be the language containing only the single string ss, where

s={0 if life never will be found on Mars. 1 if life will be found on Mars someday.  s= \begin{cases} 0 & \text{ if life never will be found on Mars. } \\ 1 & \text{ if life will be found on Mars someday. } \end{cases}

Is AA decidable? Why or why not? For the purposes of this problem, assume that the question of whether life will be found on Mars has an unambiguous Yes or No answer.

?