知识卡片
零一背包与分数背包的边界
- 零一背包中每件物品只能整件取或不取;
- 分数背包允许取部分重量。
两者都有容量与价值约束,但可分性改变可行解集合,也决定单位重量价值排序能否作为正确的贪心策略。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第15章 贪心算法 · 查看原书依据
In the fractional knapsack problem, the setup is the same, but the thief can take fractions of items, rather than having to make a binary (0-1) choice for each item.
参考来源
- 位置:《算法导论(第4版)》第 15 章《贪心算法》(`OEBPS/chapter015.xhtml`,文本字符 [25000, 30000))。
- 结论依据:原文并列定义两种背包问题,并明确分数版允许部分取物品。
- 原始内容:In the fractional knapsack problem , the setup is the same, but the thief can take fractions of items, rather than having to make a binary (0-1) choice for each item.