知识卡片
双端点构造顶点覆盖
- 从未覆盖边中任取一条,
- 把它的两个端点都加入集合,
- 并删除它们覆盖的所有边;
重复到无边,所得集合必是顶点覆盖。
算法按邻接表可在线性图规模内完成,关键是任取边无需求最优覆盖。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第35章 近似算法 · 查看原书依据
The while loop of lines 3–6 repeatedly picks an edge (u, v) from E′, adds its endpoints u and v into C, and deletes all edges in E′ that u or v covers. Finally, line 7 returns the vertex cover C. The running time of this algorithm is O(V + E), using adjacency lists to represent E′. APPROX-VERTEX-COVER (G) 1 C = Ø 2 E′ = G.E 3
参考来源
- 位置:《算法导论(第4版)》第35章《近似算法》(OEBPS/chapter035.xhtml,文本字符[5000,10000))。
- 结论依据:第35章近似定义、顶点覆盖与满足三角不等式的旅行商算法;图35.1–35.2已核对。
- 原始内容:The while loop of lines 3–6 repeatedly picks an edge ( u , v ) from E ′, adds its endpoints u and v into C , and deletes all edges in E ′ that u or v covers. Finally, line 7 returns the vertex cover C . The running time of this algorithm is O ( V + E ), using adjacency lists to represent E ′. A PPROX -V ERTEX -C OVER ( G ) 1 C = Ø 2 E ′ = G.E 3