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.
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.
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.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
Complexity ©D.Moshkovitz 1 Paths On the Reasonability of Finding Paths in Graphs.
Clique Cover Cook’s Theorem 3SAT and Independent Set
Lecture 22 More NPC problems
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
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.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
Additional NP-complete problems
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSC 413/513: Intro to Algorithms
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.
 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
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
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
Introduction to Approximation Algorithms
Deterministic Finite Automata And Regular Languages.
Introduction to Randomized Algorithms and the Probabilistic Method
Richard Anderson Lecture 26 NP-Completeness
Context-Free Languages
Models of Computation.
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
Reductions.
NP-Completeness (36.4-5) P: yes and no in pt NP: yes in pt NPH  NPC
PDAs Accept Context-Free Languages
Digital Components and Combinational Circuits
CS21 Decidability and Tractability
Intro to Theory of Computation
Great Ideas in Computing Complexity Theory
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
More NP-complete Problems
Richard Anderson Lecture 25 NP-Completeness
Additional NP-complete problems
CS21 Decidability and Tractability
CSE 6408 Advanced Algorithms.
CS154, Lecture 16: More NP-Complete Problems; PCPs
CS21 Decidability and Tractability
Instructor: Aaron Roth
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

Theorem: (proven in previous class) If: Language is NP-complete Language is in NP is polynomial time reducible to Then: is NP-complete

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

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

Size of vertex-cover is the number of nodes in the cover Example: |S|=4

Corresponding language: VERTEX-COVER = { : graph contains a vertex cover of size } Example:

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)

Let be a 3CNF formula with variables and clauses Example: Clause 1

Formula can be converted to a graph such that: is satisfied if and only if Contains a vertex cover of size

Variable Gadgets nodes Clause Gadgets nodes Clause 1 Clause 2 Clause 3

Clause 1 Clause 2 Clause 3 Clause 2 Clause 3 Clause 1

First direction in proof: If is satisfied, then contains a vertex cover of size

Example: Satisfying assignment We will show that contains a vertex cover of size

Put every satisfying literal in the cover

Select one satisfying literal in each clause gadget and include the remaining literals in the cover

This is a vertex cover since every edge is adjacent to a chosen node

Explanation for general case: Edges in variable gadgets are incident to at least one node in cover

Edges in clause gadgets are incident to at least one node in cover, since two nodes are chosen in a clause gadget

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

Second direction of proof: If graph contains a vertex-cover of size then formula is satisfiable

Example:

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

For the variable assignment choose the literals in the cover from variable gadgets

is satisfied with since the respective literals satisfy the clauses

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)

Gadget for variable the directions change

Gadget for variable

This Summary is an Online Content from this Book: Michael Sipser, Introduction to the Theory of Computation, 2ndEdition It is edited for Computation Theory Course 6803415-3 by: T.Mariah Sami Khayat Teacher Assistant @ Adam University College For Contacting: mskhayat@uqu.edu.sa Kingdom of Saudi Arabia Ministry of Education Umm AlQura University Adam University College Computer Science Department المملكة العربية السعودية وزارة التعليم جامعة أم القرى الكلية الجامعية أضم قسم الحاسب الآلي