Polynomial Hierarchy

Similar documents
The Polynomial Hierarchy

Algorithms & Complexity II Avarikioti Zeta

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

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

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

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

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

Non-Deterministic Time

1 PSPACE-Completeness

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

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

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

Lecture 3: Reductions and Completeness

Review of Basic Computational Complexity

Better Time-Space Lower Bounds for SAT and Related Problems

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

Lecture 7: Polynomial time hierarchy

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

Lecture 22: PSPACE

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.

NP-completeness was introduced by Stephen Cook in 1971 in a foundational paper.

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

Time-Space Tradeoffs for SAT

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

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

Lecture 11: Proofs, Games, and Alternation

Notes on Complexity Theory Last updated: October, Lecture 6

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007

CSE200: Computability and complexity Space Complexity

DRAFT. Diagonalization. Chapter 4

Umans Complexity Theory Lectures

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

Resource-Bounded Computation

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

Lecture 10: Boolean Circuits (cont.)

Time-Space Lower Bounds for the Polynomial-Time Hierarchy on Randomized Machines

conp, Oracles, Space Complexity

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

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

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

CSCI 1590 Intro to Computational Complexity

CS 151 Complexity Theory Spring Solution Set 5

Parallelism and Machine Models

The Cook-Levin Theorem

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

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

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

Principles of Knowledge Representation and Reasoning

NP Complete Problems. COMP 215 Lecture 20

1 Non-deterministic Turing Machine

Computational Complexity Theory

1 From previous lectures

Does the Polynomial Hierarchy Collapse if Onto Functions are Invertible?

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

A Short History of Computational Complexity

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

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}

Beyond NP: The Work and Legacy of Larry Stockmeyer

6-1 Computational Complexity

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

Computational Complexity: A Modern Approach. Draft of a book: Dated January 2007 Comments welcome!

INAPPROX APPROX PTAS. FPTAS Knapsack P

Computational Complexity: A Modern Approach. Draft of a book: Dated January 2007 Comments welcome!

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

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

: On the P vs. BPP problem. 30/12/2016 Lecture 12

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

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

Computability and Complexity CISC462, Fall 2018, Space complexity 1

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

2 P vs. NP and Diagonalization

Logarithmic space. Evgenij Thorstensen V18. Evgenij Thorstensen Logarithmic space V18 1 / 18

Lecture 20: conp and Friends, Oracles in Complexity Theory

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

CS 6505, Complexity and Algorithms Week 7: NP Completeness

6.045 Final Exam Solutions

Lecture 17. In this lecture, we will continue our discussion on randomization.

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).

CSCI 1590 Intro to Computational Complexity

CSC 5170: Theory of Computational Complexity Lecture 9 The Chinese University of Hong Kong 15 March 2010

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

A.Antonopoulos 18/1/2010

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

Exponential time vs probabilistic polynomial time

Lecture 59 : Instance Compression and Succinct PCP s for NP

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

Computability and Complexity Theory: An Introduction

Advanced topic: Space complexity

Lecture 19: Finish NP-Completeness, conp and Friends

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

A note on parallel and alternating time

Lecture 22: Counting

Notes on Computer Theory Last updated: November, Circuits

Finish K-Complexity, Start Time Complexity

Alternation Trading Proofs and Their Limitations

Limitations of Efficient Reducibility to the Kolmogorov Random Strings

LOGIC PROPOSITIONAL REASONING

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

Chapter 7: Time Complexity

Transcription:

Polynomial Hierarchy

A polynomial-bounded version of Kleene s Arithmetic Hierarchy becomes trivial if P = NP. Karp, 1972 Computational Complexity, by Fu Yuxi Polynomial Hierarchy 1 / 44

Larry Stockmeyer and Albert Meyer introduced polynomial hierarchy. 1. Larry Stockmeyer and Albert Meyer. The Equivalence Problem for Regular Expressions with Squaring Requires Exponential Space. SWAT 72. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 2 / 44

Synopsis 1. Meyer-Stockmeyer s Polynomial Hierarchy 2. Stockmeyer-Wrathall Characterization 3. Chandra-Kozen-Stockmeyer Theorem 4. Infinite Hierarchy Conjecture 5. Time-Space Trade-Off Computational Complexity, by Fu Yuxi Polynomial Hierarchy 3 / 44

Meyer-Stockmeyer s Polynomial Hierarchy Computational Complexity, by Fu Yuxi Polynomial Hierarchy 4 / 44

Problem Beyond NP Meyer and Stockmeyer observed that MINIMAL does not seem to have short witnesses. MINIMAL = {ϕ ϕ DNF DNF ψ. ψ < ϕ u. (ψ(u) ϕ(u))}. Notice that MINIMAL can be solved by an NDTM that queries SAT a polynomial time. Why DNF? Computational Complexity, by Fu Yuxi Polynomial Hierarchy 5 / 44

P C = A C P A, NP C = A C NP A. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 6 / 44

Meyer-Stockmeyer s Definition The complexity classes Σ p i, Πp i, p i are defined as follows: Σ p 0 = P, Σ p i+1 = NP Σp i, p i+1 = P Σp i, Π p i = Σ p i. The following hold: Σ p i p i+1 Σp i+1, Π p i p i+1 Πp i+1. Notice that Π p i+1 = conpσp i by definition. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 7 / 44

The polynomial hierarchy is the complexity class PH = i 0 Σp i. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 8 / 44

Natural Problem in the Second Level Synthesizing circuits is exceedingly difficult. It is even more difficult to show that a circuit found in this way is the most economical one to realize a function. The difficulty springs from the large number of essentially different networks available. Umans showed in 1998 that the following language is Σ p 2 -complete. Claude Shannon, 1949 MIN-EQ-DNF = { ϕ, k ϕ DNF DNF ψ. ψ k u.ψ(u) ϕ(u)}. MIN-EQ-DNF is the problem referred to by Shannon. The complexity of MINIMAL, as well as MINIMAL, is not known. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 9 / 44

Natural Problem in the Second Level SUCCINCT SET COVER: Given a set S = {ϕ 1,..., ϕ m } of 3-DNF s and an integer k, is there a subset S {1,..., m} of size at most k such that i S ϕ i is a tautology? This is another Σ p 2-complete problem. 1. C. Umans. The Minimum Equivalent DNF Problem and Shortest Implicants. JCSS, 597-611, 2001. Preliminary version in FOCS 1998. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 10 / 44

Natural Problem in the Second Level EXACT INDSET refers to the following problem: { G, k the largest independent sets of G are of size k}. It is in p 2 and is DP-complete. L DP if L = L 0 L 1 for some L 0 NP and some L 1 conp. Clearly NP, conp DP. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 11 / 44

Stockmeyer-Wrathall Characterization Computational Complexity, by Fu Yuxi Polynomial Hierarchy 12 / 44

In 1976, Stockmeyer defined Polynomial Hierarchy in terms of alternation of quantifier and Wrathall proved that it is equivalent to the original definition. 1. Larry Stockmeyer. The Polynomial-Time Hierarchy. Theoretical Computer Science, 3:1-22, 1976. 2. Celia Wrathall. Complete Sets and the Polynomial-Time Hierarchy. Theoretical Computer Science. 3:23-33, 1976. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 13 / 44

Logical Characterization The following result generalizes the logical characterization of NP problems. Theorem. Suppose i 1. L Σ p i iff there exists a P-time TM M and a polynomial q such that for all x {0, 1}, x L iff u 1 {0, 1} q( x ) u 2 {0, 1} q( x )... Q i u i {0, 1} q( x ).M(x, ũ) = 1. L Π p i iff there exists a P-time TM M and a polynomial q such that for all x {0, 1}, x L iff u 1 {0, 1} q( x ) u 2 {0, 1} q( x )... Q i u i {0, 1} q( x ).M(x, ũ) = 1. 1. Celia Wrathall. Complete Sets and the Polynomial-Time Hierarchy. Theoretical Computer Science. 3:23-33, 1976. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 14 / 44

Proof of Wrathall Theorem Let M be a P-time TM and q a polynomial such that x L if and only if u 1 {0, 1} q( x )... Qu i+1 {0, 1} q( x ).M(x, u 1,..., u i+1 ) = 1. Given x an NDTM guesses a u 1 and asks if the following is true u 2 {0, 1} q( x )... Qu i+1 {0, 1} q( x ).M(x, u 1,..., u i+1 ) = 1. By induction hypothesis the above formula can be evaluated by querying a Σ p i oracle. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 15 / 44

Proof of Wrathall Theorem Let L be decided by a P-time NDTM N with access to some oracle A Σ p i. Now by Cook-Levin Theorem, x L if and only if z. c 1,..., c m, a 1,..., a k. u 1,..., u k.(n accepts x using choices c 1,..., c m and answers a 1,..., a k to the queries u 1,..., u k ) ( i [k] a i = 1 u i A) ( i [k] a i = 0 u i A), where z are introduced by the Cook-Levin reduction. We are done by induction. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 16 / 44

