算法NP-complete Ex8.3

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cyrususie/article/details/79039245

Ex8.3

题目:
In the HITTING SET problem, we are given a family of sets{ S1,S2,...,Sn } and a budget b, and we wish to find a set H of size b which intersects every Si , if such an H exists. In other words, we want HSi for all i.
Show that HITTING SET is NP-complete.

Ans:
很容易将最小顶点覆盖归约到 HITTING SET。假设要求图 G 的最小顶点覆盖,可以 建立一个 HITTING SET 实例,其中{ S1,S2,...,Sn }即是图G的各条边,比如
{ v1,v2 },{ v3,v4 }, 。通过二分式的询问,可以找到一个与Si都相 交的最小集合 H ,这正好就是图 G 的最小顶点覆盖。

猜你喜欢

转载自blog.csdn.net/cyrususie/article/details/79039245
8.3
今日推荐