graph-theory - 这个解决NP-Hard Vertex Cover的贪心算法叫什么名字

标签 graph-theory vertex greedy

我在教科书中找到了这段伪代码,但我没有正确理解它,而且解释得很差。

Algorithm 8: Greedy Vertex Cover Algorithm Example(G=(V,E))
1) C := ;.
2) while (E 6= ;)
• Select a node v of maximal degree in G.
• C := C [{v}.
• Remove all edges e from E that are covered by v,
i.e. for which e\v 6= ; holds.
3) Return C.

该算法是解决顶点覆盖问题的贪心算法。有谁认识它并知道它的名字吗?我想了解更多相关信息。

最佳答案

我想你可以在 Vertex Cover Problem presentation 的第 8 页找到这个特定的算法。由 Gajanand Sharma 提供。

它似乎被称为Approx-Vertex-Cover,也称为顶点覆盖近似算法

在后续页面中,有一个有关该算法及其工作原理的示例。

也在 Approximation Algorithms: Vertex Cover document在第 2 页,您可以找到另一个很好的解释:

Algorithm 1: Approx-Vertex-Cover(G)

1 C←∅

2 while E 6= ∅

  pick any {u, v} ∈ E
  C ← C ∪ {u, v}
  delete all edges incident to either u or v 

return C

关于graph-theory - 这个解决NP-Hard Vertex Cover的贪心算法叫什么名字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36807324/

相关文章:

algorithm - 对于有多个销售人员且没有返回但已知顶点和端点的 TSP 的解决方案是什么?

3d - 计算网格的顶点价 OpenMesh

r - 可视化 iGraph 和标签对齐

python - 如何访问图中特定顶点的名称(python-igraph)

arrays - 数组中大小为 k 的最小词典子序列

r - 添加基于另一个网络的边缘属性

algorithm - 约翰逊算法图解

java - 为什么我在 Java 中实现的随机 Prim 算法只生成了完整的网格?

algorithm - 图着色算法的 bool 公式

java lookbehind for split by greedy quantifiers expressions