Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dijkstra's Shortest Path algorithm

Status
Not open for further replies.

CaitlinC

IS-IT--Management
Oct 28, 2001
5
US
Hi all,

I'm littlbe bit stuck on the Dijkstra's Shortest Path algorithm, would somebody help me out with its implementation?

For you who don't know, basically in overview:

You have
1 2 1
2 4 1
4 3 1
1 3 5
This states that there are four routers, the distance between router 1 and 2 is 1, between 2 and 4 is 1, etc...

The shortest distance from router 1 to router 2 is 1, the shortest distance from router 1 to router 3 is 3 and so on...

Any help would be greatly appreciated.

Thanks.
Caitlin.
 
CaitlinC,

I have just written a program using the Dijkstra's Shortest Path algorithm, and unless someone answers your question before I get home today (In 6 hours or so) I will be glad to provide some code for ya!

Dmitriy. <Dmitriy>
dbrom@crosswinds.net
 
Dmitriy,

Thanks very much. Would you please? :)

I'm glad someone out there like you are writing something similar as I'm too. I'm not a Java savvy, your help would be greatly appreciated.

Thanks alot.
-Caitlin
 
Sorry, I got back home very late yesterday...

I will post some stuff this evening.

Again, sorry :( <Dmitriy>
dbrom@crosswinds.net
 
No problem! :)

Thanks again in advance.

-Caitlin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top