Σ i SAT Let Σ i SAT be the subset of TQBF that consists of all tautologies of the following form u 1 u 2... Q i u i.ϕ(u 1,..., u i ), where ϕ(u 1,..., u i ) is a propositional formula. Theorem (Meyer and Stockmeyer, 1972). Σ i SAT is Σ p i -complete. Proof. Clearly Σ i SAT Σ p i. The completeness is defined with regards to Karp reduction. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 17 / 44

Theorem (Stockmeyer, Wrathall, 1976). PH PSPACE. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 18 / 44

Chandra-Kozen-Stockmeyer Theorem Computational Complexity, by Fu Yuxi Polynomial Hierarchy 19 / 44

Ashok Chandra, Dexter Kozen and Larry Stockmeyer introduced Alternating Turing Machines that give alternative characterization of complexity classes. 1. Alternation. Journal of the ACM, 28(1):114-133, 1981. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 20 / 44

Alternating Turing Machine An Alternating Turing Machine (ATM) is an NDTM in which every state is labeled by an element of {,, accept, halt}. We say that an ATM A accepts x if there is a subtree Tr of the execution tree of A(x) satisfying the following: The initial configuration is in Tr. All leaves of Tr are labeled by accept. If a node labeled by is in Tr, both children are in Tr. If a node labeled by is in Tr, one of its children is in Tr. NDTM s are ATM s. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 21 / 44

Complexity via ATM For every T : N N, we say that an ATM A runs in T (n)-time if for every input x {0, 1} and for all nondeterministic choices, A halts after at most T ( x ) steps. ATIME(T (n)) contains L if there is a ct (n)-time ATM A for some constant c such that, for all x {0, 1}, x L if and only if A(x) = 1. ASPACE(S(n)) is defined analogously. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 22 / 44

Example of ATM TQBF is solvable by an ATM in quadratic time and linear space. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 23 / 44

Complexity Class via ATM AL = ASPACE(log n), AP = c>0 ATIME(n c ), APSPACE = c>0 ASPACE(n c ), AEXP = c>0 ATIME(2 nc ), AEXPSPACE = c>0 ASPACE(2 nc ). Computational Complexity, by Fu Yuxi Polynomial Hierarchy 24 / 44

Theorem. Assume the relevant time/space functions are constructible. Then 1. NSPACE(S(n)) ATIME(S 2 (n)). 2. ATIME(T (n)) SPACE(T (n)). 3. ASPACE(S(n)) c>0 TIME(cS(n) ). 4. TIME(T (n)) ASPACE(log T (n)). 1. Savitch s proof. Recursive calls are implemented using -state. We need to assume that S(n) is constructible in S(n) 2 time. 2. Traversal of configuration tree. Counters of length T (n). We need to assume that T (n) is also space constructible. 3. Depth first traversal of configuration graph. 4. Backward guessing ( ) and parallel checking ( ) in the configuration circuit. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 25 / 44

Chandra-Kozen-Stockmeyer Theorem AL AP APSPACE AEXP... = = = =... L P PSPACE EXP EXPSPACE... Computational Complexity, by Fu Yuxi Polynomial Hierarchy 26 / 44

Bounded Alternation L Σ i TIME(T (n))/π i TIME(T (n)) if L is accepted by an O(T (n))-time ATM A with q start labeled by /, and on every path the machine A may alternate at most i 1 times. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 27 / 44

Polynomial Hierarchy Defined via ATM Theorem. For every i 1, the following hold: Σ p i = c>0 Σ i TIME(n c ), Π p i = c>0 Π i TIME(n c ). Use the logical characterization. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 28 / 44

Infinite Hierarchy Conjecture Computational Complexity, by Fu Yuxi Polynomial Hierarchy 29 / 44

Theorem. If NP = P then PH = P. Suppose Σ p i = P. Then Σ p i+1 = NPΣp i = NP P = NP = P. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 30 / 44

Theorem (Meyer and Stockmeyer, 1972). For every i 1, if Σ p i = Π p i then PH = Σ p i. Suppose Σ p k = Πp k. Then Σp k+1 = Σp k = Πp k = Πp k+1. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 31 / 44

Theorem. If there exists a language L that is PH-complete with regards to Karp reduction, then some i exists such that PH = Σ p i. If such a language L exists, then L Σ p i PH is Karp reducible to L. for some i. Consequently every language in Computational Complexity, by Fu Yuxi Polynomial Hierarchy 32 / 44

Theorem. If PH = PSPACE, then PH collapses. If PH = PSPACE, then TQBF would be PH-complete. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 33 / 44

Infinite Hierarchy Conjecture. Polynomial Hierarchy does not collapse. Many results in complexity theory take the following form If something is not true, then the polynomial hierarchy collapses. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 34 / 44

