知识卡片
Dijkstra要求非负边权
Dijkstra 求加权有向图的单源最短路,但要求每条边权≥0。非负性保证从当前已定集合外选出的最小估计顶点不会被后续负边改写。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第22章 单源最短路径 · 查看原书依据
Dijkstra’s algorithm solves the single-source shortest-paths problem on a weighted, directed graph G = (V, E), but it requires nonnegative weights on all edges: w(u, v) ≥ 0 for each edge (u, v) ∈ E. As we shall
参考来源
- 位置:《算法导论(第4版)》第22章《单源最短路径》(OEBPS/chapter022.xhtml,文本字符[30000,35000))。
- 结论依据:原文列出非负边权前提;定理22.6证明依赖路径剩余边权非负。
- 原始内容:Dijkstra’s algorithm solves the single-source shortest-paths problem on a weighted, directed graph G = ( V , E ), but it requires nonnegative weights on all edges: w ( u , v ) ≥ 0 for each edge ( u , v ) ∈ E . As we shall