Additional Classes: co-NP class Krishna Mahesh Deevela Murali.

Slides:



Advertisements
Similar presentations
1 Nondeterministic Space is Closed Under Complement Presented by Jing Zhang and Yingbo Wang Theory of Computation II Professor: Geoffrey Smith.
Advertisements

CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
The class NP Section 7.3 Giorgi Japaridze Theory of Computability.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
Complexity class NP Is the class of languages that can be verified by a polynomial-time algorithm. L = { x in {0,1}* | there exists a certificate y with.
Lecture 21 Nondeterministic Polynomial time, and the class NP FIT2014 Theory of Computation Monash University Faculty of Information Technology Slides.
Having Proofs for Incorrectness
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
Computability and Complexity 14-1 Computability and Complexity Andrei Bulatov Cook’s Theorem.
Computability and Complexity 13-1 Computability and Complexity Andrei Bulatov The Class NP.
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
March 2, 2015CS21 Lecture 231 CS21 Decidability and Tractability Lecture 23 March 2, 2015.
CS21 Decidability and Tractability
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
NP-Complete Problems Problems in Computer Science are classified into
Submitted by : Estrella Eisenberg Yair Kaufman Ohad Lipsky Riva Gonen Shalom.
NP-Completeness NP-Completeness Graphs 4/17/2017 4:10 AM x x x x x x x
CS 310 – Fall 2006 Pacific University CS310 P vs NP the steel cage death match Section 7.2 November 29, 2006.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
Chapter 11: Limitations of Algorithmic Power
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
Computability and Complexity 17-1 Computability and Complexity Andrei Bulatov Strong NP-Completeness.
Complements of Languages in NP Osama Awwad Department of Computer Science Western Michigan University July 13, 2015.
Halting Problem. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have a tool that would warn us.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
Theory of Computing Lecture 19 MAS 714 Hartmut Klauck.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Definition: Let M be a deterministic Turing Machine that halts on all inputs. Space Complexity of M is the function f:N  N, where f(n) is the maximum.
The Complexity of Primality Testing. What is Primality Testing? Testing whether an integer is prime or not. – An integer p is prime if the only integers.
Complexity theory and combinatorial optimization Class #2 – 17 th of March …. where we deal with decision problems, finite automata, Turing machines pink.
Review Byron Gao. Overview Theory of computation: central areas: Automata, Computability, Complexity Computability: Is the problem solvable? –solvable.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
1 1. Draw the machine schema for a TM which when started with input 001 halts with abbb on the tape in our standard input format. 2. Suppose you have an.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
NP-COMPLETENESS PRESENTED BY TUSHAR KUMAR J. RITESH BAGGA.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
The Class NP Lecture 39 Section 7.3 Mon, Nov 26, 2007.
Umans Complexity Theory Lectures Lecture 1a: Problems and Languages.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-complete Problems Prof. Sin-Min Lee Department of Computer Science.
NP-completeness Class of hard problems. Jaruloj ChongstitvatanaNP-complete Problems2 Outline  Introduction  Problems and Languages Turing machines and.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 7 Time Complexity Some slides are in courtesy.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
Chapter 15 P, NP, and Cook’s Theorem. 2 Computability Theory n Establishes whether decision problems are (only) theoretically decidable, i.e., decides.
NP-complete Languages
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Decidability Decidable/Undecidable problems. Jaruloj Chongstitvatana Decidability2 Accepting: Definition Let T = (Q, , , , s) be a TM. T accepts.
Complexity ©D.Moshkovitz 1 Our First NP-Complete Problem The Cook-Levin theorem A B C.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
Probabilistic Algorithms
CSC 4170 Theory of Computation The class NP Section 7.3.
Umans Complexity Theory Lectures
The Polynomial Hierarchy Enumeration Problems 7.3.3
Instructor: Aaron Roth
Theory of Computability
Presentation transcript:

Additional Classes: co-NP class Krishna Mahesh Deevela Murali

The class P  A language L (equivalently decision problem) is in the class P if there is a polynomial time algorithm A for deciding L;  Given a string x, A correctly decides if x ∈ L and running time of A on x is polynomial in |x|, the length of x.  Given a context-free grammar and a string, can that string be generated by that grammar?

The Class NP  Nondeterministic polynomial-time  Language L is in NP if there is a non-deterministic polynomial time algorithm A (Turing Machine) that decides L.  For x ∈ L, A has some non-deterministic choice of moves that will make A accept x  For x ∉ L, no choice of moves will make A accept x  L has an efficient certifier C(.,.)

Complement Class  In general, if C is a complexity class  co-C is the complement class, containing all complements of languages in C  L  C implies (  * - L)  co-C  (  * - L)  C implies L  co-C  Given a decision problem X, its complement X is the collection of all instances s such that s ∉ L(X)

P is closed under complementation  Decision problem X is in P if and only if X is in P.  If X is in P let A be a polynomial time algorithm for X.  Construct polynomial time algorithm A’ for X as follows: given input x, A’, A runs on x and if A accepts x, A’ rejects x and if A rejects x then A’ accepts x.  Only if direction is essentially the same argument.

Co-P = P  Given a polynomial-time TM M for L, we can modify M to accept the complement of L as follows:  Make each accepting state of M a nonaccepting state from which there are no moves. Thus, if M accepts, the new TM (L) will halt without accepting.  Create a new state q, which is the only accepting state in the new TM. For each state-symbol combination that has no move, the new TM enters state q, where upon it accepts and halts.

Co-NP  Co-NP is the set of languages whose complements are in NP  Co-NP is the class of all decision problems X such that X ∈ NP.  Ex: UnSAT, No-Hamiltonian-Cycle, No-3-Colorable.  If L is a language in co-NP then that there is a polynomial time certifier/verifier C(.,.) such that:  for s ∉ L there is a proof t of size polynomial in |s| such that C(s,t) correctly says NO  for s ∈ L there is no proof t for which C(s,t) will say NO  co-NP – the collection of languages with succinct certificates of disqualification

NP ∩ co-NP  Efficient certifiers for yes-instances  Efficient disqualifiers for no-instances  Consider the decision problem PRIME:  Given a number x, is it prime?  This problem is in co-NP.  ∀ y(y < x → (y = 1 ∨ ¬(div(y, x))))

NP ∩ co-NP (Contd..)  Another way of putting this is that Composite is in NP.  Pratt (1976) showed that PRIME is in NP, by exhibiting succinct certificates of primality based on:  A number p > 2 is prime if, and only if, there is a number r, 1 < r < p, such that r p-1 = 1 mod p and r (p − 1/q) ≠ 1 mod p for all prime divisors q of p − 1  This proves there is a class NP ∩ Co-NP NPCo-NPNP ∩ Co-NP

NP ∩ co-NP (Contd..)  In 2002, Agrawal, Kayal and Saxena showed that PRIME is in P. Proof is excluded… Now we get doubt that P=Np ∩ Co-NP.. Yes that’s right.  Since every language in P has its complement also in P, this complement is also in NP  None NP complete problems have complements in NP & none NP complete has problems in Co-NP  If P=NP, then all three classes are same

Suspected Relationship Between Co-NP and Other Classes of Languages Complements of NP Complete NP Complete There are examples on problems in CO-NP ∩ NP but not ∉ P Ex: Parity games, Stochastic Games, Lattice Problems P Co NP NP

Suspected Relationship Between Co-NP and Other Classes of Languages Contd..  Consider the complement of the language SAT, which is a member of co-NP, USAT (unsatisfiable).  The strings in USAT include all those strings that code Boolean expressions that are unsatisfiable  Also in USAT are those strings that do not code valid Boolean expressions, because none of those strings are SAT  USAT is not in NP but there is no proof USAT, Invalid Boolean Exp SAT

Suspected Relationship Between Co-NP and Other Classes of Languages Contd..  Tautology Problem is in CoNP but not in NP, TAUT  The set of all coded boolean expressions that are tautologies; i.e., they are true for every truth assignment  Expression E is a tautology if and only if (not E) is unsatisfiable, i.e when E ∈ TAUT, (not E) is in USAT and ViseVersa  USAT also contains strings that do not represent valid expressions, while all strings in TAUT are valid expressions.

NP-complete Problems and Co-NP  Assume NP and co-NP equal, but large than P.  The fact that we have not been able to find even one NP- complete problem whose complement is in NP is strong evidence that NP ≠Co-NP P NP & Co-NP

NP-complete Problems and Co-NP  Theorem NP=co-NP if and only if the complement of some NP-complete problem is in NP  (Only if): Should NP and Co-NP be the same  Every NP-complete problem L, being in NP, is also in co-NP  The complement of a problem in Co-NP is in NP  the complement of L is in NP  (If)  Let P be an NP-complete problem and P’ is in NP  For each L in NP, there is a polynomial-time reduction of L to P  Similarly polynomial reducible to L ’  P ’ is in NP  P= NP = co-NP  P ≠ NP ∩ co-NP = NP = co-NP  P ≠ NP ∩ co-NP ≠ NP ≠ co-NP

References  notes.pdf notes.pdf  e9.pdf e9.pdf  conp/ conp/  09/material/conp.pdf 09/material/conp.pdf