PSPACE COMPLETENESS TBQF. THURSDAY April 17

Similar documents
COMPLEXITY THEORY. PSPACE = SPACE(n k ) k N. NPSPACE = NSPACE(n k ) 10/30/2012. Space Complexity: Savitch's Theorem and PSPACE- Completeness

Lecture 23: More PSPACE-Complete, Randomized Complexity

Lecture 22: PSPACE

Space Complexity. Huan Long. Shanghai Jiao Tong University

Lecture 20: PSPACE. November 15, 2016 CS 1010 Theory of Computation

Theory of Computation. Ch.8 Space Complexity. wherein all branches of its computation halt on all

Introduction to Computational Complexity

Theory of Computation Space Complexity. (NTU EE) Space Complexity Fall / 1

The space complexity of a standard Turing machine. The space complexity of a nondeterministic Turing machine

Computability and Complexity CISC462, Fall 2018, Space complexity 1

Notes on Complexity Theory Last updated: October, Lecture 6

SOLUTION: SOLUTION: SOLUTION:

Chapter 1 - Time and Space Complexity. deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE

Lecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ}

CSE200: Computability and complexity Space Complexity

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

1 PSPACE-Completeness

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

UNIT-IV SPACE COMPLEXITY

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

6.840 Language Membership

Computational Complexity IV: PSPACE

NP-Completeness. A language B is NP-complete iff B NP. This property means B is NP hard

CSCI 1590 Intro to Computational Complexity

Intro to Theory of Computation

6.841/18.405J: Advanced Complexity Wednesday, February 12, Lecture Lecture 3

Space is a computation resource. Unlike time it can be reused. Computational Complexity, by Fu Yuxi Space Complexity 1 / 44

Space Complexity. The space complexity of a program is how much memory it uses.

Time and space classes

15.1 Proof of the Cook-Levin Theorem: SAT is NP-complete

Answers to the CSCE 551 Final Exam, April 30, 2008

198:538 Complexity of Computation Lecture 16 Rutgers University, Spring March 2007

The Polynomial Hierarchy

Umans Complexity Theory Lectures

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

Complexity (Pre Lecture)

Interactive Proofs 1

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits

INAPPROX APPROX PTAS. FPTAS Knapsack P

6.045 Final Exam Solutions

Lecture 8: Complete Problems for Other Complexity Classes

Space Complexity. Master Informatique. Université Paris 5 René Descartes. Master Info. Complexity Space 1/26

CSE 135: Introduction to Theory of Computation NP-completeness

Time to learn about NP-completeness!

Lecture 11: Proofs, Games, and Alternation

CS311 Computational Structures. NP-completeness. Lecture 18. Andrew P. Black Andrew Tolmach. Thursday, 2 December 2010

Notes for Lecture 3... x 4

Time to learn about NP-completeness!

CS5371 Theory of Computation. Lecture 24: Complexity IX (PSPACE-complete, L, NL, NL-complete)

NP-Completeness. Sections 28.5, 28.6

Exam Computability and Complexity

CS154, Lecture 17: conp, Oracles again, Space Complexity

TIME COMPLEXITY AND POLYNOMIAL TIME; NON DETERMINISTIC TURING MACHINES AND NP. THURSDAY Mar 20

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

MTAT Complexity Theory October 20th-21st, Lecture 7

Chapter 9. PSPACE: A Class of Problems Beyond NP. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

Show that the following problems are NP-complete

Space and Nondeterminism

9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch

The Cook-Levin Theorem

PSPACE, NPSPACE, L, NL, Savitch's Theorem. More new problems that are representa=ve of space bounded complexity classes

Definition: Alternating time and space Game Semantics: State of machine determines who

Announcements. Friday Four Square! Problem Set 8 due right now. Problem Set 9 out, due next Friday at 2:15PM. Did you lose a phone in my office?

1 Deterministic Turing Machines

CS154, Lecture 13: P vs NP

6.5.3 An NP-complete domino game

Polynomial Time Computation. Topics in Logic and Complexity Handout 2. Nondeterministic Polynomial Time. Succinct Certificates.

Algorithm Design and Analysis

6.045J/18.400J: Automata, Computability and Complexity Final Exam. There are two sheets of scratch paper at the end of this exam.

Economics and Computation

Technische Universität München Summer term 2010 Theoretische Informatik August 2, 2010 Dr. J. Kreiker / Dr. M. Luttenberger, J. Kretinsky SOLUTION

Lecture 3 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Chapter 7: Time Complexity

