-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update output_random_19_32.txt #60
base: master
Are you sure you want to change the base?
Conversation
I think -208 is the correct result.
Hi @simonsteinberg! Thanks for sharing this PR. I'm looking at the change and the current output is -280, but you propose -208 as the right solution. My question is, wouldn't -280 be a path shorter than -208? |
Hi @dgrcode, I used your test data sets to test my code for the Coursera programming assignments. Thank You for providing the examples :-) My implementation of the Floyed-Warshall algorithm was able to reproduce the results you provided for some of the other test-cases (10_8 and 24_64) and passed the Coursera assignment. So I was pretty confident, that it worked correctly. Of course, there is still the possibility, that my implementation is not correct. If so, I am sorry to have stolen some of your precious time. |
Hi @simonsteinberg! I see your point. In this case it looks like it could be a typo due to having the same characters but in different order 😅 . However, the algorithm I implemented gave a result of -280 for My guess is that there might be an edge case in that input file that makes it harder to find the optimal solution. The current situation is:
Because of that, I think we could keep -280 as the result in I propose that we close this issue then. What do you think? |
Thank you @simonsteinberg for your contribution to this project. 🤝 I agree with @dgrcode 's rationale. Perhaps a good feature for this repository might be to include the path itself as a |
That's a very good point. That way we could at least know that the current solution is a valid one. I like it. I'll try to find some time to implement the changes needed in my algorithms so I can extract the paths for the solutions. I'm not sure if this could be extended to other type of algorithms, but so far implementing this for graphs would be an improvement. @beaunus do you think a single |
@dgrcode I agree that a single file would be easier to navigate. But, thinking about the implementation...
Thus, I propose that we add |
Haha no problem! I think you're right about changing the lines. It's not like it couldn't be done, but it's going to be definitely easier to create a file per input. I'm also thinking about the added advantage of being able to see the modification time per file, so people can see if and when a verbose output changed. They could also see that info looking at the "git blame" of the single file, but it's a bit cumbersome compared to single files. Cool! I'll create the |
I think -208 is the correct result.