NP-Completeness A problem is NP-complete if: It is in NP

Slides:



Advertisements
Similar presentations
Time Complexity P vs NP.
Advertisements

JAYASRI JETTI CHINMAYA KRISHNA SURYADEVARA
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
NP-Completeness: Reductions
NP-Completeness Lecture for CS 302. Traveling Salesperson Problem You have to visit n cities You want to make the shortest trip How could you do this?
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
The Theory of NP-Completeness
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
NP-Complete Problems Problems in Computer Science are classified into
1 Other Models of Computation. 2 Models of computation: Turing Machines Recursive Functions Post Systems Rewriting Systems.
Fall 2006Costas Busch - RPI1 More NP-complete Problems.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Costas Busch - LSU1 Time Complexity. Costas Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – Feb. 3, 2009 Instructor: Dr. Gautam Das notes by Walter Wilson.
CSC 413/513: Intro to Algorithms
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
NP-complete Languages
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Prof. Busch - LSU1 Busch Complexity Lectures: More NP-complete Problems.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
Prof. Busch - LSU1 Time Complexity. Prof. Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
Costas Busch - LSU 1 More NP-complete Problems. Costas Busch - LSU 2 Theorem: If: Language is NP-complete Language is in NP is polynomial time reducible.
The NP class. NP-completeness
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
Computational Complexity Theory
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
More NP-complete Problems
Time Complexity Costas Busch - LSU.
More NP-complete Problems
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Busch Complexity Lectures: Reductions
Reductions Costas Busch - LSU.
CS21 Decidability and Tractability
Intro to Theory of Computation
Other Models of Computation
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
More NP-complete Problems
Richard Anderson Lecture 25 NP-Completeness
Computational Complexity
Richard Anderson Lecture 28 NP-Completeness
Time Complexity We use a multitape Turing machine
Undecidable problems:
Prabhas Chongstitvatana
CS154, Lecture 13: P vs NP.
NP-completeness The Chinese University of Hong Kong Fall 2008
CSE 6408 Advanced Algorithms.
NP-Completeness Lecture for CS 302.
CSE 589 Applied Algorithms Spring 1999
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Lecture 23 NP-Hard Problems
Presentation transcript:

NP-Completeness A problem is NP-complete if: It is in NP Every NP problem is reduced to it (in polynomial time)

Observation: If we can solve any NP-complete problem in Deterministic Polynomial Time (P time) then we know:

Observation: If we prove that we cannot solve an NP-complete problem in Deterministic Polynomial Time (P time) then we know:

Cook’s Theorem: The satisfiability problem is NP-complete Proof: Convert a Non-Deterministic Turing Machine to a Boolean expression in conjunctive normal form

An NP-complete Language Cook-Levin Theorem: Language SAT (satisfiability problem) is NP-complete Proof: Part1: SAT is in NP (we have proven this in previous class) Part2: reduce all NP languages to the SAT problem in polynomial time Prof. Busch - LSU

Other NP-Complete Problems: The Traveling Salesperson Problem Vertex cover Hamiltonian Path All the above are reduced to the satisfiability problem

Observations: It is unlikely that NP-complete problems are in P The NP-complete problems have exponential time algorithms Approximations of these problems are in P

NP-complete Languages Prof. Busch - LSU

Polynomial Time Reductions Polynomial Computable function : There is a deterministic Turing machine such that for any string computes in polynomial time: Prof. Busch - LSU

is polynomial time reducible to language Definition: Language is polynomial time reducible to language if there is a polynomial computable function such that: Prof. Busch - LSU

Suppose that is polynomial reducible to . If then . Theorem: Suppose that is polynomial reducible to . If then . Proof: Let be the machine that decides in polynomial time Machine to decide in polynomial time: On input string : 1. Compute 2. Run on input 3. If acccept Prof. Busch - LSU

Example of a polynomial-time reduction: We will reduce the 3CNF-satisfiability problem to the CLIQUE problem Prof. Busch - LSU

Each clause has three literals 3CNF formula: literal clause Each clause has three literals Language: 3CNF-SAT ={ : is a satisfiable 3CNF formula} Prof. Busch - LSU

A 5-clique in graph Language: CLIQUE = { : graph contains a -clique} Prof. Busch - LSU

3CNF-SAT is polynomial time reducible to CLIQUE Theorem: 3CNF-SAT is polynomial time reducible to CLIQUE Proof: give a polynomial time reduction of one problem to the other Transform formula to graph Prof. Busch - LSU

Transform formula to graph. Example: Clause 2 Create Nodes: Clause 3 Clause 1 Clause 4 Prof. Busch - LSU

Add link from a literal to a literal in every other clause, except the complement Prof. Busch - LSU

Resulting Graph Prof. Busch - LSU

End of Proof The formula is satisfied if and only if the Graph has a 4-clique End of Proof Prof. Busch - LSU

NP-complete Languages We define the class of NP-complete languages Decidable NP NP-complete Prof. Busch - LSU

A language is NP-complete if: is in NP, and Every language in NP is reduced to in polynomial time Prof. Busch - LSU

If a NP-complete language is proven to be in P then: Observation: If a NP-complete language is proven to be in P then: Prof. Busch - LSU

Decidable NP P NP-complete ? Prof. Busch - LSU