知识卡片

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

Prim每轮维持最轻跨割边

理解等级:中级

Prim 的队列 Q 是未入树顶点;每次提取最小 key 顶点,相当于选择跨 (V−Q,Q) 的轻边。

扫描该顶点邻居并降低更优键值,保持每个队列顶点的当前最轻接入边。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      The algorithm maintains the following three-part loop invariant: Prior to each iteration of the while loop of lines 8–14, A = {(v, v.π) : v ∈ V – {r} – Q}. The vertices already placed into the minimum spanning tree are those

    参考来源

    - 位置:《算法导论(第4版)》第21章《最小生成树》(OEBPS/chapter021.xhtml,文本字符[20000,25000))。 - 结论依据:原文三段循环不变量与提取、松弛步骤共同说明跨割轻边选择。 - 原始内容:The algorithm maintains the following three-part loop invariant: Prior to each iteration of the while loop of lines 8–14, A = {( v , v .π) : v ∈ V – {r} – Q }. The vertices already placed into the minimum spanning tree are those