知识卡片
子问题独立性取决于资源
若两个子问题解争用同一资源,分别最优未必能合法合并。
最长简单路径的资源是已访问顶点;一段用了某顶点,另一段就不能再用。
最短路径的替换论证可排除这种重复,切杆和矩阵链的子段也不争用。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第14章 动态规划 · 查看原书依据
using resources in solving one subproblem (those resources being vertices) renders them unavailable for the other subproblem.
参考来源
- 位置:《算法导论(第4版)》第 14 章 14.3–14.4 节(`OEBPS/chapter014.xhtml`,文本字符 [55000, 60000))。
- 结论依据:14.3 节称共享顶点是最长简单路径两子题争用的资源;一段用过的顶点会限制另一段。短路径替换证明另行排除共同顶点。
- 原始内容:using resources in solving one subproblem (those resources being vertices) renders them unavailable for the other subproblem.