Re: Finding longest path between two vertices
- From: Jym <Jean-Yves.Moyen+news@xxxxxxxxxxxx>
- Date: Mon, 18 Jun 2007 19:46:07 +0200
On Mon, 18 Jun 2007 07:31:59 +0200, Joachim Pimiskern <JoachimPimiskern@xxxxxx> wrote:
Tim Frink schrieb:
> Do you see any problems with my suggestion of negating
> the edge weights and than search the shortest path?
It's not you, who will assign edge weights to the
original graph, it's the user of your algorithm.
To get a Hamiltonian path, he'll set all edges
to the same value, e.g. 1.
Well, I'm not completely sure with the argument (erm, the fact that Tim Chow support it make me think that I have missed the point)...
Typically, if one takes a graph with weight -1 on each edge and search for the shortest path between two vertices, why won't that gives an Hamiltonian path ?
If weights -1 everywhere doesn't give Hamiltonian path, how comes weights 1 and longest path gives it ?
Negating the weights and looking for shortest path (or, rather, modyfing directly the algorithm) seems alright with me.
--
Hypocoristiquement,
Jym.
.
- Follow-Ups:
- Re: Finding longest path between two vertices
- From: tchow
- Re: Finding longest path between two vertices
- References:
- Finding longest path between two vertices
- From: Tim Frink
- Re: Finding longest path between two vertices
- From: estrabd
- Re: Finding longest path between two vertices
- From: Tobias Columbus
- Re: Finding longest path between two vertices
- From: Robby Goetschalckx
- Re: Finding longest path between two vertices
- From: Tim Frink
- Re: Finding longest path between two vertices
- From: Joachim Pimiskern
- Finding longest path between two vertices
- Prev by Date: Re: Finding longest path between two vertices
- Next by Date: Re: Finding longest path between two vertices
- Previous by thread: Re: Finding longest path between two vertices
- Next by thread: Re: Finding longest path between two vertices
- Index(es):
Relevant Pages
|