At project bid stage, developer choose construct and material supplier with idea on "quality have priority, price for time".
在项目招标阶段,开发商要以“质量优先,价格为次”的理念选择施工及材料供应商。
You could construct all subsets, check that the weight is less than the weight of the knapsack, and then choose the subset with the maximum value.
你可以构建所有子集,检查重量是否小于背包的重量,然后选择最大值的子集。
More narrowly, whether or not you choose to model a particular construct within any of those approaches should also be a consideration of your own development process.
更详细地说,不论您是否选择在任意那些方法中构建一个特别的模型,这也应该是对您自己的开发过程的考虑。
And so you could construct all subsets, check that the weight is less than the weight of the knapsack, and then choose the subset with the maximum value.
因此你可以构建所有子问题,判断它的重量,是否小于背包的重量,然后选择值最大的子问题。
应用推荐