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

Similar documents
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

Lecture 20: conp and Friends, Oracles in Complexity Theory

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

conp, Oracles, Space Complexity

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

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

1 Computational problems

Lecture 19: Finish NP-Completeness, conp and Friends

Lecture 7: Polynomial time hierarchy

The Polynomial Hierarchy

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

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

Notes on Complexity Theory Last updated: October, Lecture 6

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

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

Umans Complexity Theory Lectures

1 PSPACE-Completeness

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.

CS154, Lecture 13: P vs NP

Principles of Knowledge Representation and Reasoning

CS 6505, Complexity and Algorithms Week 7: NP Completeness

Lecture 3: Nondeterminism, NP, and NP-completeness

CS154, Lecture 13: P vs NP

CS 151 Complexity Theory Spring Solution Set 5

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

Lecture Notes 4. Issued 8 March 2018

Lecture 3: Reductions and Completeness

A.Antonopoulos 18/1/2010

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

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

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

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

DRAFT. Diagonalization. Chapter 4

Lecture 16: Time Complexity and P vs NP

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

6-1 Computational Complexity

1 From previous lectures

Complexity and NP-completeness

conp = { L L NP } (1) This problem is essentially the same as SAT because a formula is not satisfiable if and only if its negation is a tautology.

CSC 5170: Theory of Computational Complexity Lecture 5 The Chinese University of Hong Kong 8 February 2010

Lecture 4 : Quest for Structure in Counting Problems

CSE 135: Introduction to Theory of Computation NP-completeness

NP Completeness. Richard Karp, 1972.

BBM402-Lecture 11: The Class NP

Non-Deterministic Time

Lecture 26: Arthur-Merlin Games

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

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

Lecture 22: Counting

Chapter 7: Time Complexity

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

Computability Theory

Review of unsolvability

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

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

Lecture 23: Alternation vs. Counting

NP, polynomial-time mapping reductions, and NP-completeness

Essential facts about NP-completeness:

Lecture 23: Introduction to Quantum Complexity Theory 1 REVIEW: CLASSICAL COMPLEXITY THEORY

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

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

CS154, Lecture 10: Rice s Theorem, Oracle Machines

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

Review of Basic Computational Complexity

Notes on Complexity Theory Last updated: December, Lecture 2

NP-Completeness. NP-Completeness 1

1 Randomized complexity

Complexity Classes IV

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?

Polynomial Hierarchy

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

Notes for Lecture 3... x 4

NP Complete Problems. COMP 215 Lecture 20

CS5371 Theory of Computation. Lecture 19: Complexity IV (More on NP, NP-Complete)

Intro to Theory of Computation

1 Deterministic Turing Machines

Lecture 24: Approximate Counting

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

Advanced topic: Space complexity

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal?

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

Turing Machine Recap

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

IS VALIANT VAZIRANI S ISOLATION PROBABILITY IMPROVABLE? Holger Dell, Valentine Kabanets, Dieter van Melkebeek, and Osamu Watanabe December 31, 2012

Lecture 2: Relativization

Finish K-Complexity, Start Time Complexity

NP-Completeness. Until now we have been designing algorithms for specific problems

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

Lecture 2. 1 More N P-Compete Languages. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

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

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

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

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

P and NP. Or, how to make $1,000,000.

Welcome to... Problem Analysis and Complexity Theory , 3 VU

Lecture 18: PCP Theorem and Hardness of Approximation I

Umans Complexity Theory Lectures

Transcription:

80240233: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall 2007 16 October 2007 Instructor: Andrej Bogdanov Notes by: Jialin Zhang and Pinyan Lu In this lecture, we introduce the complexity class conp, the Polynomial Hierarchy and the notion of oracle. 1 The class conp The complexity class NP contains decision problems asking this kind of question: On input x, y : y = p( x ) s.t.v (x, y), where p is a polynomial and V is a relation which can be computed by a polynomial time Turing Machine (TM). Some examples: SAT: given boolean formula φ, does φ have a satisfiable assignment? MATCHING: given a graph G, does it have a perfect matching? Now, consider the opposite problems of SAT and MATCHING. UNSAT: given boolean formula φ, does φ have no satisfiable assignment? UNMATCHING: given a graph G, does it have no perfect matching? This kind of problems are called conp problems. Formally we have the following definition. Definition 1. For every L {0, 1}, we say that L conp if and only if L NP, i.e. L conp iff there exist a polynomial-time TM A and a polynomial p, such that x L y, y = p( x ) A(x, y) accepts. Then the natural question is how P, NP and conp relate. relationships. First we have the following trivial Theorem 2. P NP, P conp For instance, MATCHING conp. And we already know that SAT NP. Is SAT conp? If it is true, then we will have NP = conp. This is the following theorem. Theorem 3. If SAT conp, then NP = conp. 1

