POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

Similar documents
Lecture 23: More PSPACE-Complete, Randomized Complexity

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

1 PSPACE-Completeness

Umans Complexity Theory Lectures

Intro to Theory of Computation

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

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

Computability and Complexity CISC462, Fall 2018, Space complexity 1

PSPACE COMPLETENESS TBQF. THURSDAY April 17

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.

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

SOLUTION: SOLUTION: SOLUTION:

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

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

Computational Complexity IV: PSPACE

Lecture 19: Interactive Proofs and the PCP Theorem

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

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

Space Complexity. Huan Long. Shanghai Jiao Tong University

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

Lecture 22: PSPACE

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

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

Notes on Complexity Theory Last updated: October, Lecture 6

CSC 1700 Analysis of Algorithms: P and NP Problems

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?

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

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

CS151 Complexity Theory. Lecture 13 May 15, 2017

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

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

Algorithm Design and Analysis

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

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

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

Lecture 8: Complete Problems for Other Complexity Classes

Exam Computability and Complexity

Lecture 14: IP = PSPACE

Space and Nondeterminism

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

Time to learn about NP-completeness!

Computer Sciences Department

Algorithms & Complexity II Avarikioti Zeta

Lecture 11: Proofs, Games, and Alternation

INAPPROX APPROX PTAS. FPTAS Knapsack P

Computer Science 385 Analysis of Algorithms Siena College Spring Topic Notes: Limitations of Algorithms

Complexity Theory Part Two

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

Review of unsolvability

Time and space classes

Lecture 4 : Quest for Structure in Counting Problems

CSE200: Computability and complexity Space Complexity

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

Time to learn about NP-completeness!

Principles of Knowledge Representation and Reasoning

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine.

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

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39

Introduction to Computational Complexity

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

Computability and Complexity Theory: An Introduction

BBM402-Lecture 11: The Class NP

Tractability. Some problems are intractable: as they grow large, we are unable to solve them in reasonable time What constitutes reasonable time?

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

CSCI3390-Lecture 14: The class NP

Interactive Proofs. Merlin-Arthur games (MA) [Babai] Decision problem: D;

The Polynomial Hierarchy

NP-COMPLETE PROBLEMS. 1. Characterizing NP. Proof

Notes for Lecture 3... x 4

Introduction to Complexity Theory. Bernhard Häupler. May 2, 2006

1 More finite deterministic automata

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

CSCE 551 Final Exam, April 28, 2016 Answer Key

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

Lecture 26. Daniel Apon

Algebraic Dynamic Programming. Solving Satisfiability with ADP

CS151 Complexity Theory. Lecture 14 May 17, 2017

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

ECS 120 Lesson 24 The Class N P, N P-complete Problems

Umans Complexity Theory Lectures

6.045 Final Exam Solutions

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

A An Overview of Complexity Theory for the Algorithm Designer

CS Communication Complexity: Applications and New Directions

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

Computational Complexity of Bayesian Networks

Computational Complexity

Announcements. Problem Set 7 graded; will be returned at end of lecture. Unclaimed problem sets and midterms moved!

1 Primals and Duals: Zero Sum Games

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

Harvard CS 121 and CSCI E-121 Lecture 22: The P vs. NP Question and NP-completeness

1 Introduction Recently, there has been great progress in understanding the precision with which one can approximate solutions to NP-hard problems eci

CSE 135: Introduction to Theory of Computation NP-completeness

Limitations of Algorithm Power

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

Foundations of Query Languages

Lecture 7: Polynomial time hierarchy

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

NP-Completeness. Sections 28.5, 28.6

Transcription:

T-79.5103 / Autumn 2008 Polynomial Space 1 T-79.5103 / Autumn 2008 Polynomial Space 3 POLYNOMIAL SPACE Polynomial space cont d Polynomial space-bounded computation has a variety of alternative characterizations and natural complete problems. QSAT Games Verification Periodic Optimization (C. Papadimitriou: Computational Complexity, Chapter 19) Recall AP = ATIME(n k ) is a class of languages decided in polynomial time by alternating Turing machines. QSAT is AP-complete. Hence, AP = PSPACE Many other PSPACE-complete problems: games, decision making, interactive proofs, verification, periodic optimization,... T-79.5103 / Autumn 2008 Polynomial Space 2 T-79.5103 / Autumn 2008 Polynomial Space 4 QSAT QSAT (QBF): given a Boolean expression φ in CNF with variables x 1,...,x n, is there is a truth value for the variable x 1 such that for both truth values of x 2 there is a truth value for x 3 and so on up to x n, such that φ is satisfied by the overall truth assignment? Games QSAT is an example of a two-person game: two players: and players move alternatingly ( first) x 1 x 2 x 3 Q n x n φ QSAT is a generalization of the Σ i P-complete problem QSAT i. QSAT is PSPACE-complete. a move: determining the truth value of a variable tries to make the formula φ true and false. after n moves either or wins.