Time-Space Trade-Off Computational Complexity, by Fu Yuxi Polynomial Hierarchy 35 / 44

To summarize our current understanding of NP-completeness from an algorithmic point of view, it suffices to say that at the moment we cannot prove either of the following statements: SAT / TIME(n), SAT / SPACE(log n). Computational Complexity, by Fu Yuxi Polynomial Hierarchy 36 / 44

We can however prove that SAT cannot be solved by any TM that runs in both linear time and logspace. Notationally, SAT / TISP(n, log n). Computational Complexity, by Fu Yuxi Polynomial Hierarchy 37 / 44

TISP Suppose S, T : N N. A problem is in TISP(T (n), S(n)) if it is decided by a TM that on every input x takes at most O(T ( x )) time and uses at most O(S( x )) space. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 38 / 44

Time-Space Tradeoff for SAT Theorem. SAT / TISP(n 1.1, n 0.1 ). We show that NTIME(n) TISP(n 1.2, n 0.2 ), which implies the theorem for the following reason: 1. Using Cook-Levin reduction a problem L NTIME(n) is reduced to a formula, every bit of the formula can be computed in logarithmic space and polylogarithmic time. 2. If SAT TISP(n 1.1, n 0.1 ), then F could be computed in TISP(n 1.1 polylog(n), n 0.1 polylog(n)). 3. But then one would have L TISP(n 1.2, n 0.2 ). The proof of NTIME(n) TISP(n 1.2, n 0.2 ) is given next. The Cook-Levin reduction makes use of the configuration circuit. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 39 / 44

TISP(n 12, n 2 ) Σ 2 TIME(n 8 ). Suppose L is decided by M using n 12 time and n 2 space. Given input x a node of G M,x is of length O(n 2 ). x L iff C accept can be reached from C start in n 12 steps. There is such a path iff there exist n 6 nodes C 1,..., C n 6, whose total length is O(n 8 ), such that, for all i {1,..., n 6 }, C i can be reached from C i 1 in O(n 6 )-steps. The latter condition can be verified in O(n 6 log n)-time by resorting to a universal machine. It is now easy to see that L Σ 2 TIME(n 8 ). Computational Complexity, by Fu Yuxi Polynomial Hierarchy 40 / 44

If NTIME(n) TIME(n 1.2 ) then Σ 2 TIME(n 8 ) NTIME(n 9.6 ). Suppose L Σ 2 TIME(n 8 ). Then some c, d and (O(n 8 ))-time TM M exist such that x L iff u {0, 1} c x 8. v {0, 1} d x 8.M(x, u, v) = 1. (1) Given M one can design a linear time NDTM N that given x u returns 1 iff v {0, 1} d x 8.M(x, u, v) = 0. By assumption there is some O(n 1.2 )-time TM D such that D(x, u) = 1 iff v {0, 1} d x 8.M(x, u, v) = 0. Consequently D(x, u) = 1 iff v {0, 1} d x 8.M(x, u, v) = 1. It follows that there is an O(n 9.6 ) time NDTM C such that C(x) = 1 iff u {0, 1} c x 8.D(x, u) = 1 iff (1) holds iff x L, implying that L NTIME(n 9.6 ). Computational Complexity, by Fu Yuxi Polynomial Hierarchy 41 / 44

NTIME(n) TISP(n 1.2, n 0.2 ), hypothesis NTIME(n 10 ) TISP(n 12, n 2 ) NTIME(n 10 ) Σ 2 TIME(n 8 ), alternation introduction NTIME(n 10 ) NTIME(n 9.6 ), alternation elimination, but NTIME(n 9.6 ) NTIME(n 10 ), Hierarchy Theorem. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 42 / 44

Proof by Indirect Diagonalization Suppose we want to prove NTIME(n) TISP(T (n), S(n)). 1. Assume NTIME(n) TISP(T (n), S(n)). 2. Derive unlikely inclusions of complexity classes. Introduce alternation to speed up space bound computation. Eliminate alternation using hypothesis. 3. Derive a contradiction using a diagonalization argument. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 43 / 44

Lance Fortnow proved the first time-space lower bound. A survey on the time-space lower bounds for satisfiability is given by Dieter van Melkebeek. 1. Lance Fortnow. Time-Space Tradeoffs for Satisfiability. Journal of Computer and System Sciences, 60:337-353, 2000. 2. Dieter van Melkebeek. A Survey of Lower Bounds for Satisfiability and Related Problems. Foundations and Trends in Theoretical Computer Science, 2:197-303, 2007. Computational Complexity, by Fu Yuxi Polynomial Hierarchy 44 / 44