知识卡片
活动贪心只剩后缀子问题
选定最早结束活动后,所有与它兼容的活动都只能在它结束后开始,因此只需继续处理后缀候选集合。
先证明该选择能属于某个最优解,再结合最优子结构,才能反复应用同一选择。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第15章 贪心算法 · 查看原书依据
Once you make the greedy choice, you have only one remaining subproblem to solve: finding activities that start after a1 finishes.
参考来源
- 位置:《算法导论(第4版)》第 15 章《贪心算法》(`OEBPS/chapter015.xhtml`,文本字符 [5000, 10000))。
- 结论依据:原文根据最早结束顺序排除了选择前的兼容活动,并将剩余问题归为单个后缀集合。
- 原始内容:Once you make the greedy choice, you have only one remaining subproblem to solve: finding activities that start after a 1 finishes.