Computational Complexity IV: PSPACE

Similar documents
Computational Complexity III: Limits of Computation

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

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

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

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

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

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

Lecture 22: PSPACE

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

Space Complexity. Huan Long. Shanghai Jiao Tong University

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

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

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

Lecture 23: More PSPACE-Complete, Randomized Complexity

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

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

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

Computability and Complexity CISC462, Fall 2018, Space complexity 1

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

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

INAPPROX APPROX PTAS. FPTAS Knapsack P

PSPACE COMPLETENESS TBQF. THURSDAY April 17

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

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

Lecture 11: Proofs, Games, and Alternation

Notes on Complexity Theory Last updated: October, Lecture 6

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

SOLUTION: SOLUTION: SOLUTION:

Introduction to Computational Complexity

Advanced Topics in Theoretical Computer Science

Time and space classes

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

Umans Complexity Theory Lectures

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

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

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

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

Algorithms & Complexity II Avarikioti Zeta

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

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

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

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

Resource-Bounded Computation

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

UNIT-IV SPACE COMPLEXITY

conp, Oracles, Space Complexity

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

Principles of Knowledge Representation and Reasoning

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

CSCI 1590 Intro to Computational Complexity

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

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

1 PSPACE-Completeness

NP and Computational Intractability

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan 9/6/2004. Notes for Lecture 3

Notes on Space-Bounded Complexity

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

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

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

Non-Deterministic Time

Space and Nondeterminism

6.840 Language Membership

CSCI 1590 Intro to Computational Complexity

NP-Completeness and Boolean Satisfiability

CS151 Complexity Theory. Lecture 14 May 17, 2017

Notes on Space-Bounded Complexity

Lecture 3. 1 Terminology. 2 Non-Deterministic Space Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, 2005.

CS151 Complexity Theory. Lecture 4 April 12, 2017

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

A.Antonopoulos 18/1/2010

Circuits. Lecture 11 Uniform Circuit Complexity

Lecture 5: The Landscape of Complexity Classes

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

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.

MTAT Complexity Theory October 13th-14th, Lecture 6

Comp487/587 - Boolean Formulas

Complexity Theory 112. Space Complexity

CSCI 1590 Intro to Computational Complexity

Deterministic Time and Space Complexity Measures

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

Notes for Lecture 3... x 4

Computability and Complexity Theory

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

CS151 Complexity Theory. Lecture 13 May 15, 2017

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

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

CSE200: Computability and complexity Space Complexity

NP-Completeness. Sections 28.5, 28.6

Lecture 8: Alternatation. 1 Alternate Characterizations of the Polynomial Hierarchy

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

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

Complexity: Some examples

Lecture 24: Randomized Complexity, Course Summary

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

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

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

P, NP, and Beyond. Hengfeng Wei. May 01 May 04, Hengfeng Wei P, NP, and Beyond May 01 May 04, / 29

6.045 Final Exam Solutions

CSE 105 Theory of Computation

Transcription:

Seminar on Theoretical Computer Science and Discrete Mathematics Aristotle University of Thessaloniki

Context 1 Section 1: PSPACE 2 3 4

Time Complexity Time complexity of DTM M: - Increasing function t: N Ð N such that for every input string x, Sx S = n, M(x) ends in B t(n) steps.

Time Complexity Time complexity of DTM M: - Increasing function t: N Ð N such that for every input string x, Sx S = n, M(x) ends in B t(n) steps. DTIME[t(n)] P: P is solved in O(t(n)) time

Complexity Class P Complexity Class P Complexity Class P is the set of decision problems that can be solved by a DTM in a polynomial time of steps. (there is a polynomial time algorithm)

Complexity Class P Complexity Class P Complexity Class P is the set of decision problems that can be solved by a DTM in a polynomial time of steps. (there is a polynomial time algorithm) Polynomial time: P kc0 DTIME n k

Time Complexity Space complexity of (multitape) DTM M: - Increasing function s: N Ð N such that for every input string x, Sx S = n, M(x) ends in B s(n) space.

Time Complexity Space complexity of (multitape) DTM M: - Increasing function s: N Ð N such that for every input string x, Sx S = n, M(x) ends in B s(n) space. DSPACE[s(n)] P: P is solved in O(s(n)) space

Complexity Class PSPACE Complexity Class PSPACE Complexity Class PSPACE is the set of decision problems that can be solved by a (multitape) DTM in a polynomial number of SPACEs on the tape.

Complexity Class PSPACE Complexity Class PSPACE Complexity Class PSPACE is the set of decision problems that can be solved by a (multitape) DTM in a polynomial number of SPACEs on the tape. Polynomial time: PSPACE kc0 DSPACE n k

Complexity Class PSPACE Complexity Class PSPACE Complexity Class PSPACE is the set of decision problems that can be solved by a (multitape) DTM in a polynomial number of SPACEs on the tape. Polynomial time: PSPACE kc0 DSPACE n k P b PSPACE

