Jump to content

Recommended Posts

Greetings,

 

Forgive the 'first-post-seek-help' thingy. I've tried to understand certain codes through online resources and even offline help (friends/lecturers) but nothing work. I'm really desperate as my assignment is nearing the end and I am pretty much stuck at the start of the codings.

 

I've tried developing something from scratch but, that was worse and much time consuming. Hence, I'm using an open source code (which is even more time consuming; needs understanding of other people's codes but at least the program is workable).

 

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 please kindly explain to me what it function does in the codes? (I understand this is total spoonfeeding) I understand some of the functions function but, I do not know how to explain it using words, why is it there and what is it used for in the entire codes. (Which parameters/segments does it affect).

 

I've tried editing the codes to form a graph of my own, very basic 4 points to calculate which is better path but after trying for 2 weeks, I still couldn't figure out how.

 

I'll appreciate any form of help and I apologise for the lengthy and whiney post. Here is the link for the open source file.

 

http://download.yousendit.com/C0E3F70E56913777

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

 

Hope to hear from someone soon. Please help!

 

Best Regards,

Last

Link to comment
https://forums.phpfreaks.com/topic/55697-newbie-needs-help-with-os-codings-cry/
Share on other sites

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.

 

PS: Couldn't edit the first post. Thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.