一个可能是动态规划的问题

发布于 2025-01-14 03:48:49 字数 276 浏览 2 评论 0原文

我遇到一个问题。经过一番搜索,它似乎有点像动态规划,比如背包问题或除法问题,但与典型的有点不同。我不知道如何解决这个问题。 (如果是典型问题请告诉我它的名字)

给定 n 个不同重量的物品,以及许多相同的背包 容量W可承载所有这些。找到最佳的物品组合 最大限度地减少背包的使用数量。

例如:给定4个权重1,3,8,10的物品;背包容量11;

最佳组合是 {1, 10} 和 {3, 8},仅使用 2 个背包。

I encounter a problem. After some search, it seems a bit like dynamic programming, like knapsack problems or number division problems, but a little different from the typical ones. I'm not sure how to solve this problem. (If it is a typical problem please tell me its name)

Given n items of various weights, and many identical knapsacks of
capacity W to carry them all. Find the best combination of items
that minimize the number of knapsacks to use.

For example: Given 4 items of weights 1,3,8,10; knapsack capacity 11;

the best combination is {1, 10} and {3, 8} that uses only 2 knapsacks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文