PSPACE 3-SAT: Given a set of clauses C 1,...,C k, each of length 3, over a set of variables X = x 1,...,x n, does there exist a satisfying truth assignment?

PSPACE 3-SAT: Given a set of clauses C 1,...,C k, each of length 3, over a set of variables X = x 1,...,x n, does there exist a satisfying truth assignment? 3-SAT > N P

PSPACE 3-SAT: Given a set of clauses C 1,...,C k, each of length 3, over a set of variables X = x 1,...,x n, does there exist a satisfying truth assignment? 3-SAT > N P 3-SAT > PSPACE

PSPACE 3-SAT: Given a set of clauses C 1,...,C k, each of length 3, over a set of variables X = x 1,...,x n, does there exist a satisfying truth assignment? 3-SAT > N P 3-SAT > PSPACE Proof (Idea): - Enumerate all 2 n possible truth assignments using counter. - Check each assignment to see if it satisfies all clauses.

Quantified satisfiability 3-SAT: Let ϕ(x 1,x 2,...,x n ) be a boolean 3-CNF formula. Is the following propositional formula true? x 1 x 2 x 3... x n ϕ(x 1,x 2,...,x n )

Quantified satisfiability 3-SAT: Let ϕ(x 1,x 2,...,x n ) be a boolean 3-CNF formula. Is the following propositional formula true? x 1 x 2 x 3... x n ϕ(x 1,x 2,...,x n ) QSAT(Quantified 3-SAT): Let ϕ(x 1,x 2,...,x n ) be a boolean 3-CNF formula. (assume n is odd) Is the following propositional formula true? x 1 x 2 x 3... x n ϕ(x 1,x 2,...,x n )

Quantified satisfiability QSAT(Quantified 3-SAT): Let ϕ(x 1,x 2,...,x n ) be a boolean 3-CNF formula. (assume n is odd) Is the following propositional formula true? x 1 x 2 x 3... x n ϕ(x 1,x 2,...,x n )

Quantified satisfiability QSAT(Quantified 3-SAT): Let ϕ(x 1,x 2,...,x n ) be a boolean 3-CNF formula. (assume n is odd) Is the following propositional formula true? x 1 x 2 x 3... x n ϕ(x 1,x 2,...,x n ) Intuition: Alice picks truth value for x 1, then Bob for x 2, then Alice for x 3 and so on. Can Alice satisfy ϕ no matter what Bob does?

Quantified satisfiability Example: ϕ(x 1,x 2,x 3 ) = (x 1 - x 2 - x 3 ), (x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ) x 1 x 2 x 3 ϕ(x 1,x 2,x 3 )

Quantified satisfiability Example: ϕ(x 1,x 2,x 3 ) = (x 1 - x 2 - x 3 ), (x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ) x 1 x 2 x 3 ϕ(x 1,x 2,x 3 ) YES (x 1 = 1)

Quantified satisfiability Example: ϕ(x 1,x 2,x 3 ) = (x 1 - x 2 - x 3 ), (x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ), ( x 1 - x 2 - x 3 ) x 1 x 2 x 3 ϕ(x 1,x 2,x 3 ) YES (x 1 = 1) Theorem QSAT > PSPACE

QSAT > PSPACE Idea: Divide and Conquer algorithm and something more! Proof:

QSAT > PSPACE Idea: Divide and Conquer algorithm and something more! Proof: Recursively try all possibilities. - Only need one bit of information from each subproblem. - Amount of space is proportional to depth of function call stack.

PSPACE - complete Complexity Class PSPACE - complete X > PSPACE - complete if: (i) X > PSPACE and (ii) Y > PSPACE, Y BP X.

Section 1: PSPACE PSPACE - complete Theorem Stockmeyer - Meyer (1973) QSAT > PSPACE - complete

Theorem Savitch Theorem Savitch (1970) If a NTM can solve a problem using f(n) space, an ordinary DTM can solve the same problem in the square of that space bound. For any function f > Ω(log(n)), NSPACE(f(n)) b DSPACE(ˆf ˆn 2 ).

PSPACE Theorem PSPACE = NPSPACE

PSPACE Theorem PSPACE = NPSPACE P b N P b PSPACE b EXPTIME

PSPACE Theorem PSPACE = NPSPACE P b N P b PSPACE b EXPTIME _ \_( )")_/ _ Open Problems: P c??? N P c??? PSPACE c??? EXPTIME

Generalized geography Geography: a children s game

Generalized geography Geography: Alice names capital city c of country she is in. Bob names a capital city c that starts with the letter on which c ends. Alice and Bob repeat this game until one player is unable to continue.