T-79.5103 / Autumn 2008 Polynomial Space 5 T-79.5103 / Autumn 2008 Polynomial Space 7 Games cont d Decision-making under uncertainty A game two players move alternatingly on a board. the number of moves is bounded by a polynomial in the size of the board In the end some positions are considered a win of one player and the rest of the other. Solution: a winning strategy (typically an exponential object). Examples: chess, checkers, Go, nim, tic-tac-toe... The task is to make repeatedly a decision followed by a random event and we wish to design a strategy that optimizes the outcome. A game against nature which plays at random. Finding a strategy that maximizes the probability of winning turns out to be computationally as hard as playing against an optimizing opponent. T-79.5103 / Autumn 2008 Polynomial Space 6 Games cont d T-79.5103 / Autumn 2008 Polynomial Space 8 How to separate computationally hard games from easy ones? Decision-making cont d Complexity theory cannot be used directly because games are played typically on a fixed size board. A possible solution: generalize the game to an arbitrary size board. GEOGRAPHY game: Two players: I and II and board G (graph). Move: select an unvisited neighbor of the current node. The first player that cannot continue loses. GEOGRAPHY: Given a graph G and a starting node 1, is it a win for I? GEOGRAPHY is PSPACE-complete. There is a version of satisfiability and a version of alternating Turing machines that capture decision making under uncertainty. SSAT (Stochastic satisfiability): given a Boolean expression φ, is there is a truth value for x 1 such that if the truth value of x 2 is selected at random, there is a truth value for x 3 and so on, such that the probability that φ is finally satisfied is greater than 1 2? x 1 Rx 2 x 3 Rx 4 prob[φ(x 1,...,x n ) = true] > 1/2 APP: languages decided by probabilistic alternating polynomial-time Turing machines. GO is PSPACE-complete

T-79.5103 / Autumn 2008 Polynomial Space 9 Decision-making cont d T-79.5103 / Autumn 2008 Polynomial Space 11 A probabilistic alternating polynomial-time Turing machine: a precise nondeterministic machine with uniformly two nondeterministic choices alternating between states in two disjoint sets K + and K MAX. M accepts x if for each K MAX state there is a choice of one of the two successors such that if we consider the resulting computation tree, a majority of the leaves is accepting. APP: languages decidable by APP machines. Interactive protocols cont d PP IP APP Shamir s theorem: IP = PSPACE PP = APP = IP = PSPACE APP = PSPACE SSAT is PSPACE-complete T-79.5103 / Autumn 2008 Polynomial Space 10 Interactive Protocols Interactive proof systems are closely related to bounded probabilistic alternating polynomial-time Turing machines (PP). PP machine: if x L, then for each K MAX state there is a choice of one of the two successors such that if we consider the resulting computation tree, 3/4 of the leaves are accepting in the resulting tree and if x L, then for all choices of successors in K MAX states at most 1/4 of the leaves are accepting in the resulting tree. T-79.5103 / Autumn 2008 Polynomial Space 12 Verification General questions about Turing machines are undecidable. Restrictions lead to decidable but often computationally challenging problems (PSPACE-hard). IN-PLACE ACCEPTANCE: given a deterministic TM M and an input x, does M accept x without ever leaving the x +1 first symbols of its string? IN-PLACE ACCEPTANCE is PSPACE-complete. IN-PLACE DIVERGENCE: given the description M of a deterministic TM, does M have a divergent computation that uses at most M symbols? IN-PLACE DIVERGENCE is PSPACE-complete.

T-79.5103 / Autumn 2008 Polynomial Space 13 T-79.5103 / Autumn 2008 Polynomial Space 15 Verification of Distributed Systems Distributed Systems Checking whether a design satisfies given specifications is often computationally challenging (PSPACE-hard). A system of communicating processes: ((V 1,E 1 ),...,(V n,e n ),P) where (V i,e i ) is a directed graph and P is a set of communication pairs {e j,e j } with e j E k,e j E l,k l. Deadlock: a system state s with no successors (no s such that (s,s ) T). Example. In the previous example the system state (r 2,s 3,u) is a deadlock. The set of possible system states: V = V 1 V n Transition relation T V V of the system: ((a 1,...,a n ),(b 1,...,b n )) T iff there are k,l such that k l,{(a k,b k ),(a l,b l )} P,a i = b i for all i {k,l}. Determining whether a system has a deadlock system state is NP-complete. Given a system and an initial state, determining whether the system has a deadlock system state reachable (in T) from the initial state is PSPACE-complete. Example. In the previous example the deadlock (r 2,s 3,u) is reachable from the system state (r 1,s 1,u). T-79.5103 / Autumn 2008 Polynomial Space 14 Example. Consider a distributed system ((V r,e r ),(V s,e s ),(V u,e u ),P) T-79.5103 / Autumn 2008 Polynomial Space 16 Periodic Optimization What happens if the input is periodic (infinite in both directions)? (x i y i+1 ) (x i y i ) (x i+1 y i+2 ) (x i+1 y i+1 ) which can be written succinctly as (x y +1 ) (x y). PERIODIC SAT is PSPACE-complete. PERIODIC GRAPH COLORING is PSPACE-complete. Notice that here a legal coloring is possible with 2 colors. [Papadimitriou, 1994]

T-79.5103 / Autumn 2008 Polynomial Space 17 Learning Objectives The class PSPACE. Typical complete problems for PSPACE. The relationship of PSPACE to other complexity classes.