PC Review


Reply
Thread Tools Rate Thread

Dijkstra Algorithm

 
 
arlef
Guest
Posts: n/a
 
      26th Jul 2006
Can somebody please explain and provide pseudocode for the Dijkstra
algorithm?

I'm trying to implement the Dijkstra shortest path algorithm. However, I'm
finding it extremely difficult to understand.

I've a node class that hold the node name, and the x,y coordinate.
I've an edge class the takes two(2) nodes, from and to, and a name for the
edge.
I'm using only simple arrays to store the nodes and the edges, no priority
queues.

I've also read the pseudocode on:
http://en.wikipedia.org/wiki/Dijkstra's_algorithm
but find it too mathematical.

Can somebody please provide me with pseudocode and comments/exlanation that
uses simple arrays and programming contructs?

Many thanks

James


 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      26th Jul 2006
How about googling +Dijkstra +c# +"shortest path" - yields a good hit:

http://cs.nerdbank.net/blogs/jmpinli..._CallBack=true
(I cannot vouch for the quality of code / math)

However; graph theory is by definition quite math orientated; if you don't
understand the math, I would advise sticking to pre-written code - otherwise
you will struggle to maintain it. Or - go to the library and get a book on
graph theory; some books make it quite easy to follow with visualisations
etc - note that "quite easy" in this context is subjective.

Marc


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dijkstra Algorithm In Excel =?Utf-8?B?RGlwYXF1ZQ==?= Microsoft Excel Programming 2 6th Apr 2011 04:24 AM
Has anyone out there got a micrososft excel macro to run Dijkstra =?Utf-8?B?RGlwYXF1ZQ==?= Microsoft Excel Programming 2 4th Feb 2007 11:58 AM
Help with an algorithm =?Utf-8?B?RGFu?= Microsoft Excel Programming 4 10th Sep 2006 01:51 AM
Plz Review My Dijkstra Implementation A_StClaire_@hotmail.com Microsoft C# .NET 5 7th Nov 2005 10:10 PM
Does Dijkstra's Algorithm Go Backwards? A_StClaire_@hotmail.com Microsoft C# .NET 2 7th Nov 2005 02:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:08 PM.