To show that the Dominating Set problem is NP-Complete, we need to demonstrate two things: first, that the problem is in NP, and second, that it is NP-hard by providing a polynomial time reduction from a known NP-complete problem to the Dominating Set problem. Here, we will use the Vertex Cover problem for this reduction.
Intuition
Dominating Set problem: Given a graph ( G = (V, E) ) and an integer ( k ), the problem asks if there exists a subset ( D \subseteq V ) such that every vertex in ( V ) is either in ( D ) or adjacent to at least one vertex in ( D ), and the size of ( D ) is at most ( k ).
Vertex Cover problem: Given a graph ( G = (V, E) ) and an integer ( k ), the problem asks if there exists a subset ( C \subseteq V ) such that every edge in ( E ) is incident to at least one vertex in ( C ), and the size of ( C ) is at most ( k ).
Intuition for Reduction:
- Both problems deal with selecting a subset of vertices to achieve some covering properties: the Vertex Cover requires covering all edges, while the Dominating Set requires covering all vertices.
- A vertex cover inherently influences the neighboring vertices, hinting that these vertices can play a role in forming a dominating set.
- The conversion leverages this natural connection: if a vertex cover can "cover" all edges, those covering vertices could act to "dominate" the graph.
Proof Details
-
Dominating Set is in NP:
To verify a solution, given a set ( D ) of size ( \leq k ), we can check in polynomial time if every vertex ( v \in V ) is either in ( D ) or adjacent to some vertex in ( D ).
-
Reduction from Vertex Cover to Dominating Set:
Given an instance of Vertex Cover, ( (G, k) ), we construct an instance of Dominating Set, ( (G', k') ), where ( G' = G ) and ( k' = k ).
Reduction Correctness:
- If ( C ) is a vertex cover in ( G ) of size ( \leq k ), then ( C ) is also a dominating set in the same graph ( G ). This is because:
- Each edge ( (u, v) ) in ( G ) must be incident to at least one vertex in ( C ) (by the vertex cover condition), so at least one of ( u ) or ( v ) is in ( C ).
- This ensures that every vertex is either covered by being in ( C ) or dominated by being adjacent to a vertex in ( C ).
Therefore, the vertex cover ( C ) transforms validly into a dominating set ( D ) by retaining itself as the argument set. Hence, the domination condition of requiring every vertex to have a vertex in ( D ) or being adjacent to such is trivially satisfied by properties of ( C ).
-
NP-Completeness:
- Since Vertex Cover is NP-complete, and we provide a polynomial-time reduction from Vertex Cover to Dominating Set, we establish that Dominating Set is NP-hard.
- Combined with the fact that Dominating Set is in NP (as shown above), this proves that Dominating Set is NP-complete.
This reduction demonstrates that any solution for Vertex Cover can be transformed into a solution for Dominating Set with no more than polynomial effort, adhering to the requirements for establishing NP-completeness of the Dominating Set problem.