Reputation: 2890
We are given an undirected graph G = (V, E) and two vertices s, t ∈ V . We consider simple paths between s and t. A path is simple if every vertex is visited at most once.
Are the following in P or NP-complete?
Does an efficient algorithm polynomial time exist for the following?
"n" represents the number of vertices in the graph "V"
My thoughts (please correct me if I'm wrong) Your input is appreciated.
Upvotes: 2
Views: 2717
Reputation: 770
What I've come up with:
Upvotes: 0
Reputation: 112386
You're on the right track. I wrote another piece on NP-complete to which I'm going to refer you for some of the details, but recall that basically you need to do two things to prove something NP-complete:
Doing 1 is pretty easy (if something walking the graph "knew" all the right decision of the next edge to take, would it find an answer in polynomial time?); I'd think seriously about the "decision TSP" problem I describe in the other note.
Upvotes: 1