简体   繁体   English

最短哈密顿路径是 NP 难的吗?

[英]Is Shortest Hamiltonian path NP-hard?

Hamiltonian Path is a path that connects all nodes without repeat and it is an NP-complete problem.哈密顿路径是一条连接所有节点而不重复的路径,它是一个 NP 完全问题。

  1. Is the Shortest Hamiltonian Path (SHP) NP-hard?最短哈密顿路径 (SHP) 是 NP 难的吗?

  2. What is the difference between travelling salesman problem with SHP?旅行商问题与 SHP 有什么区别?

I assume the SHP problem is the Hamiltonian problem on the edge weighted graph.我假设 SHP 问题是边加权图上的哈密顿问题。 It is NP-hard because it is at least as hard as the Hamiltonian problem.它是 NP 难的,因为它至少和哈密顿问题一样难。 Assume you have an algorithm to solve the SHP problem, then you apply the algorithm on a weighted graph with all edge weights are 1, it will solve the Hamiltonian problem with the same time complexity.假设您有一个解决 SHP 问题的算法,然后将该算法应用于所有边权重为 1 的加权图,它将以相同的时间复杂度解决哈密顿问题。

TSP requires to return to the original vertex and you can visit each vertex more one once. TSP要求返回到原来的顶点,每个顶点可以多访问一次。 SHP asks for the path which visits every vertex exactly once. SHP 要求只访问每个顶点一次的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM