algorithm - 证明最优路径覆盖的NP完备性

标签 algorithm np np-complete np-hard

paper解决 block 图或二部置换图的最优路径覆盖问题。在其介绍的第三行中写道,最佳路径覆盖问题是 NP 完全问题,并引用了“计算机和难处理性:David S. Johnson,Michael R. Garey 的 NP 完整性理论指南”。但我在书中找不到它的证据。如果有人知道如何证明此问题的 NP 完全性,请分享您的解决方案。

Optimal path cover problem:
Given a graph G, find a minimum number of vertex disjoint paths which together cover all the vertices of the graph.

最佳答案

考虑明显的决策变体(即给定k,是否有k条路径的覆盖)

OPC(k=1) 检测哈密顿路径,很明显它是 NP 难的。

它也在 NP 中,因为给定路径,检查它们是否不相交和覆盖很容易。

关于algorithm - 证明最优路径覆盖的NP完备性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40888929/

相关文章:

algorithm - 多台机器利润递减的高效调度作业

computer-science - 第一个 NP 完全问题是如何被证明是 NP 完全的?

python - 实现自定义哈希方法

c++ - 如何将 M x N 矩阵原地旋转 180 度?

c - 二叉树 - 无法添加值

c++ - 2 名玩家,pion 在矩阵中移动

algorithm - 多 TSP 有一个转折

algorithm - 判断是否存在访问某个节点的简单路径?

algorithm - 这是NP问题吗?

algorithm - 求这个修改区间图的色数问题是NP-Complete吗?