知识卡片
约束图以边表示差分不等式
为每个变量 x_i 建顶点 v_i;约束 x_j−x_i≤b_k 建边 v_i→v_j,权重 b_k。
再加源点 v0 到所有变量顶点的零权边,保证每个变量从源点可达。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第22章 单源最短路径 · 查看原书依据
More formally, given a system Ax ≤ b of difference constraints, the corresponding constraint graph is a weighted, directed graph G = (V, E), where V = {v0, v1,
参考来源
- 位置:《算法导论(第4版)》第22章《单源最短路径》(OEBPS/chapter022.xhtml,文本字符[50000,55000))。
- 结论依据:原文形式化定义约束图顶点、约束边和附加零权源边。
- 原始内容:More formally, given a system Ax ≤ b of difference constraints, the corresponding constraint graph is a weighted, directed graph G = ( V , E ), where V = { v 0 , v 1 , … , v n } and E = {( v i , v j ) : x j − x i ≤ b k is a