Problems
[28/100%]Let . Show that is undecidable.
ᴬ Consider the problem of determining whether a two-tape Turing machine ever writes a nonblank symbol on its second tape when it is run on input . Formulate this problem as a language and show that it is undecidable.
ᴬ Consider the problem of determining whether a two-tape Turing machine ever writes a nonblank symbol on its second tape during the course of its computation on any input string. Formulate this problem as a language and show that it is undecidable.
Consider the problem of determining whether a single-tape Turing machine ever writes a blank symbol over a nonblank symbol during the course of its computation on any input string. Formulate this problem as a language and show that it is undecidable.
A useless state in a Turing machine is one that is never entered on any input string. Consider the problem of determining whether a Turing machine has any useless states. Formulate this problem as a language and show that it is undecidable.
Consider the problem of determining whether a Turing machine on an input ever attempts to move its head left when its head is on the left-most tape cell. Formulate this problem as a language and show that it is undecidable.
Consider the problem of determining whether a Turing machine on an input ever attempts to move its head left at any point during its computation on . Formulate this problem as a language and show that it is decidable.
Let be the tape alphabet for all TMs in this problem. Define the busy beaver function as follows. For each value of , consider all -state TMs that halt when started with a blank tape. Let be the maximum number of 1s that remain on the tape among all of these machines. Show that is not a computable function.
Show that the Post Correspondence Problem is decidable over the unary alphabet .
Show that the Post Correspondence Problem is undecidable over the binary alphabet .
In the silly Post Correspondence Problem, SPCP, the top string in each pair has the same length as the bottom string. Show that the SPCP is decidable.
Prove that there exists an undecidable subset of 1*.
Let . Show that is undecidable. (Hint: Use a reduction from . Given an instance
of the Post Correspondence Problem, construct a with the rules
where are new terminal symbols. Prove that this reduction works.)
Show that is Turing-recognizable iff .
Show that is decidable iff .
Let . Show that neither nor is Turing-recognizable.
Give an example of an undecidable language , where .
Define a two-headed finite automaton (2DFA) to be a deterministic finite automaton that has two read-only, bidirectional heads that start at the left-hand end of the input tape and can be independently controlled to move in either direction. The tape of a 2DFA is finite and is just large enough to contain the input plus two additional blank tape cells, one on the left-hand end and one on the right-hand end, that serve as delimiters. A 2DFA accepts its input by entering a special accept state. For example, a 2DFA can recognize the language .
Let . Show that is decidable.
Let . Show that is not decidable.
A two-dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an rectangle, for any . The squares along the boundary of the rectangle contain the symbol and the internal squares contain symbols over the input alphabet . The transition function indicates the next state and the new head position (Left, Right, Up, Down). The machine accepts when it enters one of the designated accept states. It rejects if it tries to move off the input rectangle or if it never halts. Two such machines are equivalent if they accept the same rectangles. Consider the problem of determining whether two of these machines are equivalent. Formulate this problem as a language and show that it is undecidable.
- ᴬ Rice's theorem. Let be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine's language has property is undecidable.
In more formal terms, let be a language consisting of Turing machine descriptions where fulfills two conditions. First, is nontrivial-it contains some, but not all, TM descriptions. Second, is a property of the TM's language-whenever , we have iff . Here, and are any TMs. Prove that is an undecidable language.
Show that both conditions in Problem 5.28 are necessary for proving that is undecidable.
Problem 5.28 (Rice's theorem): Let be a language consisting of Turing machine descriptions where fulfills two conditions. First, is nontrivial-it contains some, but not all, TM descriptions. Second, is a property of the TM's language-whenever , we have iff . Here, and are any TMs.
Use Rice's theorem, which appears in Problem 5.28, to prove the undecidability of each of the following languages.
ᴬ .
.
.
Let
for any natural number . If you start with an integer and iterate , you obtain a sequence, . Stop if you ever hit 1. For example, if , you get the sequence 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. Extensive computer tests have shown that every starting point between 1 and a large positive integer gives a sequence that ends in 1. But the question of whether all positive starting points end up at 1 is unsolved; it is called the problem. Suppose that were decidable by a TM . Use to describe a TM that is guaranteed to state the answer to the problem.
Prove that the following two languages are undecidable.
. (Hint: Adapt the hint in Problem 5.21.)
.
Consider the problem of determining whether a PDA accepts some string of the form . Use the computation history method to show that this problem is undecidable.
Let . Is decidable? Prove your answer.
Say that a variable in CFG is necessary if it appears in every derivation of some string . Let .
Show that is Turing-recognizable.
Show that is undecidable.
- Say that a CFG is minimal if none of its rules can be removed without changing the language generated. Let .
Show that is T-recognizable.
Show that is undecidable.