The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GL Math Contest 2

 
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Games
View previous topic :: View next topic  
Author Message
MatthewV
Daedalian Member :_



PostPosted: Tue Feb 21, 2012 11:51 am    Post subject: 1 Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail AIM Address
novice
No harm. Pun intended!



PostPosted: Tue Feb 21, 2012 12:33 pm    Post subject: 2 Reply with quote

But what have leap years got to do with anything?
Back to top
View user's profile Send private message
Zag
Unintentionally offensive old coot



PostPosted: Tue Feb 21, 2012 4:20 pm    Post subject: 3 Reply with quote

Sent. Under 15 points.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Elethiomel
Daedalian Member



PostPosted: Tue Feb 21, 2012 11:52 pm    Post subject: 4 Reply with quote

Sent. Under 14 points. Wink
Back to top
View user's profile Send private message
mv*
Guest



PostPosted: Wed Feb 22, 2012 2:55 am    Post subject: 5 Reply with quote

next time I am going to make () much more expensive!
Back to top
Elethiomel
Daedalian Member



PostPosted: Wed Feb 22, 2012 1:58 pm    Post subject: 6 Reply with quote

Sent a new one. Under 10 points.
Back to top
View user's profile Send private message
Zag
Unintentionally offensive old coot



PostPosted: Wed Feb 22, 2012 7:16 pm    Post subject: 7 Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Zag
Unintentionally offensive old coot



PostPosted: Wed Feb 22, 2012 7:27 pm    Post subject: 8 Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Zag
Unintentionally offensive old coot



PostPosted: Wed Feb 22, 2012 8:01 pm    Post subject: 9 Reply with quote

OK. You shouldn't have said anything. Now I have your answer, too. Extreme Delectation And I just solved it by hand -- no computer assistance. (Well, just a calculator).
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Elethiomel
Daedalian Member



PostPosted: Wed Feb 22, 2012 8:05 pm    Post subject: 10 Reply with quote

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. Revenge most foul!
Back to top
View user's profile Send private message
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 01, 2012 5:36 am    Post subject: 11 Reply with quote

Oh right, this ends in a few hours.
Back to top
View user's profile Send private message Send e-mail AIM Address
novice
No harm. Pun intended!



PostPosted: Thu Mar 01, 2012 8:58 am    Post subject: 12 Reply with quote

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. Ecstatic Happiness
But using an interpreted language saved me from writing an evaluation function, and the solver also works as a javascript performance benchmark.
Back to top
View user's profile Send private message
Elethiomel
Daedalian Member



PostPosted: Thu Mar 01, 2012 10:28 am    Post subject: 13 Reply with quote

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.
Back to top
View user's profile Send private message
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 01, 2012 10:29 am    Post subject: 14 Reply with quote

I guess this one was too easy Melancholy

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
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Games All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3