知识卡片

普通读书笔记卡 · 3645.d.1.b.1

BF轮数由路径边数保证

理解等级:中级

有限最短路径可选为简单路径,最多 |V|−1 条边。每一轮遍历所有边,至少能把最短路上下一条边按序松弛;因此 |V|−1 轮后可达顶点估计收敛。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第22章 单源最短路径 · 查看原书依据

      Lemma 22.2 Let G = (V, E) be a weighted, directed graph with source vertex s and weight function w : E → ℝ, and assume that G contains no negative-weight cycles that are reachable from s. Then, after the |V| − 1

    参考来源

    - 位置:《算法导论(第4版)》第22章《单源最短路径》(OEBPS/chapter022.xhtml,文本字符[20000,25000))。 - 结论依据:引理22.2借最短路边数上界和路径松弛性质证明收敛。 - 原始内容:Lemma 22.2 Let G = ( V , E ) be a weighted, directed graph with source vertex s and weight function w : E → ℝ , and assume that G contains no negative-weight cycles that are reachable from s . Then, after the | V | − 1