Introduction to Theory of Computation (2)
Computability and Complexity
- Written
- Published
- Updated
Parts: 1 · 2
Part Two: Computablity Theory
Chapter Three: The Church-Turing Thesis
3.3 Turing Machine
A Turing machine is a 7-tuple , where , and are all finite sets, and
-
is the set of states
-
is the input alphabet not containing the blank symbol
-
is the tape alphabet, where and
-
is the transiton function
-
is the start states
-
is the accept state
-
is the reject state, where
As a Turing machine computes, changes occur in the current state, the current tape contents, and the current head location. A setting of these three items is called a configuration of the Turing machine.
3.5 Turing-recognizable
Call a language Turing-recognizable (or recursively enumerable language) if some Turing machine recognizes it.
3.6 Turing-decidable
Call a language Turing-decidable or simply decidable if some Turing machine decides it.
3.13 Theorem (Multitape Turing Machine)
Every multitape Turing machine has an equivalent single-tape Turing machine.
A multitape Turing machine is like an ordinary Turing machine with several tapes.
3.16 Theorem (Nondeterministic Turing Machine)
Every nondeterministic Turing machine has an equivalent deterministic Turing machine.
A nondeterministic Turing machine is defined in the expected way. At any point in a computation, the machine may proceed according to several possibilities. The transition function for a nondeterministic Turing machine has the form
3.21 Theorem
A language is Turing-recognizable if and only if some enumerator enumerates it.
Loosely defined, an enumerator is a Turing machine with an attached printer. The Turing machine can use that printer as an output device to print strings.
Church–Turing Thesis
Intuitive notion of algorithms equals Turing machine algorithms
Chapter Four: Decidablity
4.1 Theorem
is a decidable language.
Hence this theorem shows that the problem of testing whether a given finite automaton accepts a given string is decidable.
4.2 Theorem
is a decidable language.
4.3 Theorem
is a decidable language.
4.4 Theorem
is a decidable language.
4.5 Theorem
is a decidable language.
4.7 Theorem
is a decidable language.
4.8 Theorem
is a decidable language.
is NOT decidable
Next, we consider the problem of determining whether two context-free grammars generate the same language
However, it is NOT decidable.
4.9 Theorem
Every context-free language is decidable.
4.11 Theorem
is undecidable.
4.18 Corollary
Some languages are not Turing-recognizable.
4.22 Theorem
A language is decidable exactly when both it and its complement are Turing-recognizable.
Recall that the complement of a language is the language consisting of all strings that are not in the language.
Chapter Five: Reduciblity
5.1 Theorem
is undecidable
5.2 Theorem
is an undecidable language.
5.3 Theorem
is a undecidable.
We let be the problem of determining whether a given Turing machine has an equivalent finite automaton
5.4 Theorem
is undecidable.
5.5 Computation History
An accepting computation history for on is a sequence of configurations, , where is the start configuration of on , is an accepting configuration of , and each legally follows from according to the rules of .
Computation histories are finite sequences.
5.6 Linear Bounded Automaton
A linear bounded automaton is a restricted type of Turing machine wherein the tape head isn’t permitted to move off the portion of the tape containing the input. If the machine tries to move its head off either end of the input, the head stays where it is—in the same way that the head will not move off the left-hand end of an ordinary Turing machine’s tape.
Despite their memory constraint, linear bounded automata (LBAs) are quite powerful. For example, the deciders for all are LBAs. Every CFL can be decided by an LBA.
5.8 Lemma
Let M be an with states and symbols in the tape alphabet. There are exactly distinct configurations of for a tape of length .
5.9 Theorem
is decidable.
5.10 Theorem
is undecidable.
5.13 Theorem
is undecidable.
5.17 Computable Function
function is a computable function if some Turing machine , on every input , halts with just on its tape.
5.18 Mapping Reducible
Language is mapping reducible to language B, written , if there is a computable function , where for every ,
The function is called the reduction from to .
5.19 Theorem
If and is decidable, then is decidable.
5.23 Theorem
If and is Turing-recognizable, then is Turing-recognizable.
5.30 Theorem
is neither Turing-recognizable nor co-Turing-recognizable.
Chapter Six: Advanced Topics in Computability Theory
6.1 Lemma
There is a computable function , where if is any string, is the description of a Turing machine that prints out and then halts.
SELF-REFERENCE
Let’s begin by making a Turing machine that ignores its input and prints out a copy of its own description. We call this machine SELF.
6.3 Recursion Theorem
Let be a Turing machine that computes a functiont: . There is a Turing machine that computes a functionr :, where for every ,
For a turing machine T that can get as its input and then do some compute, can do the same thing. So this can do something with its own description.
The recursion theorem states that Turing machines can obtain their own description and then go on to compute with it.
6.6 Minimal TM
If is a Turing machine, then we say that the length of the description of is the number of symbols in the string describing . Say that is minimal if there is no Turing machine equivalent to that has a shorter description.
6.7 Theorem
is not Turing-recognizable.
6.8 Fixed Point Theorem
Let be a computable function. Then there is a Turing machine for which describes a Turing machine equivalent to . Here we’ll assume that if a string isn’t a proper Turing machine encoding, it describes a Turing machine that always rejects immediately.
In this theorem, plays the role of the transformation, and is the fixed point.
Model
A universe together with an assignment of relations to relation symbols is called a model. Formally, we say that a model is a tuple , where is the universe and through are the relations assigned to symbols through
Let be the sentence . Let model be the model whose universe is the natural numbers and that assigns the “less thanor equal” relation to the symbol
Thus, with model in mind, we could write as .
If M is a model, we let the theory of , written , be the collection of true sentences in the language of that model.
6.12 Theorem
is decidable.
6.14 Theorem
is undecidable.
6.3 Turing Reducibility
To be learned.
6.23 Minimal Description
Let be a binary string. The minimal description of , written , is the shortest string where TM on input halts with on its tape. If several such strings exist, select the lexicographically first among them. The descriptive complexity of , written , is
6.24 Theorem
This theorem says that the descriptive complexity of a string is at most a fixed constant more than its length. The constant is a universal one, not dependent on the string.
6.28 Incompressible
Let be a string. Say that is c-compressible if . If is not c-compressible, we say that is incompressible by c. If is incompressible by 1, we say that is incompressible.
6.29 Theorem
Incompressible strings of every length exist.
Part Three: Complexity Theory
Chapter Seven: Time Complexity
7.1 Time Complexity
Let be a deterministic Turing machine that halts on all inputs. The running time or time complexity of M is the function , where f(n) is the maximum number of steps that uses on any input of length . If is the running time of , we say that runs in time and that is an time Turing machine. Customarily we use to represent the length of the input.
7.7 Time Complexity Class
Let be a function. Define the time complexity class, , to be the collection of all languages that are decidable by an time Turing machine.
In fact, any language that can be decided in time on a single-tape Turing machine is regular.
7.8 Theorem
Let be a function, where . Then every time multitape Turing machine has an equivalent time single-tape Turing machine.
7.9 Nondeterministic Turing Machine Running Time
Let be a nondeterministic Turing machine that is a decider. The running time of is the function , where is them aximum number of steps that uses on any branch of its computation on any input of length , as shown in the following figure.
7.10 Theorem
Let be a function, where . Then every t(n) time nondeterministic single-tape Turing machine has an equivalent time deterministic single tape Turing machine.
7.12 Class P
P is the class of languages that are decidable in polynomial time on a deterministic single-tape Turing machine. In other words,
7.16 Theorem
Every context-free language is a member of P.
Hamiltonian Path
7.18 Verififier
A verifier for a language A is an algorithm V , where
We measure the time of a verifier only in terms of the length of , so a polynomial time verifier runs in polynomial time in the length of . A language A is polynomially verifiable if it has a polynomial time verifier.
7.19 Class NP
NP is the class of languages that have polynomial time verifiers.
7.20 Theorem
A language is in NP iff it is decided by some nondeterministic polynomial time Turing machine.
7.21
7.28 Polynomial Time Computable Function
A function is a polynomial time computable function if some polynomial time Turing machine exists that halts with just on its tape, when started on any input .
7.29 Polynomial time mapping reducible
Language is polynomial time mapping reducible, or simply polynomial time reducible, to language , written if a polynomial time computable function exists, where for every ,
The function is called the polynomial time reduction of to .
7.32 Theorem (To Be Proved)
is polynomial time reducible to .
7.34 NP-Completeness
A language is NP-complete if it satisfies two conditions:
- is in NP, and
- every in NP is polynomial time reducible to .
7.37 The Cook-Levin Theorem (To Be Proved)
is NP-complete.
Chapter Eight: Space Complexity
8.1 Space Complexity
Let be a deterministic Turing machine that halts on all inputs. The space complexity of is the function , where is the maximum number of tape cells that scans on any input of length . If the space complexity of is , we also say that runs in space .
If is a nondeterministic Turing machine wherein all branches halt on all inputs, we defifine its space complexity to be the maximum number of tape cells that scans on any branch of its computation for any input of length .
8.2 Space Complexity Classes
Let be a function. The space complexity classes, and , are defined as follows
8.5 Savitch’s Theorem
For any function , where , .
Savitch’s theorem shows that any nondeterministic TM that uses space can be converted to a deterministic TM that uses only space.
Comments
No approved comments yet.
Your display name and plain-text comment become public only after owner approval. No account or email is required.