2 Proof. Take any L NP, we can reduce L to SAT. Since SAT conp, so there exists an conp algorithm for SAT. Therefore, there exists an conp algorithm for L. So L conp. So we proved that NP conp. For the other side, we have L conp L NP L conp L NP. The first and last steps use the definition of conp and the middle step use the result NP conp, which is proved above. To sum up, we complete the proof. 2 Polynomial Hierarchy Here we consider a new problem MIN-EQUIV. Given a boolean formula φ, is φ the smallest formula that computes the function φ? Formally, φ MIN-EQUIV φ < φ, x : φ (x) φ(x). The opposite problem of MIN-EQUIV is MIN-EQUIV. smaller formula that compute the function φ? Given a boolean formula φ, is there a There is no obvious notion of a certificate of membership. It seems that the way to capture such languages is to allow not only an exists quantifier (as in the definition of NP) or only a for all quantifier (as in the definition of conp). This motivates the following definition: Definition 4. Σ 2 is defined to be the class of decision problems for which there exists a polynomialtime TM A and a polynomial p such that x L y 1 y 2 A(x, y 1, y 2 ) accepts, where y 1 = p( x ), y 2 = p( x ). Π 2 is defined to be the class of decision problems for which there exists a polynomial-time TM A and a polynomial p such that x L y 1 y 2 A(x, y 1, y 2 ) accepts, where y 1 = p( x ), y 2 = p( x ). The polynomial hierarchy generalizes the definitions of NP, conp, Σ 2, Π 2. Definition 5. Σ k is defined to be the class of decision problems for which there exists a Polynomialtime TM A and a polynomial p such that x L y 1 y 2 / y k A(x, y 1, y 2,, y k ) accepts, where y i = p( x ), i = 1, k. Π k is defined to be the class of decision problems for which there exists a Polynomial-time TM A and a polynomial p such that x L y 1 y 2 / y k A(x, y 1, y 2,, y k ) accepts, where y i = p( x ), i = 1, k. The polynomial hierarchy is the class PH = i Σ i. There are some basic observations about polynomial hierarchy:

3 1. P = Σ 0 = Π 0 ; 2. NP = Σ 1, conp = Π 1 ; 3. P NP conp Σ 2, Π 2 Σ 3, Π 3 ; 4. L NP L conp; 5. L Σ k L Π k. 6. k, Σ k, Π k EXP. We believe but don t know how to prove that Σ k Σ k+1, Π k Π k+1, Σ k Π k and EXP Σ k, Π k for all k. There is a survey by Schaeffer and Umans[1, 2], which gives several nature complete problems for Σ 2, Σ 3, Π 2, Π 3. 3 Oracle Oracle is equivalent of subroutine in complexity theory. An oracle Turing Machine can be executed with access to a special tape, where they can make queries of the form is q L for some language L and get the answer in one step. That is, oracle gives us functionality what we do not know how to implement efficiently. Definition 6. P A is defined to be all decision problems decided by Polynomial-time oracle TM given access to oracle A. Definition 7. NP A is defined bo be all decision problems decided by Nondeterministic Polynomialtime oracle TM given access to oracle A. We already saw a special kind of oracle computation, namely a reduction. In a reduction the oracle is asked only one question, and the answer to this question is the output of the algorithm. In particular, if decision problem A reduces to B, then A P B. Let s play with oracles for a bit to get a feel about what they do: 1. What is P MATCHING? This is just P, since any call to the oracle can be simulated by the polynomial-time machine making the call. For the same reason NP MATCHING = NP. 2. How about P SAT? A polynomial-time machine with a SAT oracle can solve any NP question by Cook s theorem first reduce to SAT then ask the question. But it can also solve any conp question again, reduce to SAT, ask the question, then output the opposite answer. So we have P SAT NP, conp. 3. Since P SAT is more powerful than both NP and conp, how does it relate to Σ 2 and Π 2? The following theorem, implies that P SAT Σ 2 Π 2.

4 Theorem 8. NP SAT = Σ 2 Proof. Step 1: prove Σ 2 NP SAT. For any L Σ 2, there exists a polynomial time TM V such that x L y z V (x, y, z) accepts. We can think y part to be the nondeterministic tape of a NTM N. Once N guesses y, it has to determine whether z : V (x, y, z) accepts. We can ask SAToracle here, does there exists z, s.t.v (x, y, z) rejects? and output the opposite answer. Step 2: prove NP SAT Σ 2. For any L NP SAT, we are given an oracle Polynomial-time NTM N. We need to simulate N SAT by y, z, V (x, y, z) accepts. Nondeterministic tape of N is part of y in y of V. When N makes an oracle call Φ i, V keeps trace of Φ i, and guesses an answer a i to Φ i. In the end, V will check Yes answers(φ i SAT) and No answers (φ i UNSAT). To sum up, we can define the Σ 2 language as following: y a 1, a 2,, a k v 1, v 2, v k w 1, w 2,, w k V (x, y, a, v, w)accepts, where V (x, y, a, v, w) accepts if and only if the following two conditions satisfy: (1) given input x, nondeterministic tape y and the oracle s answer a, N(x, y, a) accepts; (2) a i is a correct answer of Φ i, which means that for every i, 1 i k, either a i = Yes and Φ i (v i ) = Yes or a i = No and Φ i (w i ) = No. This argument gives an alternate characterization of the polynomial hierarchy using oracle machines, and it can be extended to higher levels of the hierarchy too: 1. conp SAT = Π 2 ; 2. Σ k+1 = NP Σ k complete problem. Since Σ k SAT is complete for class Σ k, this means NP Σ ksat = Σ k+1. The following table summarizes some conjectures people believe and the fact people prove about polynomial hierarchy. P, NP, conp PH Believe P NP Σ k Σ k+1 for all k NP conp Σ k Π k for all k Fact P = NP P = conp Σ k = Σ k+1 Π k+1 = Σ k+1 = Π k = Σ k Theorem 9. P = NP Σ 2 = P

5 Proof. Take any L Σ 2. This means x L y z, V (x, y, z) Accepts. We define another language L : (x, y) L z, V (x, y, z ) accepts. So L conp. By the assumption P = NP, we have L P. This means there exists Polynomial-time TM V such that (x, y) L V (x, y) accepts. Then, x L y V (x, y) accepts. This means L NP = P. References [1] M. Schaeffer and C. Umans. Completeness in the Polynomial-Time Hierarchy: a compendium. SIGACT News. guest Complexity Theory column. September 2002. [2] M. Schaeffer and C. Umans. Completeness in the Polynomial-Time Hierarchy: Part II. SIGACT News. guest Complexity Theory column. December 2002.