Re: Finding simple cycles approximating target distance
- From: "KoenM" <rockinfewl@xxxxxxxxx>
- Date: 10 Jan 2006 23:55:12 -0800
Keith A. Lewis wrote:
> "KoenM" <rockinfewl@xxxxxxxxx> writes in article <1136885432.085264.66410@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> dated 10 Jan 2006 01:30:32 -0800:
> >Thinking about developing a bicycle route finder, I'm not sure how to
> >best solve the following problem relating graph theory.
> >
> >Given a directed weighted graph, and a specific vertex as starting
> >point, how do I find simple cycles approximating some target distance,
> >most efficiently?
> >>From the graph at hand, I expect result cycles will consist of about 10
> >to 100 edges.
> >
> >I guess I'm after 'simple' cycles here, to make sure I get
> >'interesting' cycles to bike, and not heavily zigzagging ones that pass
> >the same point multiple times?
>
> Some thoughts and suggestions:
>
> Once you discover a cycle, it applies equally well using any point it
> contains as a starting point. Depending on the total number of edges in
> your database, you might want to consider cataloging simple cycles for quick
> lookup.
>
> Possibly only the simplest cycles should be in the catalog, two for each
> edge in most cases -- one going left at every opportunity for a
> counterclockwise cycle and the other going right for a clockwise cycle. You
> could build up a cycle by adding in adjacent cycles and subtracting the
> common edge. For directed edges, you'd also need a list of cycles with that
> edge reversed (again, just the two simplest) to make the edge subtraction
> work. Call these "alternative paths".
>
> HTH.
>
> --Keith Lewis klewis {at} mitre.org
> The above may not (yet) represent the opinions of my employer.
Thank you for the suggestion Keith.
I will look into this.
Koen.
.
- References:
- Finding simple cycles approximating target distance
- From: KoenM
- Re: Finding simple cycles approximating target distance
- From: Keith A. Lewis
- Finding simple cycles approximating target distance
- Prev by Date: Re: Vector, triangle chaos.
- Next by Date: Re: ONE
- Previous by thread: Re: Finding simple cycles approximating target distance
- Next by thread: Re: Finding simple cycles approximating target distance
- Index(es):
Relevant Pages
|