|
-
December 17th, 2011, 07:10 AM
#2
Re: short path algorithm
you said you have assumed all roads are connected. Simply, you have to remove that assumption and follow through the consequences.
In general, showing only a snippet is not very helpful, escpecially when you have not shown how you have parsed the file into queque / t / next.
Since your problem is that some things are not added to the queue, I would look at the code that adds things to the queue! no point in onyl showing us how you use the queue, when the problem has already happened!
Last edited by Amleto; December 17th, 2011 at 07:15 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|