Re: Complexity of Finding the longest simple path in a graph
- From: "Michal Brzozowski" <rusolis@xxxxxxxxx>
- Date: 30 Jul 2005 13:29:53 -0700
tomnab@xxxxxxxxx wrote:
[..]
>
> I'd like to know if I have well understood the previous assertions, if
> I can say that my problem is NP complete, and the corresponding
> references and arguments...
>
Yes, your problem is NP complete. You have to notice that if your
problem had a polynomial solution, then you could solve the
Hamiltonian (path) problem easily by asking "Is the length of the
longest simple path from vertex 1 to any other vertex equal to the
number of vertices?".
Hamiltonian path problem is known to be NP-complete.
.
- Follow-Ups:
- Re: Complexity of Finding the longest simple path in a graph
- From: Patricia Shanahan
- Re: Complexity of Finding the longest simple path in a graph
- References:
- Complexity of Finding the longest simple path in a graph
- From: tomnab@xxxxxxxxx
- Complexity of Finding the longest simple path in a graph
- Prev by Date: Re: Complexity of Finding the longest simple path in a graph
- Next by Date: Re: Complexity of Finding the longest simple path in a graph
- Previous by thread: Re: Complexity of Finding the longest simple path in a graph
- Next by thread: Re: Complexity of Finding the longest simple path in a graph
- Index(es):
Relevant Pages
|