知识卡片
白路径定理刻画DFS后代
DFS 发现 u 时,若存在从 u 到 v 且顶点均仍为白色的路径,则 v 必成为 u 的后代;反向也成立。
此结论适用于有向和无向图。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第20章 基本图算法 · 查看原书依据
Theorem 20.9 (White-path theorem) In a depth-first forest of a (directed or undirected) graph G = (V, E), vertex v is a descendant of vertex u if and only if at the time u.d that the search discovers u, there is a path from u to v consisting entirely of white vertices.
参考来源
- 位置:《算法导论(第4版)》第20章《基本图算法》(OEBPS/chapter020.xhtml,文本字符[40000,45000))。
- 结论依据:定理20.9给出白路径充要条件:发现u之时,存在从u到v全由白顶点组成的路径,当且仅当v在DFS森林中为u后代。
- 原始内容:Theorem 20.9 (White-path theorem) In a depth-first forest of a (directed or undirected) graph G = ( V , E ), vertex v is a descendant of vertex u if and only if at the time u.d that the search discovers u , there is a path from u to v consisting entirely of white vertices.