-
3 Comments
I get 'The server encountered an error while evaluating the solution.' Why? It runs well on my PC, giving correct solutions (at least for the first 3 test problems for which the solution is given).
Unfortunately Cody has a limit (approx. 20 seconds) on how long can a solution run before terminating it and outputting this error. You need to make your function faster in order to beat this limit (approximately, it should be able to compute the distance for a graph with 1,000 vertices and 10,000 edges in under 20 seconds; the current leading solution does this in less than a second)
I now understand. It is a pity that the Cody system does not report that the smaller problems are solved correctly. I guess the results you mention for large networks can be obtained only by commercial codes. I tried the code in the Bioinformatic toolbox. This would work, but needs a license.
Suggested Problems
-
1232 Solvers
-
260 Solvers
-
508 Solvers
-
866 Solvers
-
Getting the absolute index from a matrix
248 Solvers
More from this Author38
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!