Computer science Computational complexity: resources and classes Theorem
Time hierarchy theorem
Builds on Time complexityMultitape Turing machinePBig O notation
Statement
Let be time-constructible functions. Here is time-constructible when and the binary form of can be computed from in steps. Suppose that , in big O notation. Then where is the class of languages decided by deterministic multitape Turing machines in time .
Remarks
The proof is a diagonalization. A machine , on input , simulates the machine encoded by on input for about steps and answers the opposite. A universal machine simulates steps of any fixed multitape machine in steps. So every machine running in time is fully simulated on long enough inputs, and it cannot decide the same language as . Juris Hartmanis and Richard Stearns proved a first version of the theorem in 1965.
Consequence: P is strictly contained in EXPTIME, the class . Indeed . Time-constructibility cannot be dropped: the Borodin gap theorem gives computable with .
Going deeper
For a student
The theorem gives the separation , one of few known unconditional separations. It says nothing about P versus NP, since NP is defined by another resource, nondeterministic time. A version for nondeterministic time also holds, with a different and subtler proof. Diagonalization proofs of this kind relativize, which is why the same method cannot settle P versus NP.
Reading path
To understand this page from the ground up, read these 5 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Big O notation concept
- Multitape Turing machine concept
- P concept
- Time complexity concept
- Time hierarchy theorem statement
Further reading
About this page
| Tag | A6D1D67GHA |
|---|---|
| URI | m2://A6D1D67GHA |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 68Q15 |
| Status | This copy of the site has no build data. Run m2 status A6D1D67GHA. |
| About | Time complexity |
| Uses | Time complexity, Multitape Turing machine, P, Big O notation |
| Same as | |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.