Please solve this and help me understand it. Much appreciated. A subset S of nod
ID: 3777661 • Letter: P
Question
Please solve this and help me understand it. Much appreciated.
A subset S of nodes in a graph G is called a dominating set iff every node of G is either in S or adjacent to a node in S. Consider the language DOMINATING-SET = {(G, k): G has a dominating set of size k}. Carefully argue that the following is a correct polynomial-time mapping reduction from VERTEX-COVER to DOMINATING-SET: Map (G, k) to (G', k) where G' is obtained from G by removing all nodes of degree 0 and applying the following operation for each edge {u, v} of G: put {u, v} in G' as well as a fresh new node that has edges only to u and to v. Using 5a, prove that DOMINATING-SET is NP-complete.