Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
PSPACE-complete
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Examples== {{Main|List of PSPACE-complete problems}} ===Formal languages=== Given a [[regular expression]] <math>R</math>, determining whether it generates every string over its alphabet is PSPACE-complete.{{r|hunt}} The first known PSPACE-complete problem was the [[word problem (computability)|word problem]] for [[deterministic computation|deterministic]] [[context-sensitive grammar]]s. In the word problem for context-sensitive grammars, one is given a set of grammatical transformations which can increase, but cannot decrease, the length of a sentence, and wishes to determine if a given sentence could be produced by these transformations. The technical condition of "determinism" (implying roughly that each transformation makes it obvious that it was used) ensures that this process can be solved in polynomial space, and {{harvtxt|Kuroda|1964}} showed that every (possibly non-deterministic) program computable in [[linear space]] could be converted into the parsing of a context-sensitive grammar, in a way which preserves determinism.{{r|kuroda}} In 1970, [[Savitch's theorem]] showed that PSPACE is closed under nondeterminism, implying that even non-deterministic context-sensitive grammars are in PSPACE.{{r|garey-johnson}} ===Logic=== A standard PSPACE-complete problem, used in many other PSPACE-completeness results, is the [[quantified Boolean formula problem]], a generalization of the [[Boolean satisfiability problem]]. The quantified Boolean formula problem takes as input a Boolean expression, with all of its variables quantified either universally or existentially, for example: <math display=block>\exists x_1 \, \forall x_2 \, \exists x_3 \, \forall x_4: (x_1 \lor \neg x_3 \lor x_4) \land (\neg x_2 \lor x_3 \lor \neg x_4).</math> The output of the problem is the value of the quantified expression. Finding this value is PSPACE-complete.{{r|garey-johnson}} ===Reconfiguration=== [[Reconfiguration]] problems concern the connectivity of a [[state space]] of solutions to a combinatorial problem. For instance, testing whether two 4-colorings of a graph can be connected to each other by moves that change the color of one vertex at a time, maintaining at each step a valid 4-coloring, is PSPACE-complete,{{r|boncer}} even though the same problem for 3-colorings can be solved in polynomial time.{{r|jkkpp}} Another family of reconfiguration problems, used similarly to quantified Boolean formulas as the basis for PSPACE-completeness proofs of many other problems in this area, involve [[nondeterministic constraint logic]], in which the states are [[Orientation (graph theory)|orientations]] of a constraint graph subject to certain constraints on how many edges must be oriented inwards at each vertex, and in which the moves from state to state reverse the orientation of a single edge.{{r|hearn-demaine}} ===Puzzles and games=== {{For|a list of games by completeness for PSPACE or other complexity classes|Game complexity}} The quantified Boolean formula problem can be interpreted as a game by two players, a verifier and a falsifier. The players make moves that fill in values for the quantified variables, in the order they are nested, with the verifier filling in existentially quantified variables and the falsifier filling in universally quantified variables; the game is won by the verifier if the filled-in formula becomes true, and by the falsifier otherwise. A quantified formula is true if and only if the verifier has a winning strategy. Similarly, the problem of determining the winner or loser of many other [[combinatorial game theory|combinatorial games]] turns out to be PSPACE-complete. Examples of games that are PSPACE-complete (when [[generalized game|generalized]] so that they can be played on an <math>n\times n</math> board) are the games [[Hex (board game)|Hex]] and [[Reversi]]. Some other generalized games, such as [[chess]], [[English draughts|checkers]] (draughts), and [[Go (board game)|Go]] are [[EXPTIME-complete]] because a game between two perfect players can be very long, so they are unlikely to be in PSPACE. But they will become PSPACE-complete if a polynomial bound on the number of moves is enforced.{{r|eppstein}} It is also possible for puzzles played by a single player to be PSPACE-complete. These often can be interpreted as reconfiguration problems,{{r|hearn-demaine}} and include the solitaire games [[Rush Hour (board game)|Rush Hour]], [[Mahjong solitaire|Mahjong]], [[Atomix (computer game)|Atomix]] and [[Sokoban]], and the [[mechanical computer]] [[Turing Tumble]].{{r|eppstein}} PSPACE-completeness is based on complexity as a function of the input size <math>n</math>, in the limit as <math>n</math> grows without bound. Puzzles or games with a bounded number of positions such as chess on a conventional <math>8\times 8</math> board cannot be PSPACE-complete, because they could be solved in constant time and space using a very large [[lookup table]]. To formulate PSPACE-complete versions of these games, they must be modified in a way that makes their number of positions unbounded, such as by playing them on an <math>n\times n</math> board instead. In some cases, such as for chess, these extensions are artificial.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)