I believe that the Hamiltonian cycle problem can be summed up as the following:
Given an undirected graph
G = (V, E)
, a Hamiltonian circuit is a tour inG
passing through every vertex ofG
once and only once.
Now, what I would like to do is reduce my problem to this. My problem is:
Given a weighted undirected graph
G
, integerk
, and verticesu, v
both inG
, is there a simple path inG
fromu
tov
with total weight of AT LEASTk
?
So knowing that the Hamiltonian cycle problem is NP-complete, by reducing this problem to the Hamiltonian, this problem is also proved NP-complete. My issue is the function reducing it to Hamiltonian.
For (1), I am thinking along the lines of passing a graph with all simple paths of total weight LESS THAN k taken out. For (2), I am thinking that this is not really an issue, because if there is a Hamiltonian cycle, then the simple path from u to v can be sliced out of it.
So, my real questions are:
Thanks!
More of a hint than an answer:
A unweighted graph can be interpreted as a weighted graph where each edge has weight 1
. What would the cost of a Hamiltonian cycle be in a graph like that?