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

Similar documents
Umans Complexity Theory Lectures

CS151 Complexity Theory

1 PSPACE-Completeness

A.Antonopoulos 18/1/2010

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.

The Polynomial Hierarchy

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

Circuits. Lecture 11 Uniform Circuit Complexity

Lecture 7: Polynomial time hierarchy

CS 151 Complexity Theory Spring Solution Set 5

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

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

Notes on Complexity Theory Last updated: October, Lecture 6

Foundations of Query Languages

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

Lecture 20: conp and Friends, Oracles in Complexity Theory

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

NP Completeness. Richard Karp, 1972.

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

CSE200: Computability and complexity Space Complexity

Notes on Computer Theory Last updated: November, Circuits

conp, Oracles, Space Complexity

Lecture 22: PSPACE

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

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

Introduction to Advanced Results

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

CS151 Complexity Theory. Lecture 4 April 12, 2017

CS151 Complexity Theory. Lecture 14 May 17, 2017

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

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

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

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

CS21 Decidability and Tractability

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

Lecture 23: More PSPACE-Complete, Randomized Complexity

Polynomial Hierarchy

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

Lecture 10: Boolean Circuits (cont.)

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

CS151 Complexity Theory. Lecture 1 April 3, 2017

Lecture 4. 1 Circuit Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz

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

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

Lecture 8: Complete Problems for Other Complexity Classes

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

Umans Complexity Theory Lectures

Lecture 4 : Quest for Structure in Counting Problems

INAPPROX APPROX PTAS. FPTAS Knapsack P

Lecture 11: Proofs, Games, and Alternation

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

Lecture 22: Counting

Review of Basic Computational Complexity

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

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

Umans Complexity Theory Lectures

Finish K-Complexity, Start Time Complexity

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

Algorithms & Complexity II Avarikioti Zeta

NP-Complete problems

Lecture 19: Finish NP-Completeness, conp and Friends

Principles of Knowledge Representation and Reasoning

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

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

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

Lecture 16: Time Complexity and P vs NP

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

Notes for Lecture 3... x 4

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

CSE 135: Introduction to Theory of Computation NP-completeness

ITCS:CCT09 : Computational Complexity Theory Apr 8, Lecture 7

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

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

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

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010

CMPT 710/407 - Complexity Theory Lecture 4: Complexity Classes, Completeness, Linear Speedup, and Hierarchy Theorems

Lecture 24: Randomized Complexity, Course Summary

NP-Completeness and Boolean Satisfiability

Space and Nondeterminism

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

15-855: Intensive Intro to Complexity Theory Spring Lecture 7: The Permanent, Toda s Theorem, XXX

CS154, Lecture 13: P vs NP

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

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

6-1 Computational Complexity

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

The complexity of SPP formula minimization

Lecture 3: Nondeterminism, NP, and NP-completeness

Non-Deterministic Time

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

Complexity Classes V. More PCPs. Eric Rachlin

Fixed-parameter tractable reductions to SAT. Vienna University of Technology

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

Computability and Complexity Theory: An Introduction

CS154, Lecture 13: P vs NP

Parallelism and Machine Models

Lecture 3: Reductions and Completeness

Theory of Computation

Algorithms as Lower Bounds

Transcription:

Oracle Turing Machines Nondeterministic OTM defined in the same way (transition relation, rather than function) oracle is like a subroutine, or function in your favorite PL but each call counts as single step e.g.: given 1, 2,, n are even # satisfiable? poly-time OTM solves with SAT oracle 3 Oracle Turing Machines Shorthand #1: applying oracles to entire complexity classes: complexity class C language A C A = {L decided by OTM M with oracle A with M in C} example: P SAT 4 Outline (Umans slides) Oracle Turing Machines The Polynomial-Time Hierarchy (PH) Quantified SAT Complete problems for classes in PH, PSPACE Oracle Turing Machines Oracle Turing Machine (OTM): multitape TM M with special query tape special states q?, q yes, q no on input x, with oracle language A M A runs as usual, except when M A enters state q? : y = contents of query tape y A transition to q yes y A transition to q no 2 1

The Polynomial-Time Hierarchy 0 = 0 = P 1 =P P 1 =NP 1 =conp 2 =P NP 2 =NP NP 2 =conp NP i+1 =P i i+i =NP i i+1 =conp i Polynomial Hierarchy PH = i i The Polynomial-Time Hierarchy 0 = 0 = P i+1 =P i i+i =NP i i+1 =conp i Example: MIN CIRCUIT: given Boolean circuit C, integer k; is there a circuit C of size at most k that computes the same function C does? MIN CIRCUIT 2 7 8 Oracle Turing Machines Shorthand #2: using complexity classes as oracles: OTM M complexity class C M C decides language L if for some language A C, M A decides L Both together: C D = languages decided by OTM in C with oracle language from D exercise: show P SAT = P NP The Polynomial-Time Hierarchy can define lots of complexity classes using oracles the following classes stand out they have natural complete problems they have a natural interpretation in terms of alternating quantifiers they help us state certain consequences and containments (more later) 6 5

