Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness.

Slides:



Advertisements
Similar presentations
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Advertisements

Lecture 23. Subset Sum is NPC
NP-Completeness: Reductions
More NP-completeness Sipser 7.5 (pages ). CS 311 Fall NP’s hardest problems Definition 7.34: A language B is NP-complete if 1.B ∈ NP 2.A≤
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
More NP-completeness Sipser 7.5 (pages ).
CS21 Decidability and Tractability
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
Reduction Techniques Restriction Local Replacement Component Design Examples.
Transitivity of  poly Theorem: Let ,  ’, and  ’’ be three decision problems such that   poly  ’ and  ’  poly  ’’. Then  poly  ’’. Proof:
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Fall 2006Costas Busch - RPI1 More NP-complete Problems.
Time Complexity.
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Black-box (oracle) Feed me a weighted graph G and I will tell you the weight of the max-weight matching of G.
Clique Cover Cook’s Theorem 3SAT and Independent Set
February 25, 2015CS21 Lecture 211 CS21 Decidability and Tractability Lecture 21 February 25, 2015.
Computability and Complexity 17-1 Computability and Complexity Andrei Bulatov Strong NP-Completeness.
NP-Completeness: 3D Matching
Complexity 2-1 Problems and Languages Complexity Andrei Bulatov.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Lecture 22 More NPC problems
CSEP 521 Applied Algorithms Richard Anderson Lecture 10 NP Completeness.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
NP-complete Problems SAT 3SAT Independent Set Hamiltonian Cycle
Prabhas Chongstitvatana1 NP-complete proofs The circuit satisfiability proof of NP- completeness relies on a direct proof that L  p CIRCUIT-SAT for every.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
1 Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Additional NP-complete problems
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
1.1 Chapter 3: Proving NP-completeness Results Six Basic NP-Complete Problems Some Techniques for Proving NP-Completeness Some Suggested Exercises.
1 Suppose I construct a TM M f which: 1. Preserves its input u. 2. Simulates a machine M b on input ε. 3. If M b hangs on input ε, force an infinite loop.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Computability and Complexity 2-1 Problems and Languages Computability and Complexity Andrei Bulatov.
NPC.
CSC 413/513: Intro to Algorithms
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.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
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.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-Complete and NP-hard Problems
More NP-complete problems
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Lecture 2-2 NP Class.
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
Richard Anderson Lecture 26 NP-Completeness
CS21 Decidability and Tractability
Computability and Complexity
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
Richard Anderson Lecture 28 NP-Completeness
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Hamiltonian Circuit (HC) problem
Lecture 23 NP-Hard Problems
Presentation transcript:

Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness

Computability and Complexity 16-2 NP-Completeness of SubsetSum Instance: A sequence of positive integers and a target integer t. Question: Is there a subset T  S such that ? SubsetSum Step 1: The problem SubsetSum is in NP : the set T is the certificate

Computability and Complexity 16-3 Step 2: To show that SubsetSum is NP-complete we shall reduce Satisfiability to SubsetSum Given a formula  with clauses Choose t so that T must contain exactly one of each pair and at least one from each clause This construction can be carried out in polynomial time For each clause of length create integers For each variable X create 2 integers and

Computability and Complexity 16-4 Example Construction = = 010 = = 001 = = 001 =10001 = 010 =1001 =1000 =100 =100 =010 =001 =001 =001 t=

Computability and Complexity 16-5 NP-Completeness of HamCircuit Instance: A graph G. Question: Does G contain a Hamilton circuit? HamCircuit Theorem HamCircuit is NP-complete Theorem HamCircuit is NP-complete Step 1: The problem HamCircuit is in NP : the Hamilton circuit is the certificate

Computability and Complexity 16-6 Step 2: To show that HamCircuit is NP-complete we shall reduce 3- Satisfiability to HamCircuit Given a formula  with clauses and variables What is to be encoded? Boolean variables a choice between two values (for each variable) consistency: all occurrences of X must have the same truth value constraints on the possible values imposed by clauses

Computability and Complexity 16-7 the choice gadget We assume that all gadgets are connected with the rest of the graph only through their endpoints, shown as full dots; there are no edges connecting other vertices of the gadget to the rest of the graph This gadget will allow the Hamiltonian circuit, approaching from above, to pick either left or right edge, thus communicating to a truth value

the consistency gadget Computability and Complexity This graph can be traversed by the Hamiltonian circuit in one of the two ways

Computability and Complexity 16-9 the constraint gadget - If, using the choice and consistency devices, we have made sure that each side of the triangle is traversed by the Hamilton circuit if and only if the corresponding literal is false ; then at least one literal has to be true

Computability and Complexity Properties of the Gadgets the choice gadget can be traversed in exactly two ways the internal vertices of the consistency gadget (“exclusive or” gadget) can be traversed in exactly two ways, so that exactly one pair of the external vertices is involved any Hamilton circuit traverses at most two of the edges of a constraint gadget

Computability and Complexity X Y Z 1 2 true false all these vertices are connected

Computability and Complexity NP-Completeness of TSP(D) Instance: A finite set of cities, a positive integer distance, between each pair and an integer B. Question: Is there a permutation  of such that Travelling Salesperson(D) Step 1: The problem TSP(D) is in NP : a route satisfying the inequality is the certificate

Computability and Complexity Step 2: To show that TSP(D) is NP-complete we shall reduce HamCircuit to TSP(D) Given a graph G with vertex set V and edge set E For each vertex v create a city Set if (u,v)  E and otherwise Set B = |V| Then If G has a Hamilton circuit then there is a route of weight B (the Hamilton circuit) If there is a route of weight B, then in G this route goes through edges and therefore is a Hamilton circuit