Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 20th, 2003, 11:28 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] Results

Well, here are the results.

01) script 13, Zack Coburn
02) script 3, Dennis Okon (honcho)
03) script 7, Ludovico Grossi (lamase)
04) script 8, Matthew Sherman
05) script 1, Alexander Mavrin
06) script 5, Ivan Sanchez
07) script 12, Wouter Smeenk (varan)
08) script 9, Neil Cahill (vertigo)
09) script 6, Kevin Hjelden (FryGuy1013)
10) script 11, Rolando Gonzales Chevere
11) script 4, Florent Delgoulet
12) script 10, Richard Story
13) script 2, Ben Hague

Here is a long explanation of results:

Only two scripts followed all the rules completely and didn't produce any invalid solutions. Those are scripts 13 and 3, with 110 and 97 solutions, respectively. They take first two places.

Script 7 produced 111 solutions and worked without any errors, except that it tried to write the log file into a wrong directory. It takes the third place.

Fourth place goes to script 8, which produced 900 solutions, yet failed to write to the correct directory and also produced an invalid log format.

Script 1 outputted timeouts on 9/12 input sets, but more importantly, in the case of (1,2,3,4,5,6,101) it returned 6 invalid solutions, all of which evaluated to 0/0 (e.g. (1-5+4)/(2*3-6)). It is very unfortunate for it to do so, because it would've won with 2881(!) solutions. However, it only gets 5th place.

6th place goes to script 5, which produced 729 valid solutions, but also produced a number of invalid solutions, resolving to -target instead of target (e.g. (((59-38-33-2)*24)+43) evals to -293, not 293).

Script 12 produced 437 valid solutions and ran OK in 10 runs (except log location/format), but it produced duplicates in 2 runs, so it gets 7th place.

Script 9 produced 373 valid solutions, but also produced duplicates and used numbers more than once. It gets 8th place.

Script 6 used " " instead of a comma as a separator, and produced invalid solutions and duplicates. It also produced 486 valid solutions, however, so it gets 9th place.

Script 11 produced 18 valid solutions, but included duplicates in 3 sets. It gets 10th place.

Script 4 used numbers that weren't even present in the input set, and also produced duplicates and completely invalid expressions (e.g. 6 - ( ( 5 ) ) - 8 evals to -7, not 101). It gets 11th place.

Script 10 didn't include the input sets in its log file, and also produced duplicates and used numbers more than once (((8+9) - (6-9*10)) = 101). It gets 12th place. I only checked the first two input sets, because I didn't feel like inserting the numbers into log files for my log checker to work.

Finally, script 2 failed to run at all on my server, it seg.faulted Apache on every try - not even HTTP headers were returned. (I also tried to run it from command line with the same result; I guess 10MB PHP file is not a good idea?) It gets the last place.

Reply With Quote
  #2  
Old November 20th, 2003, 12:08 PM
Varan Varan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 23 Varan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

7th place is good for my put-together-at-the-last-moment script

When will the next contest be up?

Varan

Reply With Quote
  #3  
Old November 20th, 2003, 12:31 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
[numbers] RE: Results

I didn't think my concentrate-on-the-rules-and-not-the-search plan would work so well.

Reply With Quote
  #4  
Old November 20th, 2003, 12:35 PM
Varan Varan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 23 Varan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

Yep it did with THIS contest

Reply With Quote
  #5  
Old November 20th, 2003, 01:01 PM
wtfai wtfai is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochdale, UK
Posts: 14 wtfai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

What system did you use to run the scripts? I ask because my script works fine on my Linux box with 1 G of memory and a XP2000+ processor and PHP 4.3.2 and Apache 1.3.27.

I'm not too disappointed given that it was the first php program I've ever written and that it did solve the problem quite well. It would have been even better if I'd found the right approach earlier and had time to refine it properly.

Ben Hague

Reply With Quote
  #6  
Old November 20th, 2003, 01:07 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: Results

Quote:
The memory allowed will be 32 MB.


Reply With Quote
  #7  
Old November 20th, 2003, 01:23 PM
wtfai wtfai is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochdale, UK
Posts: 14 wtfai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

Quote (from php.ini) memory_limit = 32M. Is that a different memory limit?

Ben Hague

Reply With Quote
  #8  
Old November 21st, 2003, 12:30 AM
MrMatt MrMatt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 19 MrMatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

What do you mean by an invalid log format for script #8?

I'm a little miffed at being dropped on a technicality.

Reply With Quote
  #9  
Old November 21st, 2003, 08:03 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: Results

Quote:
This log file should contain a line read in from the input file, then all solutions you find (each on a seperate line). The log file will then contain the next line from the input file, and all its solutions, and so on.

Your solution did not include a line from the input file, and the lines that included solutions also had some mumbo-jumbo

While it's true that it's a technicality, you still didn't follow the rules...

Reply With Quote
  #10  
Old November 21st, 2003, 09:02 AM
FryGuy1013 FryGuy1013 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Antelope, Ca
Posts: 45 FryGuy1013 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to FryGuy1013 Send a message via AIM to FryGuy1013 Send a message via Yahoo to FryGuy1013
[numbers] RE: Results

Just out of curiousity, how did your script do xs0? I know you were late, but it'd still be fun to see how much you'd have whooped our butts

Also, is it possible to see the log files? I don't know how it's possible that mine can report invalid results or duplicates

Reply With Quote
  #11  
Old November 21st, 2003, 11:24 AM
zackcoburn zackcoburn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 184 zackcoburn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: Results

Quote:
Only two scripts followed all the rules completely and didn't produce any invalid solutions.


Wow!

Reply With Quote
  #12  
Old November 21st, 2003, 12:51 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: RE: Results

Quote:
Just out of curiousity, how did your script do xs0? I know you were late, but it'd still be fun to see how much you'd have whooped our butts


I'd get 2905 results without any errors

Quote:
Also, is it possible to see the log files? I don't know how it's possible that mine can report invalid results or duplicates

Sure, which script is yours?

Reply With Quote
  #13  
Old November 21st, 2003, 01:08 PM
Baphomet Baphomet is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Moscow, Russia
Posts: 11 Baphomet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Baphomet
[numbers] RE: Results

As said "The Bat": "Sad but true".

Reply With Quote
  #14  
Old November 21st, 2003, 03:26 PM
MrMatt MrMatt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 19 MrMatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Results

I'm sorry xs0, I disagree with your comments regarding script #8.

Here is a sample of my output
php Code:
Original - php Code
  1.  
  2. ( 33, 22, 48, 95, 36, 63 ) target 643
  3. '01*2+3-4-' mapping 01234, set 0 => ((((33 * 22) + 48) - 95) - 36) = 643
  4. '201/-34-*5-' mapping 015243, set 0 => (((63 - (33 / 22)) * (48 - 36)) - 95) = 643
  5.  
  6. ( 58, 48, 60, 43, 65, 64 ) target 652
  7. '10-2*3-4-5+' mapping 120345, set 1 => (((((60 - 48) * 58) - 43) - 65) + 64) = 652
  8. '01*23*-4+' mapping 05142, set 1 => (((58 * 64) - (48 * 65)) + 60) = 652

This says

Line 1: input ( 33, 22, 48, 95, 36, 63 ) target 643
Line 2: solution ((((33 * 22) + 48) - 95) - 36) = 643
Line 3: solution (((63 - (33 / 22)) * (48 - 36)) - 95) = 643
Line 4: <blank line>
Line 5: next input ( 58, 48, 60, 43, 65, 64 ) target 652
Line 6: solution (((((60 - 48) * 58) - 43) - 65) + 64) = 652
Line 7: solution (((58 * 64) - (48 * 65)) + 60) = 652

The gobbledygook you refer to just displays my scripts thinking as a courtesy:
Base equation: '01*2+3-4-'
The inputs I used: 01234 (inputs 0, 1, 2, 3, 4)

This matches the log format requirement just fine.

Reply With Quote
  #15  
Old November 21st, 2003, 04:00 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: Results



I know what it means, but "input ( 33, 22, 48, 95, 36, 63 ) target 643" is not a line from the input file, and "'01*2+3-4-' mapping 01234, set 0 => ((((33 * 22) + 48) - 95) - 36) = 643" is not a solution.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [numbers] Results