您的位置:首页 > 其它

算法概论第八章习题

2018-01-02 22:11 417 查看
8.3 

STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an integer k, find a satisfying assignment in which at most k variables
are true, if such an assignment exists. Prove that STINGY SAT is NP-complete. 


solution:

首先,容易知道得到了STINGY SAT问题的一个解,要验证该解成立,则需要一个个带入子句赋值验证,所需为多项式时间,因而STINGY SAT问题是NP问题。

要证明STINGY SAT是NP完全问题,可由SAT问题归约得到 STINGY SAT即可证明。若STINGY SAT 问题中k恰为SAT问题总变量数,则此时的STINGY SAT即可转为SAT问题,已知SAT问题是NP完全问题则STINGY SAT问题是NP完全问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: