| Author |
Message |
| MatthewV |
Posted: Thu Mar 01, 2012 10:29 am Post subject: 1 |
|
I guess this one was too easy
Well, it shouldn't be too surprising to the two participants...
Elethiomel (around 12.02)
(9 + 20 + 9) * (19 - 1 / 12 - 5 + 1 + 16 + 25) + 5 + 1 + 18=2 148.83333
Zag (9 + 2 + 0.84915 = 11.84915)
9 + 20 + 9 + 19 + 1 + 12*(5+1) + 16*25*5 + 1 + 18 = 2149
Elethiomel and Zag
9 + 20 - 9 + 19 + 1 + (12 + 5 + 1 + 16*25)*5 + 1 + 18 = 2149
cost = 1 + 2 + 3 + 3 + 0.84915 = 9.84915 |
|
 |
| Elethiomel |
Posted: Thu Mar 01, 2012 10:28 am Post subject: 0 |
|
| I took a similar approach, in that I used Python and approached the problem as a string processing problem, simply using eval() for evaluating expressions. By the look of your parameters, I also limited the search space much more, and once I found some good solutions I knew there was no need to make a broader search. |
|
 |
| novice |
Posted: Thu Mar 01, 2012 8:58 am Post subject: -1 |
|
Well here's what my javascript solver could come up with before it crashed after 12550000 formulas:
Javascript is probably not the best language to code this in.
But using an interpreted language saved me from writing an evaluation function, and the solver also works as a javascript performance benchmark. |
|
 |
| MatthewV |
Posted: Thu Mar 01, 2012 5:36 am Post subject: -2 |
|
| Oh right, this ends in a few hours. |
|
 |
| Elethiomel |
Posted: Wed Feb 22, 2012 8:05 pm Post subject: -3 |
|
Here is mine. One -, Two *, One set of parens.
9 + 20 - 9 + 19 + 1 + ( 12 + 5 + 1 + 16 * 25 ) * 5 + 1 + 18 = 2149
The first one I submitted was more accurate, but used another set of parens:
(9 + 20 + 9) * (19 - 1 / 12 - 5 + 1 + 16 + 25) + 5 + 1 + 18 = 2148 5/6
I only take credit for the programming effort, though. My computer did all the legwork.
Nice work solving these manually.  |
|
 |
| Zag |
Posted: Wed Feb 22, 2012 8:01 pm Post subject: -4 |
|
OK. You shouldn't have said anything. Now I have your answer, too. And I just solved it by hand -- no computer assistance. (Well, just a calculator). |
|
 |
| Zag |
Posted: Wed Feb 22, 2012 7:27 pm Post subject: -5 |
|
9 + 20 + 9 + 19 + 1 + 12*(5+1) + 16*25*5 + 1 + 18 = 2149
Cost = 9 + 2 + 0.84915 = 11.84915 (Three *, one set of parens, difference times 5)
Edit:
9 + 20 + 9 + 19 + 1 - 12- 5 + (1 + 16)*25*5 + 1 - 18 = 2149
Exactly the same cost. |
|
 |
| Zag |
Posted: Wed Feb 22, 2012 7:16 pm Post subject: -6 |
|
| really? Wow. I was at 11.84915 (expecting, actually, to tie for a win with several people, because it isn't that hard to find). I'm amazed that it can be beaten. |
|
 |
| Elethiomel |
Posted: Wed Feb 22, 2012 1:58 pm Post subject: -7 |
|
| Sent a new one. Under 10 points. |
|
 |
| mv* |
Posted: Wed Feb 22, 2012 2:55 am Post subject: -8 |
|
| next time I am going to make () much more expensive! |
|
 |
| Elethiomel |
Posted: Tue Feb 21, 2012 11:52 pm Post subject: -9 |
|
Sent. Under 14 points.  |
|
 |
| Zag |
Posted: Tue Feb 21, 2012 4:20 pm Post subject: -10 |
|
| Sent. Under 15 points. |
|
 |
| novice |
Posted: Tue Feb 21, 2012 12:33 pm Post subject: -11 |
|
| But what have leap years got to do with anything? |
|
 |
| MatthewV |
Posted: Tue Feb 21, 2012 11:51 am Post subject: -12 |
|
The objective is to is to use the randomly chosen numbers 9 20 9 19 1 12 5 1 16 25 5 1 18
to be as close to 2012+29*(2+e) (2148.83017...) with the smallest score. The numbers must be used in order. Mathematical symbols have the following cost:
| Code: |
sign cost example
+ free 3+9=12
- 1 5-3-1=1 (cost of 1*2=2)
* 3 4*3*3=36 (cost of 3*2=6)
/ 3 20/5=4 (cost of 3)
^ 5 2^4=16 (roots can be made with ^.5 for the same cost)
() 2 5*(2+4)=30 (NOTE: the * is not included in the cost) (cost: 3+2=5)
! 7 4!=24
|ab| 4 |-12|=12
log 7 log100=2 (ONLY base 10)
ln 10 ln60=4.094344...
combining two numbers (you have 17 and 3 next to each other->173)
10
sin
cos
tan 10 (ONLY in radians)
csc
sec
cot
asin
acos
atan 10 (arctan) (output in radians)
acsc
asec
acot
Being away from 2012+29*(2+e) has the cost of 5*(distance away) If you get to 2150, 5*(2012+29*(2+e)-2150)= ~5.85. This will be carried out as far as needed to break ties when possible.
|
The order of operations are very important. Submissions may be PMed to me or posted in the thread.
Link to last game
This will end on February 29 at 11:59 Alaska Time. |
|
 |