complexity class
If is any function and is a Turing machine (of any kind) which halts on all inputs, we say that is time bounded by if for any input with length , halts after at most steps.
For a decision problem and a class of Turing machines, we say that if there is a Turing machine bounded by which decides . If is a search problem then if . The most common classes are all restricted to one read-only input tape and one output/work tape (and in some cases a one-way, read-only guess tape) and are defined as follows:
-
•
is the class of deterministic Turing machines. (In this case is written .)
-
•
is the class of non-deterministic Turing machines (and so is written ).
-
•
is the class of positive one-sided error Turing machines and the class of negative one-sided error machines
-
•
is the class of two-sided error machines
-
•
is the class of minimal error machines
-
•
is the class of zero error machines
Although is a time complexity class for any , in actual use time complexity classes are usually the union of for many . If is a class of functions then . Most commonly this is used when .
The most important time complexity classes are the polynomial classes:
When this is called just , the class of problems decidable in polynomial time. One of the major outstanding problems in mathematics is the question of whether .
We say a problem if there is a Turing machine which solves , always halts, and never uses more than cells of its output/work tape. As above, if is a class of function then
The most common space complexity classes are . When this is just called .
If is any complexity class then if is a decision problem and or is a search problem and . Of course, this coincides with the definition of above. Clearly .
Since a machine with a time complexity cannot possibly use more than cells, . If then and similarly for space.
The following are all trivial, following from the fact that some classes of machines accept and reject under stricter circumstances than others:
Title | complexity class |
---|---|
Canonical name | ComplexityClass |
Date of creation | 2013-03-22 13:01:59 |
Last modified on | 2013-03-22 13:01:59 |
Owner | Henry (455) |
Last modified by | Henry (455) |
Numerical id | 4 |
Author | Henry (455) |
Entry type | Definition |
Classification | msc 68Q15 |