More NP-complete Problems

Slides:



Advertisements
Similar presentations
CSci 4011 INHERENT LIMITATIONS OF COMPUTER PROGRAMS.
Advertisements

Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Lecture 23. Subset Sum is NPC
NP-Completeness: Reductions
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
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.
Transitivity of  poly Theorem: Let ,  ’, and  ’’ be three decision problems such that   poly  ’ and  ’  poly  ’’. Then  poly  ’’. Proof:
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Fall 2006Costas Busch - RPI1 More NP-complete Problems.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
Complexity ©D.Moshkovitz 1 Paths On the Reasonability of Finding Paths in Graphs.
Fall 2003Costas Busch - RPI1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
Lecture 22 More NPC problems
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
NP-complete Problems SAT 3SAT Independent Set Hamiltonian Cycle
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
Additional NP-complete problems
1 How to prove that a problem is NPC. 2 Cook Cook showed the first NPC problem: SAT Cook received Turing Award in 1982.
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.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSC 413/513: Intro to Algorithms
NP-complete Languages
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.
SUBSET-SUM Instance: A set of numbers denoted S and a target number t.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
 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
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.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
NP-Completeness A problem is NP-complete if: It is in NP
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-complete problems
Richard Anderson Lecture 26 NP-Completeness
More NP-complete Problems
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
(xy)(yz)(xz)(zy)
NP-Completeness (36.4-5) P: yes and no in pt NP: yes in pt NPH  NPC
CS21 Decidability and Tractability
Intro to Theory of Computation
CS154, Lecture 16: More NP-Complete Problems; PCPs
Where Can We Draw The Line?
Lecture 24 NP-Complete Problems
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Additional NP-complete problems
NP-Complete Problems.
CS21 Decidability and Tractability
NP-Completeness Yin Tat Lee
Prove this problem is in NP
CS154, Lecture 16: More NP-Complete Problems; PCPs
CS21 Decidability and Tractability
More NP-complete problems
Trevor Brown DC 2338, Office hour M3-4pm
Instructor: Aaron Roth
Lecture 24 Classical NP-hard Problems
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Lecture 23 NP-Hard Problems
Presentation transcript:

More NP-complete Problems Fall 2006 Costas Busch - RPI

(proven in previous class) Theorem: (proven in previous class) If: Language is NP-complete Language is in NP is polynomial time reducible to Then: is NP-complete Fall 2006 Costas Busch - RPI

Using the previous theorem, we will prove that 2 problems are NP-complete: Vertex-Cover Hamiltonian-Path Fall 2006 Costas Busch - RPI

is a subset of nodes such that every edge Vertex Cover Vertex cover of a graph is a subset of nodes such that every edge in the graph touches one node in Example: S = red nodes Fall 2006 Costas Busch - RPI

is the number of nodes in the cover Size of vertex-cover is the number of nodes in the cover Example: |S|=4 Fall 2006 Costas Busch - RPI

Corresponding language: VERTEX-COVER = { : graph contains a vertex cover of size } Example: Fall 2006 Costas Busch - RPI

VERTEX-COVER is NP-complete Theorem: VERTEX-COVER is NP-complete Proof: 1. VERTEX-COVER is in NP Can be easily proven 2. We will reduce in polynomial time 3CNF-SAT to VERTEX-COVER (NP-complete) Fall 2006 Costas Busch - RPI

Let be a 3CNF formula with variables and clauses Example: Clause 1 Fall 2006 Costas Busch - RPI

Formula can be converted to a graph such that: is satisfied if and only if Contains a vertex cover of size Fall 2006 Costas Busch - RPI

Variable Gadgets nodes Clause Gadgets nodes Clause 1 Clause 2 Clause 3 Fall 2006 Costas Busch - RPI

Clause 1 Clause 2 Clause 3 Clause 2 Clause 3 Clause 1 Fall 2006 Costas Busch - RPI

First direction in proof: If is satisfied, then contains a vertex cover of size Fall 2006 Costas Busch - RPI

Satisfying assignment Example: Satisfying assignment We will show that contains a vertex cover of size Fall 2006 Costas Busch - RPI

Put every satisfying literal in the cover Fall 2006 Costas Busch - RPI

Select one satisfying literal in each clause gadget and include the remaining literals in the cover Fall 2006 Costas Busch - RPI

This is a vertex cover since every edge is adjacent to a chosen node Fall 2006 Costas Busch - RPI

Explanation for general case: Edges in variable gadgets are incident to at least one node in cover Fall 2006 Costas Busch - RPI

Edges in clause gadgets are incident to at least one node in cover, since two nodes are chosen in a clause gadget Fall 2006 Costas Busch - RPI

Every edge connecting variable gadgets and clause gadgets is one of three types: Type 1 Type 2 Type 3 All adjacent to nodes in cover Fall 2006 Costas Busch - RPI

Second direction of proof: If graph contains a vertex-cover of size then formula is satisfiable Fall 2006 Costas Busch - RPI

Example: Fall 2006 Costas Busch - RPI

To include “internal’’ edges to gadgets, and satisfy exactly one literal in each variable gadget is chosen chosen out of exactly two nodes in each clause gadget is chosen chosen out of Fall 2006 Costas Busch - RPI

For the variable assignment choose the literals in the cover from variable gadgets Fall 2006 Costas Busch - RPI

since the respective literals satisfy the clauses is satisfied with since the respective literals satisfy the clauses Fall 2006 Costas Busch - RPI

1. HAMILTONIAN-PATH is in NP Can be easily proven Theorem: HAMILTONIAN-PATH is NP-complete Proof: 1. HAMILTONIAN-PATH is in NP Can be easily proven 2. We will reduce in polynomial time 3CNF-SAT to HAMILTONIAN-PATH (NP-complete) Fall 2006 Costas Busch - RPI

Gadget for variable the directions change Fall 2006 Costas Busch - RPI

Gadget for variable Fall 2006 Costas Busch - RPI

Fall 2006 Costas Busch - RPI

Fall 2006 Costas Busch - RPI

Fall 2006 Costas Busch - RPI