Definition: conp = { L L NP } What does a conp computation look like?

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

1 Deterministic Turing Machines

Theory of Computation Time Complexity

CSCE 551 Final Exam, April 28, 2016 Answer Key

Polynomial time reduction and NP-completeness. Exploring some time complexity limits of polynomial time algorithmic solutions

Lecture 19: Finish NP-Completeness, conp and Friends

Lecture 19: Interactive Proofs and the PCP Theorem

Ταουσάκος Θανάσης Αλγόριθμοι και Πολυπλοκότητα II 7 Φεβρουαρίου 2013

Principles of Knowledge Representation and Reasoning

P vs. NP Classes. Prof. (Dr.) K.R. Chowdhary.

Applied Computer Science II Chapter 7: Time Complexity. Prof. Dr. Luc De Raedt. Institut für Informatik Albert-Ludwigs Universität Freiburg Germany

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

conp, Oracles, Space Complexity

COMPLEXITY THEORY. Lecture 17: The Polynomial Hierarchy. TU Dresden, 19th Dec Markus Krötzsch Knowledge-Based Systems

Lecture 1: Course Overview and Turing machine complexity

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes

Circuits. Lecture 11 Uniform Circuit Complexity

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Transcription:

PSPACE COMPLETENESS TBQF THURSDAY April 17

Definition: Language B is PSPACE-complete if: 1. B PSPACE 2. Every A in PSPACE is poly-time reducible to B (i.e. B is PSPACE-hard)

QUANTIFIED BOOLEAN FORMULAS (in prenex normal form) x y [ x y ] x [ x x ] x [ x ] x y [ (x y) ( x y) ] Allow constants, 0 and 1, eg. x [ 0 x ] Wlog can assume we have = and => (why?)

Definition: A fully quantified Boolean formula is a Boolean formula where every variable is quantified x y [ x y ] x [ x x ] x [ x ] x y [ (x y) ( x y) ] x y [ (x 0) ( x y) ]

TQBF = { φ φ is a true fully quantified Boolean formula} Theorem: TQBF is PSPACE-complete

T(φ): TQBF PSPACE 1. If φ has no quantifiers, then it is an expression with only constants. Evaluate φ. Accept iff φ evaluates to 1. 2. If φ = x ψ, recursively call T on ψ, first with x = 0 and then with x = 1. Accept iff either one of the calls accepts. 3. If φ = x ψ, recursively call T on ψ, first with x = 0 and then with x = 1. Accept iff both of the calls accept.

Claim: Every language A in PSPACE is polynomial time reducible to TQBF We build a poly-time reduction from A to TQBF The reduction turns a string w into a fully quantified Boolean formula φ that simulates the PSPACE machine for A on w Let M be a deterministic TM that decides A in space n k How do we know M exists?

A tableau for M on w is an table whose rows are the configurations of the computation of M on input w # q 0 w 1 w 2 w n # # # 2 O(nk ) # # n k

We design φ to encode a simulation of M on w φ will be true if and only if M accepts w Given two collections of variables denoted c and d representing two configurations and t > 0, we construct a formula φ c,d,t If we assign c and d to actual configurations, φ c,d,t will be true if and only if M can go from c to d in t steps We let φ = φ c, c, h, where h = 2 e s(n) for a start accept constant e chosen so that M has less than 2 e s(n) possible configurations on an input of length n Here s(n) = n k

We design φ to encode a simulation of M on w φ will be true if and only if M accepts w Given two collections of variables denoted c and d representing two configurations and t > 0, we construct a formula φ c,d,t If we assign c and d to actual configurations, φ c,d,t will say: there exists a configuration m such that φ c,m,t/2 is true and φ m,d,t/2 is true We let φ = φ c, c, h, where h = 2 e s(n) for a start accept constant e chosen so that M has less than 2 e s(n) possible configurations on an input of length n Here s(n) = n k

HIGH-LEVEL IDEA: Encode the Algorithm of Savitch s Theorem with a Quantified Boolean Formula If M uses n k space, then the QBF φ will have size O(n2k ) If we assign c and d to actual configurations, φ c,d,t will say: there exists a configuration m such that φ c,m,t/2 is true and φ m,d,t/2 is true We let φ = φ c, c, h, where h = 2 e s(n) for a start accept constant e chosen so that M has less than 2 e s(n) possible configurations on an input of length n Here s(n) = n k

