Timeline for Traveling Salesman Solution
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 26, 2017 at 19:50 | vote | accept | T145 | ||
Dec 21, 2017 at 18:07 | comment | added | T145 |
I've looked at the Collections.sort method even before your post. It takes a List data structure, and the only ones I could use for what I believe to be the best performance I have. If there's a way to improve it I'd love to know the specifics. Also, this should solve one of your qualms: github.com/T145/traveling-salesman/blob/master/src/T145/…
|
|
Dec 20, 2017 at 8:11 | comment | added | greybeard |
For the 4th to last point , please ask more specific questions left after perusing both links. You can get the source code of most every JRE, sunsoft/oracle's Collections.sort(list) calls list.sort(null) , which in turn uses this.toArray(); Arrays.sort(a, null) . For the last point, I consider adding code to my answer.
|
|
Dec 20, 2017 at 7:25 | comment | added | T145 | I'm interested in your last, 2nd to last and 4th to last points; can you expound on those? As for the naming convention things, yes I can improve there, but they don't really effect the functionality. To reference your first point, I'm caring more about the algorithm itself than proper Java etiquette, b/c as you said there are better languages. I just did Java as it's very well known and can hopefully reach a wider audience. | |
Dec 19, 2017 at 16:30 | history | answered | greybeard | CC BY-SA 3.0 |