Is the 0-1 Knapsack that each item has the same weight NP-complete?

白昼怎懂夜的黑 提交于 2019-12-11 00:57:20

问题


The 0-1 Knapsack problem is known as NP-complete. But if the weight for each item are the same, the problem is still NP-complete?


回答1:


No, because you always just take whatever items are the most valuable.



来源:https://stackoverflow.com/questions/11249448/is-the-0-1-knapsack-that-each-item-has-the-same-weight-np-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!