Vertex Cover Dominating Set These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the University of Maryland. The Copyright.

Slides:



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

Polynomial-time reductions We have seen several reductions:
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
NP-Completeness: Reductions
An NP-completeness Example. The graph CLIQUE problem Undirected Graph G = (V, E) –a clique is a complete subgraph of G Subset V’ of vertices that are.
NP-Completeness More Reductions. Definitions P: is the class of all decision problems which can be solved in polynomial time, O(n^k) for some constant.
CSCI 256 Data Structures and Algorithm Analysis Lecture 22 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
Department of Computer Science & Engineering
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Complexity ©D Moshkovitz 1 Approximation Algorithms Is Close Enough Good Enough?
Five Problems CSE 421 Richard Anderson Winter 2009, Lecture 3.
Applications of DFS: Articulation Points and Biconnected Components
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Computational problems, algorithms, runtime, hardness
The Complexity of the Network Design Problem Networks, 1978 Classic Paper Reading
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.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
NP-complete examples CSC3130 Tutorial 11 Xiao Linfu Department of Computer Science & Engineering Fall 2009.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
Clique Cover Cook’s Theorem 3SAT and Independent Set
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 27.
Lecture 22 More NPC problems
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
NP-complete Problems SAT 3SAT Independent Set Hamiltonian Cycle
Approximation Algorithms
1 Steiner Tree Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Polynomial-time reductions We have seen several reductions:
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
1.1 Chapter 3: Proving NP-completeness Results Six Basic NP-Complete Problems Some Techniques for Proving NP-Completeness Some Suggested Exercises.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
Greedy Algorithms Interval Scheduling and Fractional Knapsack These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the.
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
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.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Introduction to NP Instructor: Neelima Gupta 1.
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.
34.NP Completeness. Computer Theory Lab. Chapter 34P.2.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
P & NP.
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Lecture 29 NP-Completeness and course wrap-up
Richard Anderson Lecture 26 NP-Completeness
Summary of the previous lecture
CS154, Lecture 16: More NP-Complete Problems; PCPs
Parameterised Complexity
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
CSE 421 Richard Anderson Autumn 2016, Lecture 3
Approximation Algorithms
CSE 421 Richard Anderson Autumn 2015, Lecture 3
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
CS154, Lecture 16: More NP-Complete Problems; PCPs
CSE 421, University of Washington, Autumn 2006
Applications of DFS: Articulation Points and Biconnected Components
Dominating Set By Eric Wengert.
CHAPTER 7 Time complexity
CSE 421 Richard Anderson Autumn 2019, Lecture 3
Presentation transcript:

Vertex Cover Dominating Set These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the University of Maryland. The Copyright notice is as follows: Copyright, David M. Mount, 2008 Dept. of Computer Science, University of Maryland, College Park, MD, These lecture notes were prepared by David Mount for the course CMSC 451, Design and Analysis of Computer Algorithms, at the University of Maryland. Permission to use, copy, modify, and distribute these notes for educational purposes and without fee is hereby granted, provided that this copyright notice appear in all copies.

Vertex Cover A vertex cover in an undirected graph G=(V,E) is a subset of vertices V ’ such that every edge in G has at least one endpoint in V’ The Vertex Cover problem (VC) is: given an undirected graph G and an integer k, does G have a vertex cover of size k?

Vertex cover E.g. useful in many servicing applications.  For example, you have a compute network and a program that checks the integrity of the communication links.  To save the space, instead of installing the program on every computer in the network, it suffices to install it on all the computers forming a vertex cover.  From these nodes all the links can be tested

Prove VC NP-complete VC is NP  The certificate consists of the k vertices in the vertex cover.  we can easily verify in polynomial time that every edge is incident to one of k these vertices. VC is NP-hard  Reduction form IS (Independent Set)

V’ is an IS of size 5

V-V’ is a Vertex Cover of size 9-5

IS versus VC Given an undirected graph G=(V,E) with n vertices and a subset of k vertices, the following are equivalent: – V’ is an independent set of size k for G – V-V’ is a vertex cover of size n-k for G

Proof If V’ is an independent set for G, then for each u,v in V (u,v) is not an edge of G, implying that every edge in G is incident to a vertex in V-V’ implying that V – V’ is a VC for G. If V-V’ is a VC for G, every edge (u,v) has at least one endpoint in V-V’ implying that for any u,v in V’, there is no edge (u,v) in E.

IS VC IS (G,k) { n = number of vertices in G VC(G, n-k) }

Dominating Set A dominating set in an undirected graph G=(V,E) is a subset of vertices V ’ such that every vertex in G is either in V’ or adjacent to a vertex in V’. The Dominating Set (DS) problem is: given an undirected graph G and an integer k, does G have a dominating set of size k?

Dominating Set useful in facility location problems  For example, suppose we want to select where to place a set of fire stations such that every house in the city is within 2 minutes of the nearest fire station.  We create a graph in which two locations are adjacent if they are within 2 minutes of each other.  A minimum sized dominating set will be a minimum set of locations such that every other location is reachable within 2 minutes from one of these sites

Prove DS is NP-complete DS is NP  The certificate consists of the subset V’ DS is NP-hard  Reduce Vertex Cover to DS

VC DS Find a polynomial function, which given an instance of vertex cover (G,k), produces an instance (G’,k’) such that G has a vertex cover of size k if and only if G’ has a dominating set of size k’

VC DS Difference:  VC: every edge is incident to a vertex in V’  DS every vertex is in or adjacent to a vertex in V’ Incidence: property of edges, adjacency: property of vertices  Suggests mapping edges of G to vertices of G’ such that an incident edge is mapped to an adjacent vertex in G’

VC DS k=3 k’=3 G G’

Isolated vertex: need not be in VC, has to be in DS G G’ k=3 k’=3+1 No of isolated vertices

DS fog G’ VC for G

If a special vertex is in DS, replace it with one of its adjacent original vertices DS fog G’

DS fog G’ VC for G