
What makes any NP-complete problem also a PSPACE problem?
For any f(n), DTIME(f(n)) ⊆ SPACE(f(n)). This is because if you run for f(n) steps you can write to at most f(n) locations. (The reverse, of course, is not true.) The same applies for nondeterministic machines: NTIME(f(n)) ⊆ NSPACE(f(n))
Savitch's theorem says that NSPACE(f(n)) = SPACE(f(n)^2), that we can can convert a nondeterministic machine into a determinstic one at a cost of squaring its space usage, at most.
If f(n) is a polynomial, then f(n)^2 is a polynomial too.
Any problem X in NP is, by definition, time-bounded by some polynomial f(n), so
X ∈ NTIME(f(n)),
X ∈ NSPACE(f(n))
X ∈ SPACE(f(n)^2)
X ∈ PSPACE
Therefore, any NP problem is in PSPACE (including the NP-complete ones.)
Originally answered on Quora: https://www.quora.com/What-makes-any-NP-complete-problem-also-a-PSPACE-problem-in-the-complexity-theory-field/answer/Mark-Gritter
Leave What makes any NP-complete problem also a PSPACE problem? to:
Read more #tcs posts
Best Posts From Mark Gritter
We have not curated any of markgritter's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Mark Gritter
- Week 3 at Hashicorp
- Existence properties for first-order number theory are all finitely checkable
- Job search notes
- Leaving Tintri
- Onigiri
- Is your coin flip irrational?
- Partitioning a set into lists
- Math is more than plugging in a formula, dammit
- Why are email pitches so bad?
- Steem account setup latency: 40 days