知识卡片

普通读书笔记卡 · 3644.c.3.a

Kruskal逐步合并森林

理解等级:中级

Kruskal 维护覆盖所有顶点的森林;每轮选连接两个不同分量的全局最低权边,将两棵树合并。

它依赖分量轻边安全性,适合用不相交集合判断端点是否已连通。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第21章 最小生成树 · 查看原书依据

      In Kruskal’s algorithm, the set A is a forest whose vertices are all those of the given graph. The safe edge added to A is always a lowest-weight edge in the graph that connects two distinct components. In Prim’s algorithm, the set A

    参考来源

    - 位置:《算法导论(第4版)》第21章《最小生成树》(OEBPS/chapter021.xhtml,文本字符[10000,15000))。 - 结论依据:原文比较Kruskal与Prim的 A 形态,并在后文说明最低权跨树边及并查集用途。 - 原始内容:In Kruskal’s algorithm, the set A is a forest whose vertices are all those of the given graph. The safe edge added to A is always a lowest-weight edge in the graph that connects two distinct components. In Prim’s algorithm, the set A