首页 > 编程语言 > 详细

[算法分析与设计]第17周

时间:2017-12-30 16:36:40      阅读:261      评论:0      收藏:0      [点我收藏+]

算法概论——课后习题8.3

问题

STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and

an integer k, and a satisfying assignment in which at most k variables are true, if such an

assignment exists. Prove that STINGY SAT is NP-complete.

证明

证明STINGY SAT是一个NPC问题,只需要2步:

  1. STINGY SAT是一个NP问题:STINGY SAT问题的解可以在多项式时间内验证。
  2. 可以将SAT问题归约到STINGY SAT问题:将k设成SAT问题中变量的个数。

综上,STINGY SAT是一个NPC问题。

[算法分析与设计]第17周

原文:https://www.cnblogs.com/yanhewu/p/8150175.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!