[关闭]
@740340735 2016-01-15T08:57:36.000000Z 字数 1451 阅读 647

Assignment 10

Automaton_Theory

陆一洲 5140309557


Problem 1
First, the formula can be written as where .
Second, we guess to be either true or false. Then we can determine wheter some other which is related to is true or false. We denote the set of come from as . Then we recursively guess the next which has not be determined, where we get . etc.
Third, we can go over the whole formula in to find out whether our guess is valid. If it comes to some both to be true by and to be false by , thenour guess is invalid.
Forth, for the worst case, i.e., there is no valid solution, we should run the Second and Third step for each . It costs time, thus the complexity is in polynomial time.

Problem 2
1.
By diagonalization, we suppose that the name of the th set is and . What we have to prove is that is a recursive set.
Now we contruct a TM to accept . For any input , we let simulate TM firstly. We can derive that it could be accepted or rejected by for the machine is recursive. So the machine accepts .
Thus, we cannot list names of all recursive sets if you require names to be Turing
machines that halt on all inputs.
2.
First, we list all the TM . We now construct a TM .
If halts on all inputs, then let stimulate on all inputs. If the does not halt on all inputs, we can find one , s.t. which simulates halts on and rejects others. Thus, halts on all inputs.
In all, we can list the names of all recursive sets if you allow names to be arbitrary
Turing machines.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注