Lecture 9: PSPACE. PSPACE = DSPACE[n O(1) ] = NSPACE[n O(1) ] = ATIME[n O(1) ]

Similar documents
CS601 DTIME and DSPACE Lecture 5. Time and Space functions: t,s : N N +

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

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

INAPPROX APPROX PTAS. FPTAS Knapsack P

Computability and Complexity CISC462, Fall 2018, Space complexity 1

Descriptive Complexity

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

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

Space and Nondeterminism

Time Complexity. Definition. Let t : n n be a function. NTIME(t(n)) = {L L is a language decidable by a O(t(n)) deterministic TM}

P versus NP: Approaches, Rebuttals, and Does It Matter?

CSCI 1590 Intro to Computational Complexity

Circuits. Lecture 11 Uniform Circuit Complexity

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

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

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

The Polynomial Hierarchy

-bit integers are all in ThC. Th The following problems are complete for PSPACE NPSPACE ATIME QSAT, GEOGRAPHY, SUCCINCT REACH.

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

Resource-Bounded Computation

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

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

CS151 Complexity Theory. Lecture 4 April 12, 2017

Lecture 22: PSPACE

Theory of Computation CS3102 Spring 2015 A tale of computers, math, problem solving, life, love and tragic death

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

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

More Complexity. Klaus Sutner Carnegie Mellon University. Fall 2017

Descriptive Complexity: An overview of the field, key results, techniques, and applications.

Parallelism and Machine Models

Algorithms & Complexity II Avarikioti Zeta

Complexity: Some examples

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

Umans Complexity Theory Lectures

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

1 PSPACE-Completeness

Lecture 8: Complete Problems for Other Complexity Classes

CSCI 1590 Intro to Computational Complexity

Introduction to Computational Complexity

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2.

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

6.045 Final Exam Solutions

Complexity Theory 112. Space Complexity

Lecture 21: Space Complexity (The Final Exam Frontier?)

Space Complexity. Huan Long. Shanghai Jiao Tong University

Notes on Complexity Theory Last updated: October, Lecture 6

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

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

SOLUTION: SOLUTION: SOLUTION:

Mm7 Intro to distributed computing (jmp) Mm8 Backtracking, 2-player games, genetic algorithms (hps) Mm9 Complex Problems in Network Planning (JMP)

Computational Complexity IV: PSPACE

CSE200: Computability and complexity Space Complexity

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018

Lecture 11: Proofs, Games, and Alternation

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

CS151 Complexity Theory

Lecture 9: Polynomial-Time Hierarchy, Time-Space Tradeoffs

satisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs

Polynomial Hierarchy

Lecture 3: Reductions and Completeness

Lecture 7: The Polynomial-Time Hierarchy. 1 Nondeterministic Space is Closed under Complement

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

NP Complete Problems. COMP 215 Lecture 20

CSC 5170: Theory of Computational Complexity Lecture 4 The Chinese University of Hong Kong 1 February 2010

Shamir s Theorem. Johannes Mittmann. Technische Universität München (TUM)

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

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

CS5371 Theory of Computation. Lecture 23: Complexity VIII (Space Complexity)

Computational Complexity

CSCI 1590 Intro to Computational Complexity

Computability and Complexity Theory: An Introduction

Advanced topic: Space complexity

Lecture 23: More PSPACE-Complete, Randomized Complexity

PSPACE COMPLETENESS TBQF. THURSDAY April 17

Complexity Classes V. More PCPs. Eric Rachlin

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

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

CSCI 1590 Intro to Computational Complexity

A.Antonopoulos 18/1/2010

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

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.

CS151 Complexity Theory. Lecture 1 April 3, 2017

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

Polynomial Space. The classes PS and NPS Relationship to Other Classes Equivalence PS = NPS A PS-Complete Problem

Umans Complexity Theory Lectures

About the relationship between formal logic and complexity classes

6.840 Language Membership

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

Lecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).

Time and space classes

Algorithm Design and Analysis

Introduction to Computational Complexity

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

Algorithmic Model Theory SS 2016

Lecture 22: Counting

Universal Algebra and Computational Complexity Lecture 1

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

COMP Analysis of Algorithms & Data Structures

ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017

Transcription:

Lecture 9: PSPACE PSPACE = DSPACE[n O(1) ] = NSPACE[n O(1) ] = ATIME[n O(1) ] PSPACE consists of what we could compute with a feasible amount of hardware, but with no time limit. PSPACE is a large and very robust complexity class. With polynomially many bits of memory, we can search any implicitly-defined graph of exponential size. This leads to complete problems such as reachability on exponentially-large graphs. We can search the game tree of any board game whose configurations are describable with polynomiallymany bits and which lasts at most polynomially many moves. This leads to complete problems concerning winning strategies. 1

