知识卡片
约束图负环意味着无可行解
若约束图有负权环,把环上各差分不等式相加,变量项抵消得到 0≤环总权;负环却使总权,产生矛盾,所以系统不可行。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第22章 单源最短路径 · 查看原书依据
Now we show that if the constraint graph contains a negative-weight cycle, then the system of difference constraints has no feasible solution. Without loss of generality, let the negative-weight cycle be c = 〈v1, v2,
参考来源
- 位置:《算法导论(第4版)》第22章《单源最短路径》(OEBPS/chapter022.xhtml,文本字符[50000,55000))。
- 结论依据:定理22.9的反向证明对环上约束求和并得到矛盾。
- 原始内容:Now we show that if the constraint graph contains a negative-weight cycle, then the system of difference constraints has no feasible solution. Without loss of generality, let the negative-weight cycle be c = 〈 v 1 , v 2 , …