Page 1 of 2

Problem 232

Posted: Sat Feb 14, 2009 1:49 pm
by mjevans
Problem 232 (View Problem)

I have a question about the format of the answer to the problem.
Give your answer rounded to eight decimal places in the form 0.abcdefgh .
is what it reads as of the time of this post. Is that telling me to enter the value of the percentage * 100000000 rounded down towards zero to a whole integer, or is it telling me to enter 0.whatever.

Example, Let's say it was 50% or 0.50000000: Would I then enter 0.50000000 or 50000000 to get the correct answer?

Thus far I have been entering it in the later style and still suspect my approach is incorrect. Given the somewhat low number of those who've solved it thus far it also looks like it is justifiably difficult.

Additionally is this the right place to ask for suggested additional reading for the kinds of theory that would be useful in solving this problem?

Re: Problem 232

Posted: Sat Feb 14, 2009 1:53 pm
by stijn263
You would enter 0.50000000 in that case.

Re: Problem 232

Posted: Sat Feb 14, 2009 3:05 pm
by daniel.is.fischer
mjevans wrote:Additionally is this the right place to ask for suggested additional reading for the kinds of theory that would be useful in solving this problem?
In this case, there's no problem because any introduction to probability theory would be useful in solving the problem and nothing more specialised is necessary or likely to exist (possibly a book on game theory might discuss related topics, but once you know enough probability theory to read on game theory, this problem should be easy anyway).

Re: Problem 232

Posted: Sat Feb 14, 2009 7:13 pm
by stijn263
You also need a technique that is useful in a LOT of problems (and I'm not talking about sieving :-))

Re: Problem 232

Posted: Sat Feb 14, 2009 11:20 pm
by quilan
stijn263 wrote:You also need a technique that is useful in a LOT of problems (and I'm not talking about sieving :-))
Well then, clearly you must be referring to solving a Diophantine equation...

(I haven't actually attempted the problem yet, I'm just amusing myself by the thought)

Re: Problem 232

Posted: Sat Feb 14, 2009 11:45 pm
by sfabriz
quilan wrote: Well then, clearly you must be referring to solving a Diophantine equation...
LMAO :lol:

Re: Problem 232

Posted: Sun Feb 15, 2009 3:19 am
by genious999
I believe there is a minor inconsistency in the wording for this problem. First it says
On Player 2's turn, she chooses a positive integer T and tosses the coin T times
meaning tossing a coin T times. It then says
On each turn Player 2 selects the number, T, of coins that maximises the probability of her winning.
meaning tossing T coins once.
The result from tossing a single coin T times or tossing T coins each once is mathematically the same, just the inconsistent wording could be confusing.

Thanks for having such an awesome site btw :D

Re: Problem 232

Posted: Sun Feb 15, 2009 8:07 am
by ed_r
Good spot. Fixed now.

Re: Problem 232

Posted: Sun Feb 15, 2009 1:23 pm
by stijn263
quilan wrote:Well then, clearly you must be referring to solving a Diophantine equation...
I think this is the ranking of techniques you need the most when solving PE problems:
1) Sieving
2) Dynamic Programming
3) Solving Diophantine equations
4) Generating (special) pythagorean triplets

Re: Problem 232

Posted: Sun Feb 15, 2009 1:33 pm
by ed_r
DP/memoisation is tops in my book. You're dead without it in so many cases.

Re: Problem 232

Posted: Sun Feb 15, 2009 7:00 pm
by hisoka-san
Let me ask for some clarification. Say, it's n-th round, and both
payers got score 99. If the first player gets 1, he wins, second player
is not allowed to play anymore, i.e. draw is not possible in this game?

Re: Problem 232

Posted: Sun Feb 15, 2009 7:03 pm
by daniel.is.fischer
Yes.

Re: Problem 232

Posted: Mon Feb 16, 2009 12:20 am
by mathgeek747
Just wondering, I'm not sure if this is a valid question to ask:

The problem says "On each turn Player 2 selects the number, T, of coin tosses that maximises the probability of her winning."
Does this mean winning on that turn or just plain winning overall (i.e. after several more flips)

Thanks!

Re: Problem 232

Posted: Mon Feb 16, 2009 12:21 am
by daniel.is.fischer
Winning overall.

Re: Problem 232

Posted: Mon Feb 16, 2009 8:19 pm
by mjevans
stijn263 wrote: I think this is the ranking of techniques you need the most when solving PE problems:
1) Sieving
2) Dynamic Programming
3) Solving Diophantine equations
4) Generating (special) pythagorean triplets
Thank you, now I know the names of the topics to look up... I'm guessing it's probably 3, since I already saw sieving on the prime relation problems and I think I'm already doing dynamic programming, though there's an additional degree of complexity I might need to explore.

(I fixed an error relating to a confusing example that was on wikipedia which skewed my numbers a bit. However none of the numbers I generate using an easy method is the valid answer, though they are roughly matching my expectations.)

Re: Problem 232

Posted: Mon Feb 16, 2009 8:44 pm
by daniel.is.fischer
mjevans wrote:Thank you, now I know the names of the topics to look up... I'm guessing it's probably 3,
Not for this one.

Re: Problem 232

Posted: Tue Feb 17, 2009 10:52 am
by stijn263
mjevans wrote:(..) though they are roughly matching my expectations
Perhaps your expectation is wrong ?

Re: Problem 232

Posted: Fri Feb 20, 2009 3:36 pm
by sfabriz
In exchange for hints on this problem which made me lose my will to live I am willing to give you a wonderful Yaris 1300 (2007) almost as good as new, ABS, cd-player, airbags and a small picture of Euler within the rear mirror frame.
Call me on +39-112-3581321

...

:cry:

Re: Problem 232

Posted: Fri Feb 20, 2009 8:42 pm
by ed_r
Oh, my! Your phone number contains the answer!

(just kidding)

Re: Problem 232

Posted: Sat Feb 21, 2009 12:47 am
by divisortheory
Despite the fact that incorrect answers are user error almost 100% of the time, I still can't help but feel like something is wrong with the answer for this problem. I have a method that, to me, seems like it is provably correct yet it is giving me the wrong answer.

Very frustrating. Would it be acceptable for me to post a small number n, like maybe 10, and ask someone to verify if my output is correct, close, or way off the mark if the point limit is n instead of 100?

Edit: Well I finally solved it. Maybe it was easy for some people, but it's for sure the most frustrating one I've encountered to date. Sometimes you're just going about it all wrong... :( Even worse that the answer I kept thinking was correct was less than .2% away from the correct answer