Generalized geography Geography: Alice names capital city c of country she is in. Bob names a capital city c that starts with the letter on which c ends. Alice and Bob repeat this game until one player is unable to continue. Does Alice have a forced win?

Generalized geography Geography on graphs: Given a directed graph G = (V, E) and a start node s, two players alternate turns by following, if possible, an edge out of the current node to an unvisited node.

Generalized geography Geography on graphs: Given a directed graph G = (V, E) and a start node s, two players alternate turns by following, if possible, an edge out of the current node to an unvisited node. Can first player guarantee to make the last legal move?

Generalized geography Players: A and B. A plays first.

Generalized geography Players: A and B. A plays first. GG = @G, sa S A has a winning strategy for the generalized geography game played on graph G starting at node s

Generalized geography Players: A and B. A plays first. GG = @G, sa S A has a winning strategy for the generalized geography game played on graph G starting at node s GG > PSPACE

Generalized geography Players: A and B. A plays first. GG = @G, sa S A has a winning strategy for the generalized geography game played on graph G starting at node s GG > PSPACE Proof (Idea):

Generalized geography Players: A and B. A plays first. GG = @G, sa S A has a winning strategy for the generalized geography game played on graph G starting at node s GG > PSPACE Proof (Idea): - polynomial space recursive algorithm win(g,s): determines if player A wins the game starting from s.

Generalized geography - If (s,v) in G, then return NO.

Generalized geography - If (s,v) in G, then return NO. - Else (s,v) edge in G, call win recursively in (G - s, v) and if some of them answers NO, then return YES else NO.

Generalized geography - If (s,v) in G, then return NO. - Else (s,v) edge in G, call win recursively in (G - s, v) and if some of them answers NO, then return YES else NO. Depth recursive: # rounds = n = # nodes of G

Generalized geography - If (s,v) in G, then return NO. - Else (s,v) edge in G, call win recursively in (G - s, v) and if some of them answers NO, then return YES else NO. Depth recursive: # rounds = n = # nodes of G Recursive stack: sequence of nodes that removed from the graph

Generalized geography GG > PSPACE - complete Proof (Idea):

Generalized geography GG > PSPACE - complete Proof (Idea): - QSAT BP GG

Generalized geography GG > PSPACE - complete Proof (Idea): - QSAT BP GG Input: Φ = x 1 x 2 x 3... x k ϕ(x 1,x 2,...,x k ), where ϕ = C 1,C 2,...,C m

Generalized geography GG > PSPACE - complete Proof (Idea): - QSAT BP GG Input: Φ = x 1 x 2 x 3... x k ϕ(x 1,x 2,...,x k ), where -Player A ( ) -Player B ( ) ϕ = C 1,C 2,...,C m

Generalized geography -We construct graph G with initial node s such that A wins the game starting from s iff Φ is true.

Generalized geography -We construct graph G with initial node s such that A wins the game starting from s iff Φ is true. -The graph has:

Generalized geography -We construct graph G with initial node s such that A wins the game starting from s iff Φ is true. -The graph has: a piece that corresponds to the quantified variables (players choose values)

Generalized geography -We construct graph G with initial node s such that A wins the game starting from s iff Φ is true. -The graph has: a piece that corresponds to the quantified variables (players choose values) a piece that corresponds to the clauses (control of quantified variables)

Generalized geography Each diamond structure corresponds to a quantified variable. Players take turns deciding paths at each branching node. If exists an unsatisfying clause, then B will choose an unsatisfying clause to win.

Generalized geography Example: Φ = x 1 x 2 x 3 ϕ(x 1,x 2,x 3 ) ϕ(x 1,x 2,x 3 ) = (x 1 - x 2 - x 1 ), (x 2 - x 2 - x 3 ), ( x 1 - x 2 - x 3 )

Generalized geography Example: Φ = x 1 x 2 x 3 ϕ(x 1,x 2,x 3 ) ϕ(x 1,x 2,x 3 ) = (x 1 - x 2 - x 1 ), (x 2 - x 2 - x 3 ), ( x 1 - x 2 - x 3 )

Other PSPACE - complete problems Í Tic-tac-toe (or noughts and crosses or Xs and Os)

Other PSPACE - complete problems Í 3D tic-tac-toe (or Qubic)

Other PSPACE - complete problems Í Hex

Other PSPACE - complete problems Í Five in a Row (or Gobang)

References J.Kleinberg, E.Tardos. Algorithm Design. Boston, Mass.: Pearson/Addison-Wesley, cop. 2006 J. E. Hopcroft and J. D. Ullman. Introduction to Automata Theory, Languages, and Computation. Boston: Addison-Wesley, c2001. C. H. Papadimitriou. Computational Complexity. Reading, Mass.: Addison-Wesley, 1994. M.R. Garey, D.S. Johnson: Computers and Intractability, W.H. Freeman & Co, 1979

Thank you!!!