Best algorithms?
-
- Posts: 106
- Joined: Thu Oct 29, 2009 9:21 pm
Best algorithms?
For the people who have reached 513, how long did it take your program to run the actual solving code? (Ignoring web requests)
I just wrote one in C# today and with minimal effort of efficiency, my program took roughly 30 seconds for all the solving.
I just wrote one in C# today and with minimal effort of efficiency, my program took roughly 30 seconds for all the solving.
I think mine took about 0.08 seconds and was written in C that could have been improved by using a generator that would make the most likely to succeed maps first instead of going from one extremity to the other for each possible length. The code itself was actually quite simple and didn't employ anything fancy for threading or GPU use. Ran with Vista32 on a Core 2 Duo running at 2.1GHz on each core that happen to run at just 100°C
-
- Posts: 106
- Joined: Thu Oct 29, 2009 9:21 pm
I used a shell script for submitting results, downloading the next level and extracting the parameters.
The actual solving is done in single-threaded C.
Total CPU time (shell+C) for all levels is 30s in a 2.0GHz Core2. Most levels were solved in under 10ms, longest single-level runtime was 6.49s for 511.
The algorithm was developed after solving levels ~15-~40 with screen shots and GIMP.
The actual solving is done in single-threaded C.
Total CPU time (shell+C) for all levels is 30s in a 2.0GHz Core2. Most levels were solved in under 10ms, longest single-level runtime was 6.49s for 511.
The algorithm was developed after solving levels ~15-~40 with screen shots and GIMP.
Fun Fun Fun
tried the hillclimbing algo optimizing the number of crashes ... works well till level 100 then it sucks^^
-
- Posts: 273
- Joined: Thu Apr 10, 2008 9:47 pm
Sure is, the CPU heatsink is poorly attached using 4 push/twist locks (one of which broke). After putting on a load more thermal paste and laying the tower horizontal so gravity keeps it attached the temperature has dropped at least 20°CAllosentient wrote:100°C? That seems a bit hotCodeX wrote:Ran with Vista32 on a Core 2 Duo running at 2.1GHz on each core that happen to run at just 100°C
A few results
Finally I reached level 513 with some luck. I have a bug somewhere into my algorithm which I can not figure out at the moment, so I'm not able to solve the levels above 503 each time, but it seems there is some randomization into the levels so requesting a new version of the level helps sometime. This is the data from a run from level 1 to 503 a few minutes ago:
Download duration: 40.53 seconds
Maximum download duration: 40.53, average download duration: 5.218
Solving time for level 503: 0.774 seconds
Maximum solving duration: 6.057, average solving duration: 0.068
Download duration: 40.53 seconds
Maximum download duration: 40.53, average download duration: 5.218
Solving time for level 503: 0.774 seconds
Maximum solving duration: 6.057, average solving duration: 0.068
My solving times are about 300ms (till level 505), except level 448 they were under 1s. Level 448 needed 2082ms.
I have searched for all program paths with the same endpoint at once, using "dynamic programming".
The puzzle is so easy and levels small that doing more tricks would be waste of time.
--- edit ---
now around 510 there is a bit slowdown. Solution for 513 needed 8419ms and solution for 514 took 8199ms .
I have searched for all program paths with the same endpoint at once, using "dynamic programming".
The puzzle is so easy and levels small that doing more tricks would be waste of time.
--- edit ---
now around 510 there is a bit slowdown. Solution for 513 needed 8419ms and solution for 514 took 8199ms .
-
- Posts: 5
- Joined: Fri Dec 25, 2009 4:25 pm
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany