I suppose this is an algorithm that finds the minimum distance from a node to another node (can you point exactly which Lab is this) like Djikstras algorithm.
If that is so, your distance is bigger, so its doing worse than the minimum expectation of 3855!
Thank you for bringing this issue to our attention. You were correct; there was an error in the calculation. We apologize for any inconvenience this may have caused. The corrected version of the autograder has been updated and is now available. Please try resubmitting your solution. If you encounter any further issues, please let me know.
Expected: Solution no greater than 76% of Nearest Neighbor.
Got: For the graph starting at node 0, the target path distance to beat is 3855. Your algorithm returned a distance of 3855, greater than 76%.
I have been running the tsp_medium_graph function with a few updates and getting the below error:
Failed test case: Exceeded time execution limit for a tour starting in node 0. To replicate the graph, you may run generate_graph(nodes = 300, complete = True, seed = 42).
Expected: tsp_medium_graph method must run in less than 1.3 seconds
Got: Time execution exceeded 1.3 seconds
The latest approach uses a Modified Nearest Neighbor Heuristic with Greedy Improvements.
Any recommendation on how to deal with that?
amples of failed tests will be provided.
Expected:
At least 85% of success shortest_path running below 0.7s and achieving the correct distance,
but got:
Success rate: 0%.
Failed test case: shortest_path returned an exception in test case. You may replicate the graph by running generate_graph(nodes = 10000, edges = 10, seed = 65).
Expected:
shortest_path must run without exceptions,
but got:
Exception thrown is: name ‘dist’ is not defined.
Failed test case: shortest_path returned an exception in test case. You may replicate the graph by running generate_graph(nodes = 10000, edges = 10, seed = 66).
Expected:
shortest_path must run without exceptions,
but got:
Exception thrown is: name ‘dist’ is not defined.
Failed test case: shortest_path returned an exception in test case. You may replicate the graph by running generate_graph(nodes = 10000, edges = 10, seed = 67).
Expected:
shortest_path must run without exceptions,
but got:
Exception thrown is: name ‘dist’ is not defined.