题目描述
In an undiorected graph G=(V,E), we say D⊆V is a domainting set if every v∈V is either in D or adjacent to at least one member of D. In the DOMINATING SET problem, the input is a graph and a budget b, and the aim is to find a dominating set in the graph of size at most b, if one exists. Prove that this problem is NP-complete.
解答思路
可以将顶点覆盖问题归约到支配集问题。若要在图GVE ( , ) 中求得不大于b 的一个
顶点覆盖,可以先对图G 做一个预处理:对每条边(uv E , )∈ ,添加一个辅助顶点 w ,
及两条边( ) u w, 和(v w, ) ,如下图所示
对每条边都这样处理后得到一个新图G ’ 。容易看出,若原图G 中存在不大于b 的
顶点覆盖,这个顶点覆盖也是新图G ’ 的一个支配集。反过来,若新图G ’ 中存在一
个不大于b 的支配集,那么对这个支配集进行一些处理后也能得到一个图G 的不大
于b 的顶点覆盖。处理过程如下:设该支配集为 D ,对于每条边(u v, ) 及相应的辅
助顶点 w ,若 w D ∉ ,则不用做任何处理,若 w D ∈ 且uv D , ∉ ,那么可以在 D 中
将 w 替换成u 或v ,若 w D ∈ 同时uDvD ∈ ∨∈ ,则直接将 w 从 D 中删掉即可