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.
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.