PSPACE-Complete Problems Recall PSPACE = ATIME[n O(1) ] Recall QSAT, the quantified satisfiability problem. Proposition 9.1 QSAT is PSPACE-complete. Proof: We ve already seen that QSAT ATIME[n] PSPACE. QSAT is hard for ATIME[n k ]: Let M be an ATIME[n k ] TM, w an input, n = w Let M write down its n k alternating choices, c 1 c 2... c n k. Deterministic TM D evaluates the answer, i.e., for all inputs w, M(w) = 1 c 1 c 2 c n k (D(c, w) = 1) By Cook s Theorem reduction f : L(D) SAT: D(c, w) = 1 f(c, w) SAT Let the new boolean variables in f(c, w) be d 1... d t(n). M(w) = 1 c 1 c 2 c n k d 1... d t(n) (f(c, w)) QSAT 2

Geography is a two-person game. 1. E chooses the start vertex v 1. 2. A chooses v 2, having an edge from v 1 3. E chooses v 3, having an edge from v 2, etc. No vertex may be chosen twice. Whoever moves last wins. Texas Selma Amherst Africa Tulsa 3

Let GEOGRAPHY be the set of positions in geography games s.t. has a winning strategy. Proposition 9.2 GEOGRAPHY is PSPACE-complete. Proof: GEOGRAPHY PSPACE: search the polynomial-depth game tree. A polynomial-size stack suffices. Show: QSAT GEOGRAPHY a a Given formula, ϕ, build graph G ϕ s.t. chooses existential variables; chooses universal variables. (a v b) ϕ a b c [(a b) ( b c) (b c)] b b (b v c) c c (b v c) 4

Definition 9.3 A succinct representation of a graph is G(n, C, s, t) = (V, E, s, t) where C is a boolean circuit with 2n inputs and V = { w } w {0, 1} n E = { (w, w ) C(w, w ) = 1 } SUCCINCT REACH = { (n, C, s, t) G(n, C, s, t) REACH } Proposition 9.4 SUCCINCT REACH PSPACE Why? Remember Savitch s Thm: REACH NSPACE[log n] DSPACE[(log n) 2 ] SUCCINCT REACH NSPACE[n] DSPACE[n 2 ] PSPACE Proposition 9.5 SUCCINCT REACH is PSPACE-complete. Proof: Let M be a DSPACE[n k ] TM, input w, n = w M(w) = 1 CompGraph(M, w) REACH CompGraph(n, w) = (V, E, s, t) V = { ID = q, h, p q States(N), h n, p c n k } E = { (ID 1, ID 2 ) ID 1 (w) M s = initial ID t = accepting ID ID 2 (w) } 5

Succinct Representation of CompGraph(n, w): V = { ID = q, h, p q States(N), h n, p c n k} E = { (ID 1, ID 2 ) ID1 (w) M ID 2 (w) } Let V = {0, 1} c n k Build circuit C w : on input u, v V, accept iff u M v. M(w) = 1 G(c n k, C w, s, t) SUCCINCT REACH 6

The vertices of an alternating graph, G = (V, A, E), are split into: existential vertices and universal vertices. Def: vertex t is reachable from vertex s in G iff 1. s = t, or 2. s is existential and for some edge, s, a E, t is reachable from a, or, 3. s is universal and there is an edge leaving s and for all edges, s, a E, t is reachable from a. s E A t 7

Def: Let AREACH = { G = (V, A, E, s, t) t is reachable from s } Prop: AREACH is P complete. Proof: Think about it! (Very similar to the proof that REACH is NL complete.) Cor: CVP and MCVP are P complete. Proof: Easy to see that AREACH MCVP CVP. 8

co-r.e. complete Halt co-r.e. Arithmetic Hierarchy FO(N) r.e. complete FO (N) FO (N) Recursive r.e. Halt Primitive Recursive SO[2 no(1) ] EXPTIME QSAT PSPACE complete FO[2 no(1) ] SO[n O(1) ] PSPACE co-np complete SAT co-np SO PTIME Hierarchy SO NP complete SO NP co-np NP SAT FO[n O(1) ] FO(LFP) Horn- SAT P complete P FO[log O(1) n] truly NC FO[log n] feasible AC 1 FO(CFL) FO(TC) FO(DTC) FO(REGULAR) FO(COUNT) FO 2SAT NL comp. 2COLOR L comp. LOGTIME Hierarchy sac 1 NL L NC 1 ThC 0 AC 0 9