知识卡片
边松弛仅在改进时更新
松弛边(u,v)时,若 u.d+w(u,v),就把 v.d 降为该值并把 v 的前驱设为 u;否则不变。
每次松弛 O(1),各算法差别在松弛顺序和次数。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第22章 单源最短路径 · 查看原书依据
The process of relaxing an edge (u, v) consists of testing whether going through vertex u improves the shortest path to vertex v found so far and, if so, updating v.d and v.π. A relaxation step might decrease the
参考来源
- 位置:《算法导论(第4版)》第22章《单源最短路径》(OEBPS/chapter022.xhtml,文本字符[10000,15000))。
- 结论依据:原文伪代码与图22.3展示改进和未改进两种情况。
- 原始内容:The process of relaxing an edge ( u , v ) consists of testing whether going through vertex u improves the shortest path to vertex v found so far and, if so, updating v.d and v .π. A relaxation step might decrease the