知识卡片

普通读书笔记卡 · 3644.c

安全边保持最优树扩展性

理解等级:中级

泛化 MST 算法维护边集合 A:它始终包含于某棵最小生成树。

若加入边 e 后仍能包含于某棵最优树,e 对 A 就是安全边;持续加安全边直到覆盖全图。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      We call such an edge a safe edge for A, since it can be added safely to A while maintaining the invariant. This generic algorithm uses the loop invariant as follows: Initialization: After line 1, the set A trivially satisfies the loop

    参考来源

    - 位置:《算法导论(第4版)》第21章《最小生成树》(OEBPS/chapter021.xhtml,文本字符[0,5000))。 - 结论依据:原文定义安全边并给出泛化算法循环不变量与终止条件。 - 原始内容:We call such an edge a safe edge for A , since it can be added safely to A while maintaining the invariant. This generic algorithm uses the loop invariant as follows: Initialization: After line 1, the set A trivially satisfies the loop