知识卡片

普通读书笔记卡 · 3649.c.3

BFS前驱子图是最短路树

理解等级:中级

用每个已发现顶点的 π 父边组成前驱子图;若它包含全部源点可达顶点,且从源点到各点的唯一树路径都是原图最短边数路径,就称为广度优先树。

BFS 得到的 π 满足此定义。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第20章 基本图算法 · 查看原书依据

      The predecessor subgraph Gπ is a breadth-first tree if Vπ consists of the vertices reachable from s and, for all v ∈ Vπ, the subgraph Gπ contains a unique simple path from s to v that is also a shortest path from s to v in G.

    参考来源

    - 位置:《算法导论(第4版)》第20章《基本图算法》(OEBPS/chapter020.xhtml,文本字符[25000,30000))。 - 结论依据:原文给出广度优先树的可达顶点与唯一最短树路径定义,并随后证明BFS输出符合。 - 原始内容:The predecessor subgraph G π is a breadth-first tree if V π consists of the vertices reachable from s and, for all v ∈ V π , the subgraph G π contains a unique simple path from s to v that is also a shortest path from s to v in G .