Let M be the Turing transducer whose transition diagram is given in
Figure 4.1.3. Give the sequence of moves between configurations that M has
on input baba.
4.1.2
For each of the following relations construct a Turing transducer that computes the
relation.
{ (aibici, di) | i 0 }
{ (x, di) | x is in {a, b, c}* and i = (the number of a's in x) = (the number
of b's in x) = (the number of c's in x) }
{ (x, di) | x is in {a, b, c}* and i = min(number of a's in x, number of
b's in x, number of c's in x) }
{ (xxrevy, ai) | x and y are in {a, b}*, and i = (number of a's in
x) = (number of a's in y) }
{ (ai, bj) | j i2 }
4.1.3
For each of the following languages construct a Turing machine that recognizes the
language.
{ xyx | x and y are in {a, b}* and |x| 1 }
{ xy | xy is in {a, b, c}*, |x| = |y|, and (the number of a's in x) = (the
number of a's in y) }
{ xy | xy is in {a, b, c}*, |x| = |y|, and (the number of a's in x) (the
number of a's in y) }
{ aixbi | x is in {a, b}*, and i = (the number of a's in x) = (the number
of b's in x) }
{ aibicjdj | i j }
{ aba2b2a3b3 anbn | n 0 }
4.1.4
Show that the relations computable by Turing transducers are closed under the
following operations .
Union.
Intersection.
Reversal, that is, the operation that for a given relation R provides the
relation { (xrev, yrev) | (x, y) is in R }.
4.1.5
Show that recursive languages are closed under complementation. (The result
does not carry over to recursively enumerable languages because the language
Ldiagonal_reject, as defined in Section 4.5, is not a recursively enumerable
language, whereas its complementation is.)
4.1.6
Show that each linear bounded automaton has an equivalent linear bounded
automaton that halts on all inputs.
4.1.7
Show that each Turing transducer has an equivalent three-states Turing
transducer.
4.2.1
Redo Example 4.2.1 for the case that P has the instructions of Figure 4.E.1.
doy := y + 1
orifx = ythenifeofthen acceptreadxwritexuntil false
Figure 4.E.1
4.2.2
Find the values of state(q2, ˘, B, B), c1(q2, ˘, B, B), c2(q2, ˘, B, B),
d0(q2, ˘, B, B), d1(q2, ˘, B, B), d2(q2, ˘, B, B), and
(q2, ˘, B, B) in
Figure 4.2.5(b) for the case that M is the deterministic Turing transducer in
Figure 4.1.6.
4.2.3
Find the values of tran(q2, a, B, q2, 0, B, +1, )
and tran(q3, a, b, q3, +1,
a, +1, ) in Figure 4.2.5(c) for the case that M is the nondeterministic Turing
transducer in Figure 4.1.3.
4.2.4
For each of the following cases determine the value of the corresponding item
according to Example 4.2.4.
The natural number that represents the string BBBccc.
The string represented by the natural number 21344.
4.3.1
Find the transition diagram of M2 in Example 4.3.1 for the case that M1 is the
Turing transducer of Figure 4.E.2.
Figure 4.E.2
4.3.2
Show that each deterministic, two auxiliary-work-tape Turing transducer M1 has
an equivalent deterministic, one auxiliary-work-tape Turing transducer
M2.
4.4.1
Find a standard binary representation for the Turing transducer whose transition
diagram is given in Figure 4.E.2.
4.4.2
Let M be a Turing transducer whose standard binary representation is the
string 01401012014001201401401400101201500130140012001013014014013014014
012001013013014014013001301401.
How many accepting states does M have?
How many transition rules does M have?
How many transition rules of M provide a nonempty output?
How many auxiliary work tapes does M have?
4.4.3
For each of the following strings either give a Turing transducer whose standard
binary representation is equal to the string, or justify why the string is not a standard
binary representation of any Turing transducer.
Discuss the appropriateness of the following languages as a replacement for the
language Ldiagonal_reject in the proof of Theorem 4.5.1.
{ x | x = xi, and Mi+2 does not accept xi }.
{ x | x = xi, and Mi/2 does not accept xi }.
{ x | x = xi, and either M2i-1 does not accept xi or M2i does not
accept xi }.
4.5.2
The proof of Theorem 4.5.1 uses the diagonal of the table Taccept to find the
language Ldiagonal_reject that is accepted by no Turing machine. Show that besides
the diagonal, there are infinitely many other ways to derive a language from Taccept
that is accepted by no Turing machine.
4.5.3
Use a proof by diagonalization to show that there is anundecidable membership
problem for a unary language.
4.5.4
What is M in the proof of Theorem 4.5.5 if M is the Turing machine given in
Figure 4.E.3?
Figure 4.E.3
4.5.5
Find a Turing machine Mx that satisfies the conditions in the proof of Theorem 4.5.6
if M is the Turing machine in Figure 4.E.3 and x = abb.
4.5.6
Show that no linear bounded automaton can accept LLBA_reject = { x | x = xi and
Mi does not have an accepting computation on input xi in which at most |xi|
locations are visited in each auxiliary work tape }.
4.5.7
Use the undecidability of the membership problem for Turing machines to show the
undecidability of the following problems for Turing machines.
The problem defined by the following domain and question.
Domain:
{ (M, x, p) | M is a Turing machine, p is a state of M, and
x is an input for M }.
Question:
Does M reach state p on input x, for the given instance
(M, x, p)?
Empty-word membership problem.
Uniform halting problem.
Emptiness problem.
Equivalence problem.
If the Turing machine M is as in Figure 4.5.6(a) and x = ababc, then what is the
corresponding instance implied by your reduction for each of the problems in (a)
through (e)?
4.5.8
Show that the nonacceptance problem for Turing machines is not partially
decidable.
4.6.1
Let G be the grammar whose production rules are listed below.
Find a Turing machine MG, in accordance with the proof of Theorem 4.6.1, that
accepts L(G).
4.6.2
Let M be the Turing machine whose transition diagram is given in Figure 4.E.4.
Figure 4.E.4
Use the construction in the proof of Theorem 4.6.2 to obtain a grammar that
generates L(M).
4.6.3
For each of the following languages find a context-sensitive grammar that generates
the language.
{ aibici | i 0 }
{ aibjcjdj | i j }
{ xx | x is in {a, b}* }
4.6.4
Show that a language is Type 1 if and only if it is a context-sensitive language.
4.6.5
Show, by refining the proofs of Theorem 4.6.1 and Theorem 4.6.2, that a language is
Type 1 if and only if it is accepted by a linear bounded automaton.
4.7.1
Solve the PCP problem for each of the following instances (and justify your
solutions).
<(115, 13), (117, 18), (112, 129)>
<(1, 10), (10, 01), (0, 011), (100, 01)>
<(0100, 01), (10, 0), (1, 10)>
4.7.2
Show that PCP is decidable when the strings are over a unary alphabet.
4.7.3
Let G be the grammar whose production rules are
Find the instance of PCP that corresponds to the instance (G, aba), as determined by
the proof of Theorem 4.7.1.
4.7.4
Find the finite-state transducers M1 and M2 in the proof of Corollary 4.7.1 for the
instance <(ab, a), (a, ba)> of PCP.
4.7.5
Find the pushdown automata M1 and M2 in the proof of Corollary 4.7.2 for the
instance <(ab, a), (a, ba)> of PCP.
4.7.6
Show, by reduction from PCP, that the ambiguity problem is undecidable for
finite-state transducers and for pushdown automata.