知识卡片
生成树验证判定给定树是否最优
生成树验证的输入是一张图和其中一棵生成树,任务是判断这棵树是否为 MST。
它不同于从头求树;原书章末只提及已有线性时间算法,未展开其步骤。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第21章 最小生成树 · 查看原书依据
A related problem is spanning-tree verification: given a graph G = (V, E) and a tree T ⊆ E, determine whether T is a minimum spanning tree of G. King [254] gives a linear-time algorithm to verify a spanning tree,
参考来源
- 位置:《算法导论(第4版)》第21章《最小生成树》(OEBPS/chapter021.xhtml,文本字符[30000,35000))。
- 结论依据:章末注释给出验证问题定义并引用线性算法,未提供可直接复现的算法。
- 原始内容:A related problem is spanning-tree verification : given a graph G = ( V , E ) and a tree T ⊆ E , determine whether T is a minimum spanning tree of G . King [ 254 ] gives a linear-time algorithm to verify a spanning tree,