知识卡片
活动选择具有最优子结构
若最优活动集合包含某活动,该活动前后可选活动形成两个互不冲突的子问题;其中任一子集若不是最优,就可替换成更大的兼容子集,从而改进原解。
这支持动态规划,但尚不能单独证明某个贪心选择正确。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第15章 贪心算法 · 查看原书依据
The usual cut-and-paste argument shows that an optimal solution Aij must also include optimal solutions to the two subproblems for Sik and Skj.
参考来源
- 位置:《算法导论(第4版)》第 15 章《贪心算法》(`OEBPS/chapter015.xhtml`,文本字符 [5000, 10000))。
- 结论依据:原文以替换论证说明最优解包含两侧子问题的最优解。
- 原始内容:The usual cut-and-paste argument shows that an optimal solution A ij must also include optimal solutions to the two subproblems for S ik and S kj .