8.9 HITTING SET problem
题目:
In the HITTING SET problem, we are given a family of sets S1,S2,...,Sn{S_1, S_2, . . . , S_n} and a budget b, and we wish to find a set H of size ≤ b which intersects every SiS_i, if such an H exists. In other words, we want H∩Si=∅H∩S_i=∅ for all ii.
Show that HITTING SET is NP-complete.
答:
证:HITTING SET是一个np问题。
如果给定了这个问题的一个解H,然后我们把里面全部的元素相加,再将结果与b对比,就可以知道H是不是这个问题的解。显然,这个相加与对比是多项式的时间复杂度,所以这个问题是一个np问题。
证:HITTING SET是一个np难问题。
我们假设现在要求图G的最小顶点覆盖,于是我们可以建立一个HITTING SET实例,其中S1,S2,...,SnS_1, S_2, . . . , S_n是图G的每一条边。如果HITTING SET能在多项式时间内解决,那么通过二分的进行 询问,从而也就能在多项式时间内解决最小顶点覆盖问题。所以我们可以把最小顶点覆盖的问题规约到这HITTING SET问题。并且我们知道最小顶点覆盖的问题是一个np问题。
证:HITTING SET是一个npc问题。
HITTING SET是一个np难问题,并且这个问题本身是np的,所以HITTING SET是一个npc问题。
8.9 HITTING SET problem相关推荐
- Developers are hitting a problem due to tools.jar when using Checkstyle
2019独角兽企业重金招聘Python工程师标准>>> See https://lists.opendaylight.org/pipermail/odlparent-dev/2016 ...
- Hitting Set 碰撞集问题
8.9 In the HITTING SET problem, we are given a family of sets {S1,S2,-,Sn}, and a budget b, and we w ...
- 证明HITTING SET 是NP完全
In the HITTING SET problem, we are given a family of sets {S1, S2, - , Sn} and a budget b, and we wi ...
- 算法证明题 8.9 HITTING SET
题目描述 In the HITTING SET problem,we are given a family of sets{S1,S2,-,Sn} and a budget b,and we wish ...
- tomcat访问oracle卡死,tomcat无法连接到oracle
Tomcat connect db is error Tue Jul 21 09:59:25 GMT+08:00 2009: ??????URL???: jdbc:oracle:thin:@adsfe ...
- WPF应用程序内存泄漏的一些原因
原文:Finding Memory Leaks in WPF-based applications There are numbers of blogs that folks wrote about ...
- NP问题总结(概念+例子+证明)
目录 基本概念 证明思路 常见例子 21个常见NPC问题 原理论证 基本概念 P类问题:(polynominal) 存在多项式时间算法的问题,即在多项式时间内可解的问题: 例如:冒泡排序.快速排 ...
- oracle .bdb,crfclust.bdb文件过大的处理方法
crsctl stat res ora.crf -init -t == stop crsctl stop res ora.crf -init == delete 删除$ORACLE_HOME/crf/ ...
- linux下yum错误:[Errno 14] problem making ssl connection Trying other mirror.
所有的base 都要取消注释 mirrorlist 加上注释 另外所有的enable都要设为零 目录 今天是要yum命令安装EPEL仓库后 yum install epel-release 突然发现y ...
最新文章
- 研究表明:无人驾驶技术减少拥堵加快进程
- 25、jdbc操作数据库(2)
- js/jquery循环提取table单元格值
- 过去式加ed的发音_【思语小课堂】时态二三事:规则动词过去式的发音规则
- 学习minix 3(未完成)
- 20200713:动态规划复习day04
- 如何解决Macbook充电端口连接器发热问题?
- 初二生态系统思维导图_初中生物生态系统知识点思维导图
- 如何批量新建文件夹并命名
- Serializer序列化器----反序列化使用
- 第六章 软件项目质量管理
- 盐城市公交路线及时刻表
- selenium之qq邮箱登录-发邮件
- 计算机c盘崩了,崩溃,C盘爆红了!试试这5款电脑清理工具,每一个都很实用
- 百度账号更换绑定的手机号
- 维和医疗分队患者信息管理系统的开发与研究
- Java中涉及到和金钱有关的属性的类型
- 教你把ElementTable单元格的四个角变圆/自定义特定单元格样式
- 小兵物语---短篇小说
- org.springframework.context.annotation.AnnotationConfigApplicationContext has not been refreshed yet