Computer science Computational complexity: resources and classes Theorem
Savitch's theorem
Builds on Space complexityNondeterministic Turing machineNLPSPACE
Statement
Let be a function with for all . Suppose that is space-constructible, that is, the binary form of can be computed from in space. Then where and are the classes defined by space complexity of nondeterministic and deterministic Turing machines.
Remarks
Let be a nondeterministic Turing machine that uses space . On an input of length , it has at most configurations for some constant . The deterministic machine checks whether an accepting configuration can be reached from the start within steps. To test reachability within steps, it tries every middle configuration and tests both halves within steps, reusing the same space. The recursion has depth and each level stores one configuration of size , which gives space . Walter Savitch proved the theorem in 1970.
Consequences: NPSPACE, defined with nondeterministic machines in polynomial space, equals PSPACE, since the square of a polynomial is a polynomial. Also , where NL is the class NL.
Going deeper
For a student
The theorem is a statement about reachability in the configuration graph, solved by divide and conquer on the path length. It shows that polynomial space is the same with or without nondeterminism, so there is no space analogue of the P versus NP question at the polynomial level. Whether the square is needed is open; for example, it is unknown whether . The Immerman–Szelepcsényi theorem gives a different fact about nondeterministic space: it is closed under complement.
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
- NL concept
- Nondeterministic Turing machine concept
- PSPACE concept
- Space complexity concept
- Savitch's theorem statement
Where this leads
2 pages build on this one.
Further reading
About this page
| Tag | PFKWV5SFF5 |
|---|---|
| URI | m2://PFKWV5SFF5 |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 68Q15 |
| Status | This copy of the site has no build data. Run m2 status PFKWV5SFF5. |
| About | Space complexity |
| Uses | Space complexity, Nondeterministic Turing machine, NL, PSPACE |
| 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.