Page 1 of 1

Dijkstra Algorithm PHP Coding (Open Shortest Path)

Posted: Fri Jun 15, 2007 4:21 am
by thelast
Greetings,

My problem is, I am working on a program related to Dijkstra Algorithm. Link for your reference:

http://en.wikipedia.org/wiki/Dijkstra's_algorithm

My program's ultimate output or goal is to calculate the shortest path available to reach certain destination. (User's input of a place, and destination, program calculates and outputs the best path to take)

Can anyone advise me on how to shift the '0' to where I want them to be? Tried to echo at certain part of the functions like printMap but still, not sure which line affects the row of '0's; not the infinite distances aka 1000.

I'll appreciate any form of help and I apologise for the lengthy post.

http://download.yousendit.com/C0E3F70E56913777
http://download.yousendit.com/51617B0762202E16

Hope to hear from someone soon. Please help!

Best Regards,
Last

Posted: Sun Jun 17, 2007 8:05 am
by thelast
Bump.

PS: If I'm not allowed to do so please advise, thanks.

Regards,
Thelast

Posted: Thu Jun 21, 2007 10:05 am
by thelast
Bump.

Re: Dijkstra Algorithm PHP Coding (Open Shortest Path)

Posted: Thu Jun 21, 2007 10:25 am
by The Phoenix
thelast wrote: Can anyone advise me on how to shift the '0' to where I want them to be? Tried to echo at certain part of the functions like printMap but still, not sure which line affects the row of '0's; not the infinite distances aka 1000.
Could you explain what you mean here a little bit better? "Shift the 0 to where I want them to be" doesn't tell me much. Where DO you want them to be? Sorry, perhaps I'm just missing what you meant.