Problem 1

Let the language be denoted by . I will show that . Since and , it will follow that and .

Suppose . Let be as described:

Note that is enumerated above in lex order. The language of is given by

where is a fixed subset of . If is finite, is a finite subset, in which case the above language is finite, and hence regular. If is infinite, is an infinite subset of . It is easily seen that this is not regular - the pumping lemma for regular languages tells us that the lengths of the words in the language must have an arithmetic subsequence, which contradicts the fact that the lengths of the words in the language must be a subsequence of the exponential sequence .


Problem 2

Part a

A deterministic linearly bounded automaton is a 9-tuple

where is a finite set of states, is the input alphabet, is the tape alphabet, is the left endmarker, is the right endmarker, is the start state, is the accept state, and is the reject state.

Initially, receives its input delimited by endmarkers on the tape as . The head starts on the leftmost square of the tape, that is, on . Note that does not contain the endmarker symbols. Once has started, the computation proceeds according to the transition function .

is constrained as follows: for all ,

for some . cannot write or to the tape in any other circumstance.

The computation continues until enters either the accept or reject states. If neither occurs, foes on forever.

A configuration of is represented by : is the tape content, is the current state, and the head location is the first symbol of .

Part b

The number of possible configurations is given by . There are strings of length over an alphabet of size , after discounting the endmarkers. For each such string, the head can be in any of locations, inclusive of the endmarkers, and the machine could be in any of its states.

Part c

If the LBA doesn’t halt within steps given an input of size , there must be a configuration which the machine occupies twice by the pigeonhole principle. Moreover, if is the sequence of configurations the machine occupies between occupying for the first and second time, it follows that the machine is not in a accept state in any of these configurations, since it would have halted if that were the case. Since the current configuration completely determines the sequence of future configurations the machine will attain, it follows that the machine will loop forever through the configurations . Thus, we only need to simulate an LBA for steps for an input of size to determine if it halts.

Part d

Let be any alphabet. Fix an enumeration of and of LBAs with input alphabet . Let .

is recursive. Here’s a total Turing machine which accepts :

Suppose an LBA recognizes . Let . If , , so must accept . However, that implies , a contradiction. On the other hand, if , we have , so and , also a contradiction. Thus, we conclude that is not accepted by any LBA.