Undecidable Problems
[12/50%]Show that the following problems are undecidable:
Given a DTM M and a string , determine whether halts on some input which is greater than or equal to .
Given two DTM's and , determine whether they are equivalent (i.e., whether they compute the same function).
Given a DTM , an input and a state of , determine whether ever enters state in the computation on input .
Given a DTM M, determine whether the computation of M(111) contains a configuration in which the tape contains a substring 000.
Show that the following problems are undecidable:
Given a grammar and a string , determine whether .
Given a grammar and two strings and , determine whether .
Given a grammar and two strings , determine whether there is a derivation of that is longer than the shortest derivation of . (The length of a derivation is the number of sentential forms in the derivation.)
Given a grammar , determine whether .
Given two grammars and , determine whether .
Given a grammar , determine whether is a context-free language (i.e, for a given unrestricted grammar , determine whether there is an equivalent context-free grammar).
Show that the problem of determining whether a given context-free grammar over the alphabet has is undecidable.
Prove that the problem PCP is undecidable (with respect to some alphabet ).
Prove that the problem of determining whether two given context-free grammars and have the property is undecidable.
Prove that the problem of determining whether a given context-free grammar is ambiguous is undecidable.
For each of the following problems about Turing machines, determine whether it is decidable or not:
Given a one-way, one-tape DTM (defined in Section 4.1) and a string , determine whether the tape head of will ever visit the th cell in the computation of on input , where (we call the leftmost cell of the tape the 0th cell, and the one to its right the first cell, etc.).
Given a two-way, one-tape DTM (defined in Section 4.3) and a string , determine whether the tape head of will ever visit the th cell in the computation of on input , where (we call the cell holding the leftmost symbol of the first cell, and the cell to its right the second cell, etc.).
Given a two-way, one-tape DTM and a string , determine whether the tape head of will move left for more than times (not necessarily in consecutive moves) in the computation of on input , where .
Given a two-way, one-tape DTM whose tape symbol set is and a string , determine whether will ever overwrite a symbol by a symbol in its computation on input .
Given two DTM's and and two strings and , determine whether it is true that sometime during the computation of on input and the computation of on input , the first three cells of their tapes contain the same symbols (i.e., whether there is a configuration of the computation of and a configuration of the computation of such that the first three tape symbols of is the same as those of ).
For each of the following problems about unrestricted grammars, determine whether it is decidable or not:
Given a grammar over the alphabet , determine whether contains a string of which aaa occurs as a substring.
Given a grammar and a string , determine whether there is a derivation of that does not contain a sentential form in which occurs as a substring, where is a terminal symbol and is a nonterminal symbol in .
Given a grammar and a string , determine whether there is a derivation of in which the lengths of the sentential forms do not decrease.
Given a grammar and a string , determine whether there is a derivation of in which the lengths of the sentential forms decrease at most times, where .
Complete the details of the PDA of Example 5.43. That is, construct a PDA which accepts the set .
For each of the following problems about context-free grammars, determine whether it is decidable or not:
Given a context-free grammar and a DFA , determine whether .
Given a context-free grammar and a DFA , determine whether .
Given a context-free grammar , determine whether is regular.
Given a context-free grammar , determine whether the complement of is context-free.
Given two context-free grammars and , determine whether is context-free.
For each of the following variations of PCP, determine whether it is decidable or not:
The problem PCP over the alphabet .
The problem PCP over the alphabet .
Given a finite set of ordered pairs of strings in , determine whether there is an infinite sequence of integers in such that .
Given a finite set of ordered pairs of strings in , determine whether there exist two sequences of integers (, and , with each element belonging to , such that .
The same question as (d) above, except that the two sequences of integers must be of the same size, that is, .
In this question, we consider the tiling problem. In this problem, a colored tile is a square tile of size whose four sides are colored by colors selected from a finite set . The four sides of a colored tile is clearly marked to be the up, down, left and right sides. Two colored tiles can be put in the plane next to each other if the two neighboring sides have the same color.
Tiling. Given a finite number of types of colored tiles, determine whether it is possible to cover the first quadrant of the plane by colored tiles of these types (with infinite supply of the tiles of each type), starting with a tile of type at the lower left corner (see Figure 5.6).
Figure 5.6: The problem Tiling (c 1, \ldots , c 4 denote four colors of tile t_{0}).
Show that the problem Tiling is undecidable.