Useful characterization Theorem: L i iff expressible as L = { x y, y x k, (x, y) R } where R i-1. Corollary: L i iff expressible as L = { x y, y x k, (x, y) R } where R i-1. Alternating quantifiers Nicer, more usable version: L i iff expressible as L = { x y 1 y 2 y 3 Qy i (x, y 1,y 2,,y i ) R } where Q= / if i even/odd, and R P L i iff expressible as L = { x y 1 y 2 y 3 Qy i (x, y 1,y 2,,y i ) R } where Q= / if i even/odd, and R P 11 12 The PH EXP PSPACE PSPACE: generalized geography, 2-person games 3rd level: V-C dimension 2nd level: MIN CIRCUIT, Succinct Set Cover, BPP 1st level: SAT, UNSAT, factoring, etc PH 3 3 3 2 2 2 NP conp P Useful characterization Recall: L NP iff expressible as L = { x y, y x k, (x, y) R } where R P. Corollary: L conp iff expressible as L = { x y, y x k, (x, y) R } where R P. 10 9

Complete problems Recall: MIN CIRCUIT: given Boolean circuit C, integer k; is there a circuit C of size at most k that computes the same function C does? { (C, k) C x ( C k and C (x) = C(x)) } Conclude: in 2 (open whether it is complete for 2 ) Complete problems three variants of SAT: QSAT i (i odd) = {3-CNFs (x 1, x 2,, x i ) for which x 1 x 2 x 3 x i (x 1, x 2,, x i ) = 1} QSAT i (i even) = {3-DNFs (x 1, x 2,, x i ) for which x 1 x 2 x 3 x i (x 1, x 2,, x i ) = 1 } QSAT = {3-CNFs for which x 1 x 2 x 3 Qx n (x 1, x 2,, x n ) = 1} 15 16 Alternating quantifiers Proof: ( ) induction on i base case: true for 1 =NP and 1 =conp consider L i : L = {x y 1 (x, y 1 ) R }, for R i-1 L = {x y 1 y 2 y 3 Qy i (x, y 1,y 2,,y i ) R} same argument for L i ( ) exercise. Alternating quantifiers Pleasing viewpoint: 2 3 2 2 NP conp const. # of alternations poly(n) alternations PSPACE PH i i 3 3 P 13 14

PH collapse recall: L i+1 iff expressible as L = { x y (x, y) R } where R i since i = i, R expressible as R = { (x,y) z((x, y), z) R } where R i-1 together: L = { x (y,z) (x, (y,z)) R } conclude L i Natural complete problems We now have versions of SAT complete for levels in PH, PSPACE Natural complete problems? PSPACE: games PH: almost all natural problems lie in the second level 19 20 QSAT is PSPACE-complete Theorem: QSAT is PSPACE-complete. Proof: in PSPACE: x 1 x 2 x 3 Qx n (x 1, x 2,, x n )? x 1 : for each x 1, recursively solve x 2 x 3 Qx n (x 1, x 2,, x n )? if encounter yes, return yes x 1 : for each x 1, recursively solve x 2 x 3 Qx n (x 1, x 2,, x n )? if encounter no, return no base case: evaluating a 3-CNF expression poly(n) recursion depth poly(n) bits of state at each level PH collapse Theorem: if i = i then for all j > i j = j = j = i the polynomial hierarchy collapses to the i-th level Proof: sufficient to show i = i+1 then i+1 = i = i = i+1 ; apply theorem again 17 18

Simpler version of MIN DNF Theorem (U): MIN DNF is 2 -complete. we ll consider a simpler variant: IRREDUNDANT: given DNF, integer k; is there a DNF consisting of at most k terms of computing same function does? Boolean circuits circuit C directed acyclic graph nodes: AND ( ); OR ( ); NOT ( ); variables x i x 1 x 2 x 3 x n C computes function f:{0,1} n {0,1} in natural way identify C with function f it computes 23 24 Natural complete problems MIN CIRCUIT good candidate, still open MIN DNF: given DNF, integer k; is there a DNF of size at most k computing same function does? example: x 1 x 2 x 3 x 1 x 2 x 3 x 4 Natural complete problems MIN CIRCUIT good candidate, still open MIN DNF: given DNF, integer k; is there a DNF of size at most k computing same function does? example: x 1 x 2 x 3 x 1 x 2 x 3 x 4 x 1 x 2 x 4 21 22

Connection to TMs TM M running in time t(n) decides language L can build circuit family {C n } that decides L size of C n = O(t(n) 2 ) Proof: CVAL construction Conclude: L P implies family of polynomial-size circuits that decides L Uniformity Strange aspect of circuit family: can encode (potentially uncomputable) information in family specification solution: uniformity require specification is simple to compute Definition: circuit family {C n } is logspace uniform iff TM M outputs C n on input 1 n and runs in O(log n) space 27 28 Boolean circuits size = # gates depth = longest path from input to output formula (or expression): graph is a tree every function f:{0,1} n {0,1} computable by a circuit of size at most O(n2 n ) ANDof n literals for each x such that f(x) = 1 OR of up to 2 n such terms Circuit families circuit works for specific input length we re used to f: * {0,1} circuit family : a circuit for each input length C 1, C 2, C 3, = {C n } {C n } computes f iff for all x C x (x) = f(x) {C n } decides L, where L is the language associated with f 25 26

Parallelism the NC ( Nick s Class ) Hierarchy (of logspace uniform circuits): NC k = O(log k n) depth, poly(n) size NC = k NC k captures efficiently parallelizable problems not realistic? overly generous OK for proving non-parallelizable 31 Uniformity Theorem: P = languages decidable by logspace uniform, polynomial-size circuit families {C n }. Proof: already saw ( ) ( ) on input x, generate C x, evaluate it and accept iff output = 1 Parallelism uniform circuits allow refinement of polynomial time: circuit C depth parallel time size parallel work 29 30