If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
![]() |
|
|
#101 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
|
|
|
|
|
|
#102 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
I need to sleep on before making a submission. It's about twelve hours I'm back again. I apologise for taking this so close to the deadline.
I can say that according to my preliminary testing this is much faster than the previous version whilst maintaining solution quality. Of course with the caveat I haven't submitted my latest code for official scoring. |
|
|
|
|
|
#103 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
Hi,
I just submitted a new version of my solver. This version comes with optimizations for TSP and support for ASTP. ATSP is pretty lame right now, I am still working on it. So here is a question for Alex: I get very good results with my ATSP algorithm. But I cannot reconstruct the path. (This is not Floyd-Warshall, where you can reconstruct the path with a little bit of extra work.) In other words, can I get away with reporting the solution without the path? I can fill you guys in on the details if necessary. |
|
|
|
|
|
#104 | |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Quote:
To other things, my TSP -- and to some degree ATSP -- improvement is algorithmic in nature whereas the previous tweaks were more about refactoring crummy code. I think the changes pack some real impact on my scoring. So that you know what to expect when I asked if you could wait for a while with the time limit setting. |
|
|
|
|
|
|
#105 |
|
Heteroscedasticitate
Join Date: Mar 2005
Posts: 2,354
|
And rankings updated to account for Bernd's latest submission - good job on the TSP Bernd! Now better work some more on that ATSP
We may consider partial scoring for simply the tour, but that's the referee's call. My strong suggestion is that you don't end up relying on that partial scoring
__________________
Donald Knuth: Science is what we understand well enough to explain to a computer. Art is everything else we do. |
|
|
|
|
|
#106 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Heh, rather serious improvements. Now, let's see if I can match those, hopefully this evening.
It may be the question arises again, where to draw the line between quality and speed. Or then I and Bernd engage in "normalization dialogue". But let's see when I get my code submitted. |
|
|
|
|
|
#107 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
Thanks guys. After normalizing to 360 secs I can finally read the charts!
Veikko, let me know if you want to go higher with the timeout. I'll adjust my timeout then. But I do think normalizing the running times makes it easier to compare our solvers. I have to say, I am learning a lot about the algorithms that I am using. I use two, let's call them A1 and A2. It turns out that A1 is really good at data sets with n < 3000 and A2 is really good at n >= 3000. The funny thing is that in the first submission I used both in combination for all data sets. And here is the thing that I learned: the costs for A1 for large data sets don't justify the results. I didn't get the bang for my money. On the other hand A2 is really powerful but takes longer. The performance went up like crazy by just removing A1 from the solver chain for large data sets. Now on to the final frontier: ATSP! I checked in a pretty lame ATSP solver and it shows in the results. I am working on another one that gives me great results but I cannot reconstruct the paths. Reconstructing those paths in combination with that particular algorithm (A3) has probably never been tried before. And, um, everything has to be done by Sunday. Cheers! Last edited by Bernd Paradies; 26-Oct-2012 at 18:20. |
|
|
|
|
|
#108 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
@Veikko: good luck on the last stretch of this competition!
After all this is over we should have a "virtual beer" together! Alex, you should come too. And where on Earth is Niels? |
|
|
|
|
|
#109 | ||
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Quote:
Quote:
We'll, I'm back on computer again. I think I have something new tonight and it should offer a match to your hefty performance gains. At least I hope so, but we'll see. |
||
|
|
|
|
|
#110 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
|
|
|
|
|
|
#111 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
Vodka? I have become a lightweight. I'd get drunk after one shot - even virtual vodka!
|
|
|
|
|
|
#112 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
@Veikko: If I don't get my act together on ATSP I would call this a draw.
I have read a few papers too. (I am not smart enough to come up with my own solution.) But I was shocked about the bad quality of the solutions of some of those academic papers. On the surface they all look reasonable and the formulas are intimidating. But when I started implementing some of those I ideas I often realized that the author was hiding very important facts and overstated the impact of their algorithms. For example, there is this one guy from Japan. He wrote two papers. In the first one he explains a GA algorithm and how to parallelize one part of it. Turns out that on larger data sets the time is spent 99% somewhere else and it doesn't matter at all what his parallel code does. A year later the same guy wrote a second paper kind of acknowledging that that other part is more important. But instead of solving the problem he presented a method for calculating quickly whether his algorithm should give up or not. Then another academic guy picked up his paper and stole the indexing scheme (which is indeed clever) without giving the first guy credit for it and "improved" a pre-existing algorithm by using that indexing scheme. But that second guy had a major design flaw in his source code, which he posted - otherwise I wouldn't know. After fixing the bug his claimed improvements melted away. Ha, ha, ha! Just be careful about those academic papers! - Bernd Last edited by Bernd Paradies; 26-Oct-2012 at 21:10. |
|
|
|
|
|
#113 | ||||||
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
The random component also can cause variation in results that is noticeable in the scoring, several percentage points within some timeframe. Oh well. I'll try to submit my code soon. Our newborn on one hand causes nightly trouble, on the other hand I have a reason to be awake. Last edited by Naurava kulkuri; 26-Oct-2012 at 21:32. |
||||||
|
|
|
|
|
#114 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Hi!
The new code is in. I'm off to sleep now, but I'll peek in "tomorrow" (that'd be today) and let you know if start working on further things. Cheers! |
|
|
|
|
|
#115 |
|
Heteroscedasticitate
Join Date: Mar 2005
Posts: 2,354
|
Results updated. Not too shabby Veikko, if I do say so myself. Though I must admit that I am left wondering why nobody likes the ATSP much
Bernd: Niels won't be joining your travels on this occasion (but there will be other contests in the future where you may cross swords...err...codes).
__________________
Donald Knuth: Science is what we understand well enough to explain to a computer. Art is everything else we do. |
|
|
|
|
|
#116 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
@Veikko: very impressive, indeed.
Jeez, am I still leading for TSP - but the distance shrank? In other words you are in the process of catching up? Or am I already on 2nd place for TSP? Alex? |
|
|
|
|
|
#117 | |||
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Thank you, thank you.
Quote:
Quote:
Or then I could use another algorithm, which would yield better results in approximately the same amount of time. One kind of problem is that there's plenty (well, enough) of such code in the Internjet, but I think I need to implement these on my own so I can say in good conscience it's enough an effort of my own. Basic approach problems... Quote:
Hmm, I tried also /favor:AMD64, but my pre-release version of Visual Studio said it doesn't recognise the switch. Does anyone know if it should work? Maybe I should turn on at least the AVX switch and also do x64 version. Especially the ATSP case should benefit of it. |
|||
|
|
|
|
|
#118 | |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Quote:
I have multiple ideas I'm rather certain would be fruitful in the context of this competition. Too little time, I should have started working on them a few weeks ago. A fast asymmetric solver would be of a lot commercial interest too! Last edited by Naurava kulkuri; 27-Oct-2012 at 11:00. |
|
|
|
|
|
|
#119 | |
|
Member
Join Date: Jan 2010
Posts: 375
|
Quote:
Just a note for the curious: I didn't really want to implement an approximating algorithm, neither did I want to reimplement Concorde, so I was just banging on good old Held-Karp. It'll give you the exact route, but not fast enough. Code is going to be available, don't want spoil it till Sunday. It's maybe visible I know more about optimization on a CPU & GPUs than about an acceptable TSP-solver. :P |
|
|
|
|
|
|
#120 |
|
Heteroscedasticitate
Join Date: Mar 2005
Posts: 2,354
|
Veikko, Bernd: I would focus on generating the best possible submission without concern for the positioning versus the competitor...after all, it is quite opaque what he is or isn't doing. At this point you're reasonably balanced, so with one strong pull it can go either way. Tomorrow morning, on the eve of the end-of-times
Also, if you gentlemen feel that x64 builds are a better case for you by all means, add an x64 compile target/configuration and we'll explore that too. Note that we'll still go with the lowest common denominator, so if only one of you has an x64 build we'll score based on x32.
__________________
Donald Knuth: Science is what we understand well enough to explain to a computer. Art is everything else we do. |
|
|
|
|
|
#121 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
Hello Alex,
I just submitted my 4th Solver version for Beyond3D's C++ AMP Contest! I also hard-coded the timeout limits accordingly so they would match with Veikko's running times from the latest rankings chart. Now, if he submits another version those running times may change. For that reason I have added support for setting the timeout value in ms via command line option. Just add "-timeout ms" to the command line before the tsp file name. I am willing to accept any comparison based on the timeout that Veikko chooses! Hey Veikko, you are a tough sparring partner. Not sure whether I can keep up with you. I am running out of steam... Cheers, - Bernd |
|
|
|
|
|
#122 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
@Alex: when is exactly the deadline?
Sun, 10/28/2012, 11:59 PM PST? Or GMT? This might get important... |
|
|
|
|
|
#123 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
Hey Niels, have fun in El Salvador!
- Bernd |
|
|
|
|
|
#124 |
|
Junior Member
Join Date: Sep 2012
Posts: 54
|
@Alex: x32 is fine with me!
|
|
|
|
|
|
#125 |
|
Junior Member
Join Date: Aug 2012
Posts: 67
|
Hi!
I made the timeout window parameters slightly larger, so it should calculate more. No idea how it effects the results on test machine, though. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|