Click here to get back home

dykstra's algorithm for trip routing

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
dykstra's algorithm for trip routing VB.NET 01-24-2006
Get Chitika Premium
Posted by VB.NET on January 24, 2006, 8:46 pm
Please log in for more thread options
I'm looking for some information about finding the shortest route for
routing on roads. I know what dykstra's algorithm is, and how it can be
used for this purpose, but i'm looking for information on how to utilize it.
Basically, what are the "inputs" and "outputs" of the function? Do i need
my roads as points and vectors/distance, or the segments as coordinants? Is
there any code that shows this, in c, c++ or even vb?



Posted by Gunnar on January 25, 2006, 11:36 am
Please log in for more thread options

> I'm looking for some information about finding the shortest route for
> routing on roads. I know what dykstra's algorithm is, and how it can be
> used for this purpose, but i'm looking for information on how to utilize
> it. Basically, what are the "inputs" and "outputs" of the function? Do i
> need my roads as points and vectors/distance, or the segments as
> coordinants? Is there any code that shows this, in c, c++ or even vb?
>
>

Search for Dijkstra's Algorithm on Google...

//gml



Posted by VB.NET on January 25, 2006, 5:28 pm
Please log in for more thread options

>
>> I'm looking for some information about finding the shortest route for
>> routing on roads. I know what dykstra's algorithm is, and how it can be
>> used for this purpose, but i'm looking for information on how to utilize
>> it. Basically, what are the "inputs" and "outputs" of the function? Do i
>> need my roads as points and vectors/distance, or the segments as
>> coordinants? Is there any code that shows this, in c, c++ or even vb?
>
> Search for Dijkstra's Algorithm on Google...


awesome idea!



Posted by jimirwin on January 25, 2006, 7:17 pm
Please log in for more thread options

> I'm looking for some information about finding the shortest route for
> routing on roads. I know what dykstra's algorithm is, and how it can
> be used for this purpose, but i'm looking for information on how to
> utilize it. Basically, what are the "inputs" and "outputs" of the
> function? Do i need my roads as points and vectors/distance, or the
> segments as coordinants? Is there any code that shows this, in c, c++
> or even vb?
>
>

For small road networks, Dijkstra's algorithm works OK. For large
networks, you will likely have to create a hierarchical network of local
roads, feeders, thoroughfares, and freeways. Otherwise, the astronomic
number of potential routes slows the algorithm down dramatically, and you
will compute the absolute shortest route, even it if means diverting off of
interstates for short distances to save fractions of a mile or minutes.
Most users would find that objectionable.

You can make the intersections the graph nodes, and the road segments
between intersections as the graph edges. You can weight the edges by
distance, estimated time, or whatever your creativity comes up with as a
useful distance metric.

--
Jim Irwin
http://www.holoscenes.com

Posted by mensanator@aol.com on January 25, 2006, 8:29 pm
Please log in for more thread options
jimirwin wrote:
>
> > I'm looking for some information about finding the shortest route for
> > routing on roads. I know what dykstra's algorithm is, and how it can
> > be used for this purpose, but i'm looking for information on how to
> > utilize it. Basically, what are the "inputs" and "outputs" of the
> > function? Do i need my roads as points and vectors/distance, or the
> > segments as coordinants? Is there any code that shows this, in c, c++
> > or even vb?
> >
> >
>
> For small road networks, Dijkstra's algorithm works OK. For large
> networks, you will likely have to create a hierarchical network of local
> roads, feeders, thoroughfares, and freeways. Otherwise, the astronomic
> number of potential routes slows the algorithm down dramatically, and you
> will compute the absolute shortest route, even it if means diverting off of
> interstates for short distances to save fractions of a mile or minutes.
> Most users would find that objectionable.

Like the directions you get from MapQuest.

I saw a set of such directions someone had printed. It was a
100 mile or so route. From the starting point, one was to head
west and north along various small state roads before eventually
intersecting US Route 12 and following it to the end.

Funny thing was US Route 12 is literally only 1 block north of the
starting point, so instead of mucking about on all those state roads
going west and north, the driver could have simply gone northwest
on the much larger US highway and probably saved an hour of
travel time.

>
> You can make the intersections the graph nodes, and the road segments
> between intersections as the graph edges. You can weight the edges by
> distance, estimated time, or whatever your creativity comes up with as a
> useful distance metric.
>
> --
> Jim Irwin
> http://www.holoscenes.com


Similar ThreadsPosted
Routing Algorithms June 23, 2005, 1:04 pm
opensource map/routing software January 18, 2006, 6:03 pm
PPC Routing Software / CUstom Maps May 5, 2005, 1:50 pm
JOpt.NET Vehicle Routing Component for MapPoint 2006 ? September 27, 2007, 2:44 pm
Be Optimal! - DNA's Vehicle Routing Initiative 2008 October 4, 2008, 2:18 pm
JOpt.NET Multiple Vehicle Routing Component interfaces with Google Earth ! July 31, 2008, 4:22 pm
Press Release: Map-In-A-Box 2.0 brings affordable Routing and Proximity analysis to MapInfo Professional. March 16, 2004, 12:54 pm
Polyline labeling algorithm November 13, 2005, 10:58 pm
Douglas-Peucker Algorithm , VB6 December 8, 2005, 1:07 pm
Point in Polygon-Algorithm August 29, 2006, 9:19 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap