知识卡片

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

Prim只扩张一棵树

理解等级:中级

Prim 的 A 始终是一棵增长中的树;每轮选连接该树与尚未入树顶点的最低权边。

它与 Kruskal 扩张整片森林不同,但同样使用安全边规则。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      In Prim’s algorithm, the set A forms a single tree. The safe edge added to A is always a lowest-weight edge connecting the tree to a vertex not in the tree. Both algorithms assume that the input graph is connected and represented by

    参考来源

    - 位置:《算法导论(第4版)》第21章《最小生成树》(OEBPS/chapter021.xhtml,文本字符[10000,15000))。 - 结论依据:原文直接对比两算法的 A 结构和每轮选择规则。 - 原始内容:In Prim’s algorithm, the set A forms a single tree. The safe edge added to A is always a lowest-weight edge connecting the tree to a vertex not in the tree. Both algorithms assume that the input graph is connected and represented by