To construct φ c,d,t use ideas of Cook-Levin plus Savitch: ach cell in a configuration is associated ith variables representing possible tape symbols and states. Each config has n k cells so and is encoded by O(n k ) variables. We will not have distinct variables for all cells (Why?)

If t = 0 or 1, we can easily construct φ c,d,t : φ c,d,t = c equals d OR d follows from c in a single step of M How do we express c equals d? Write a Boolean formula saying that each of the variables representing c is equal to the corresponding one in d d follows from c in a single step of M?

If t = 0 or 1, we can easily construct φ c,d,t : φ c,d,t = c equals d OR d follows from c in a single step of M How do we express c equals d? Write a Boolean formula saying that each of the variables representing c is equal to the corresponding one in d d follows from c in a single step of M? Use 2 x 3 windows as in the Cook-Levin theorem, and write a CNF formula that expresses that: the contents of each triple of c s cells correctly yieds the contents of thr corresponding triple of d s cells.

If t > 1, we construct φ c,d,t recursively: φ c,d,t = m [φ c,m,t/2 φ m,d,t/2 ] x 1 x 2 x L L= O(n k ) But how long is this formula? Every level of the recursion cuts t in half but roughly oubles the size of the formula (so back to length O(t)) So, we modify the formula to be: φ c,d,t = m a,b[ [(a,b)=(c,m) (a,b)=(m,d)] => [ φ a,b,t/2 ] ] This folds the 2 recursive sub-formulas into 1

φ c,d,t = m a,b[ [(a,b)=(c,m) (a,b)=(m,d)] =>[ φ a,b,t/2 ] ] Set φ = φ c, c, h where h = 2 d s(n) start accept Each recursive step adds a portion that is linear in the size of the configurations, so has size O(s(n)) Number of levels of recursion is log h = O(s(n)) Hence, the size of φ is O(s(n) 2 )

PSPACE is often called the class of games Formalizations of many popular games are PSPACE-Complete

THE FORMULA GAME (FG) is played between two players, E and A Given a fully quantified Boolean formula y x [ (x y) ( x y) ] E chooses values for variables quantified by A chooses values for variables quantified by Start at the leftmost quantifier E wins if the resulting formula is true A wins otherwise

FG = { φ Player E has a winning strategy in φ } Theorem: FG is PSPACE-Complete Proof: x y [ (x y) ( x y) ] x y [ x y ] FG = TQBF

GEOGRAPHY Two players take turns naming cities from anywhere in the world Each city chosen must begin with the same letter that the previous city ended with Cities cannot be repeated Austin Nashua Albany York Whoever cannot name any more cities loses

GENERALIZED GEOGRAPHY d b g a e i c h f

GG = { (G, a) Player 1 has a winning strategy for generalized geography played on graph G starting at node a } Theorem: GG is PSPACE-Complete

GG PSPACE WANT: Machine M that accepts (G,a) Player 1 has a winning strategy on (G, a) M(G, a): If a has no outgoing edges, reject. 1. Remove node a and all edges touching it to get to a new graph G 1 2. For each of the nodes a 1, a 2,, a k that a originally pointed at, recursively call M(G 1, a i ) 3. If all of these accept, Player 2 has a winning strategy, so reject. Otherwise, accept.

GG IS PSPACE-HARD We show that FG P GG We convert a formula φ into (G, a) such that: Player E has winning strategy in φ if and only if Player 1 has winning strategy in (G, a) For simplicity we assume φ is of the form: φ = x 1 x 2 x 3 x k [ψ] where ψ is in cnf. (Quantifiers alternate, and the last move is E s)

TRUE x 1 T a F FALSE x 1 x 2 x k (x 1 x 1 x 2 ) ( x 1 x 2 x 2 ) x 1 x 1 c 1 x 2 T F x 2 c 2 x 1 c x 2 x k T F x 2 c n

x 1 [ (x 1 x 1 x 1 ) ] TRUE a FALSE x 1 T F x 1 x 1 c 1 x 1 c

TRUE x 1 T a F FALSE x 1 x 2 x k (x 1 x 1 x 2 ) ( x 1 x 2 x 2 ) x 1 x 1 c 1 x 2 T F x 2 c 2 x 1 c x 2 x k T F x 2 c n

GG = { (G, a) Player 1 has a winning strategy for generalized geography played on graph G starting at node a } Theorem: GG is PSPACE-Complete

Question: Is Chess a PSPACE complete problem? No, because determining whether a player has a winning strategy takes CONSTANT time and space (OK, the constant is large ) But n x n GO, Chess and Checkers can be shown to be PSPACE-hard