简体   繁体   English

这是 NP-Hard 问题的特例吗?

[英]Is this a special case of an NP-Hard problem?

I have the feeling that this is an instance of a NP-hard problem but it's been a while since I've been in school I'm having a difficult time verifying which one it would reduce to.我有一种感觉,这是一个 NP 难题的实例,但自从我上学以来已经有一段时间了,我很难确定它会减少到哪一个。 If I have a Collection of sales, where each sale has a price (weight) as well as a set products which the sale applies with cardinality > 0 then find a collection of sales with the greatest combined price, where no sale shares a product with any other sale (you cannot have the multiple sales apply to the same product).如果我有一个销售集合,其中每个销售都有一个价格(权重)以及一个销售适用于基数 > 0 的集合产品,然后找到具有最大组合价格的销售集合,其中没有销售共享产品任何其他销售(您不能将多个销售应用于同一产品)。

Yes, this is a generalization of a known NP-Complete problem: Set Packing .是的,这是已知 NP-Complete 问题的概括: Set Packing

This is a generalization of the known problem, because of the weights, which could vary in your problem, but if you set weight(sale) = #products_in_sale , you get exactly the Set Packing optimization problem.这是对已知问题的概括,因为权重可能会因您的问题而异,但如果您设置weight(sale) = #products_in_sale ,您将得到准确的 Set Packing 优化问题。 1 1

This means, your problem is at least as hard as Set Packing, and thus NP-Hard.这意味着,您的问题至少与 Set Packing 一样困难,因此是 NP-Hard。

(1) This is basically the polynomial reduction, given an instance of set packing, you generate an instance of your problem, with weight(sale) = #products_in_sale , and if the latter is solveable in polynomial time, so is the former. (1) 这基本上是多项式归约,给定一个集合包装的实例,您生成问题的一个实例, weight(sale) = #products_in_sale ,如果后者可以在多项式时间内解决,则前者也是如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM