Timeline for Travelling Salesman Problem solver
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 28, 2016 at 12:54 | comment | added | RK1 |
Thank you! It works great and is very elegant. One note, though: these classes are the logic for a bigger program that displays animation of the solution step-by-step (and displays current cost during that) and displays a chart (solution cost vs time) after animation ends. So I think it's justified to keep the TSPUtils class with just one method, getTotalTourCost(List<Point> points) . Because this method is useful across modules. It would be bad to repeat the exact same code. EDIT: I missed that that you left that method public in TSPSolver . No need for utils then.
|
|
May 28, 2016 at 12:11 | vote | accept | RK1 | ||
May 28, 2016 at 11:36 | history | answered | oopexpert | CC BY-SA 3.0 |