The Vertex Cover Problem. Shangqi Wu Presentation of CS 525 March 11 th, 2016

Similar documents
Computability Theory

Where Can We Draw The Line?

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

(p 300) Theorem 7.27 SAT is in P iff P=NP

NP-Completeness. Algorithms

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

NP-complete Reductions

8 NP-complete problem Hard problems: demo

8.1 Polynomial-Time Reductions

NP-Complete Reductions 2

1 Introduction. 1. Prove the problem lies in the class NP. 2. Find an NP-complete problem that reduces to it.

9.1 Cook-Levin Theorem

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

1 Definition of Reduction

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

CSC 505, Fall 2000: Week 12

CS154, Lecture 18: PCPs, Hardness of Approximation, Approximation-Preserving Reductions, Interactive Proofs, Zero-Knowledge, Cold Fusion, Peace in

W4231: Analysis of Algorithms

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Exercises Computational Complexity

NP-Complete Problems

Lecture 7: Counting classes

8.1 Polynomial-Time Reductions

Complexity Classes and Polynomial-time Reductions

P and NP (Millenium problem)

CMPSCI611: The SUBSET-SUM Problem Lecture 18

Engineering 9867 Advanced Computing Concepts

Vertex Cover is Fixed-Parameter Tractable

arxiv: v2 [cs.cc] 29 Mar 2010

CS 580: Algorithm Design and Analysis

3/7/2018. CS 580: Algorithm Design and Analysis. 8.1 Polynomial-Time Reductions. Chapter 8. NP and Computational Intractability

Homework 4 Solutions

PCP and Hardness of Approximation

NP and computational intractability. Kleinberg and Tardos, chapter 8

Some Hardness Proofs

Prove, where is known to be NP-complete. The following problems are NP-Complete:

Final Exam May 8, 2018

Greedy algorithms Or Do the right thing

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang

Log-Space. A log-space Turing Machine is comprised of two tapes: the input tape of size n which is cannot be written on, and the work tape of size.

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

Complexity of unique list colorability

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

P = NP; P NP. Intuition of the reduction idea:

arxiv: v1 [cs.cc] 30 Jun 2017

CS 125 Section #10 Midterm 2 Review 11/5/14

CSCE750 Analysis of Algorithms Fall 2017 NP-Complete Problems

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

W[1]-hardness. Dániel Marx. Recent Advances in Parameterized Complexity Tel Aviv, Israel, December 3, 2017

Chapter 9 Graph Algorithms

COMP202. Complexity of Algorithms. Section 1: Answer all questions. Section 2: Answer 2 questions.

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang

Lesson 12: Angles Associated with Parallel Lines

Lecture 21: Other Reductions Steven Skiena

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

Umans Complexity Theory Lectures

Complexity of clique coloring and related problems

Lecture 2: NP-Completeness

Name: CS 341 Practice Final Exam. 1 a 20 b 20 c 20 d 20 e 20 f 20 g Total 207

Lecture 10 October 7, 2014

The vertex set is a finite nonempty set. The edge set may be empty, but otherwise its elements are two-element subsets of the vertex set.

The Satisfiability Problem [HMU06,Chp.10b] Satisfiability (SAT) Problem Cook s Theorem: An NP-Complete Problem Restricted SAT: CSAT, k-sat, 3SAT

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements.

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal

NP-completeness of 4-incidence colorability of semi-cubic graphs

The complement of PATH is in NL

Optimization of submodular functions

Chapter 9 Graph Algorithms

Reductions and Satisfiability

COMP Logic for Computer Scientists. Lecture 23

Visit MathNation.com or search "Math Nation" in your phone or tablet's app store to watch the videos that go along with this workbook!

Vertex Cover Approximations

with Dana Richards December 1, 2017 George Mason University New Results On Routing Via Matchings Indranil Banerjee The Routing Model

Randomness and Computation March 25, Lecture 5

The temporal explorer who returns to the base 1

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

More NP-complete Problems. CS255 Chris Pollett May 3, 2006.

CS 373: Combinatorial Algorithms, Spring 1999

Towards the Proof of the PCP Theorem

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Partha Sarathi Mandal

Chapter 9 Graph Algorithms

CS 470/570 Exam 6 Spring 2017 Solution

Parameterized Reductions

In this lecture we discuss the complexity of approximation problems, and show how to prove they are NP-hard.

12 Cover Graphs and Comparability Graphs

Lecture 21: Other Reductions Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

Greedy Algorithms 1. For large values of d, brute force search is not feasible because there are 2 d

Stacks & Queues. Kuan-Yu Chen ( 陳冠宇 ) TR-212, NTUST

HOMEWORK #4 SOLUTIONS - MATH (1) (a) Prove that the chromatic polynomial of any tree with s vertices is. k(k 1) s 1

On Planar 3-SAT and its Variants

Eulerian disjoint paths problem in grid graphs is NP-complete

W[1]-hardness. Dániel Marx 1. Hungarian Academy of Sciences (MTA SZTAKI) Budapest, Hungary

Helly Property, Clique Graphs, Complementary Graph Classes, and Sandwich Problems

CS521 \ Notes for the Final Exam

Transcription:

The Vertex Cover Problem Shangqi Wu Presentation of CS 525 March 11 th, 2016

Vertex-Cover Problem Definition If G is an undirected graph, a vertex cover of G is a subset of nodes where every edge of G touches one of those nodes. The vertex cover problem asks whether a graph contains a vertex cover of a specified size: VVVVVVVVVVVV CCCCCCCCCC = < GG, kk > GG iiii aaaa uuuuuuuuuuuuuuuuuuuu ggggggggg ttttttt haaaa aa kk nnnnnnnn vvvvvvvvvvvv cccccccccc}

Definition of NP-Complete Definition 7.34 A language B is NP-Complete if it satisfies the following conditions: B is in NP. Every A in NP can be polynomial-time reducible to B. Theorem 7.36 Given that A is NP-complete and B is in NP, if AA pp BB, then B is NP-complete.

Reduction & Reducibility Definition 7.28 A function of ff: is polynomial time computable function if some polynomial time Turing Machine M exists that halts with just ff(ωω) on its tape, when started on any input ω. Definition 7.29 Language A is polynomial time mapping reducible, or simply polynomial time reducible, to language B, written AA pp BB, if a polynomial time computable function ff: exists, where for every ω, ωω AA ff(ωω) BB The function f is called the polynomial time reduction of A to B.

Proof Idea To show Vertex-Cover problem is NP-complete, there are 2 steps: Show Vertex-Cover is in NP. Show all NP-problems are polynomial time reducible to Vertex-Cover problem. Choose another NP-complete problem, e.g., 3-SAT, to show that it is polynomial reducible to Vertex-Cover.

Step 1: Vertex-Cover in NP Regard vertex cover of k nodes as a certificate to verify the Vertex-Cover solution. The verifier V for Vertex-Cover is constructed as description below. V = On input <<G, k>, c>: Test if c is a subgraph containing k nodes in graph G. Test if c covers all edges in graph G. If the answers are both yes, the verifier accepts, otherwise rejects.

Step 2: Reduction from 3-SAT The reduction converts a 3NF formula ф in 3-SAT into a graph G and a number k, and ф is satisfiable when G has a vertex cover with k nodes. Graph G should contain gadgets to imitate behavior of variable and clauses in 3-SAT, and the structure of gadgets are constructed as description below. Variable gadget: For each variable x in ф, produce two nodes xx and xx, and connect them with an edge. Clause gadget: For each clause in ф, there are 3 nodes which are labeled by literals of the clause, then 3 nodes are connected to each other and to the nodes in variable gadgets having the same labels.

Reduction Continued Let m and l be the number of variables and clauses respectively. Then we have 2mm + 3ll nodes in G. Let k be kk = mm + 2ll. Here provides an example of reduction: φφ = (xx 1 xx 1 xx 2 ) (xx 1 xx 2 xx 2 ) (xx 1 xx 2 xx 2 ) Reduction produces <G, k> from ф, where k = 8. G is presented in following figure:

Reduction Continued This step shows if ф satisfiable, G has a vertex cover of size k. For each variable gadget, take the nodes which are corresponding to the true literal in the assignment into the vertex cover. For each clause gadget, select one true literal and put rest 2 nodes into the vertex cover. Vertex cover contains k nodes, and it covers all edges in graph G. φφ = (xx 1 xx 1 xx 2 ) (xx 1 xx 2 xx 2 ) (xx 1 xx 2 xx 2 )

Reduction Continued This step shows if G has a vertex cover of size k, ф is satisfiable. The vertex cover must contain following to cover correct edges: One node in each variable gadget. 2 nodes in every clause gadget. We take nodes of variable gadgets that are in vertex cover and assign true to corresponding literals. Each of 3 edges connecting the variable gadgets with each clause gadget is covered, and only 2 nodes of the clause gadget are in the vertex cover. φφ = (xx 1 xx 1 xx 2 ) (xx 1 xx 2 xx 2 ) (xx 1 xx 2 xx 2 )

Conclusion Based on proof above, we can conclude that ф is satisfiable if and only if G has a vertex cover with k nodes. Since Vertex-Cover problem is in NP, and it is reducible to 3-SAT problem, which is shown to be NP-complete before, therefore Vertex-Cover is NPcomplete.

Thank you!