知识卡片
安全边保持最优树扩展性
泛化 MST 算法维护边集合 A:它始终包含于某棵最小生成树。
若加入边 e 后仍能包含于某棵最优树,e 对 A 就是安全边;持续加安全边直到覆盖全图。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 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