Problem Set 2

Assigned: Thursday, Feb. 28, 2008
Due: Thursday, March 13, 2008

1.

In 1962, Tibor Rado defined , or the th “Busy Beaver shift number,” to be the maximum number of steps made by any -state Turing machine that eventually halts. Here a Turing machine has a two-way infinite tape with either or on each square, and all tape squares are initially set to . A “step” consists of writing a or to the current square, moving either left or right by one square, and either transitioning to a new state or halting (with all of these decisions determined by the current state together with the symbol on the current square).

(a) Show that .

(b) Show that . [Hint: Try various 2-state Turing machines until you find one that runs for 6 steps before halting.]

(c) Show that grows faster than any computable function. In other words, there is no computable function such that for all .

(d) Show that there is not even a computable function such that for infinitely many .

2.

Given a set of strings , we say is computable if there exists a Turing machine that, given as input a string , decides whether . We say is c.e. (for “computably enumerable”) if there exists a Turing machine that, when started on a blank tape, lists all and only the strings in . (Of course, if is infinite, then will take an infinite amount of time.)

(a) Let be the set of all Turing machines that halt when started on a blank tape. (Here each Turing machine is encoded as a binary string in some reasonable way.) Show that is c.e. [Note: In this and the following problems, you do not need to construct any Turing machines; just give a convincing argument.]

(b) Let be any c.e. set. Show that is computable given an oracle that, for any string , decides whether .

(c) Show that a set is computable if and only if and are both c.e. (Here is the complement of : that is, the set of all such that .)

3.

Given a formal system , recall that is a mathematical encoding of the claim that is consistent: in other words, that never proves both that a statement is true and that it’s false.

Consider the “self-hating system” : that is, plus the assertion of its own inconsistency. Show that if is consistent, then is an example of a formal system that is consistent but not sound. [Note: You can assume the Incompleteness Theorem.]

4.

Let a XOR-circuit of size be a circuit built entirely out of two-input XOR gates, which maps input bits to output bits. Also, call two circuits equivalent if they produce the same output whenever they’re given the same input.

(a) Show that, for every XOR-circuit of size , there’s an equivalent XOR-circuit with at most gates.

(b) Show that for every , there’s some XOR-circuit of size such that every equivalent XOR-circuit has gates.

5.

Suppose a Turing machine has internal states, and visits at most different tape squares. Prove an upper bound (in terms of and ) on the number of steps until halts (assuming it does halt).