wu :: forums
« wu :: forums - Coin Toss »

Welcome, Guest. Please Login or Register.
Nov 29th, 2024, 4:06pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   easy
(Moderators: towr, Eigenray, SMQ, Grimbal, ThudnBlunder, Icarus, william wu)
   Coin Toss
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Coin Toss  (Read 1220 times)
flamingdragon
Uberpuzzler
*****






    flamingdragon532
Email

Gender: male
Posts: 671
Coin Toss  
« on: Nov 28th, 2006, 8:37pm »
Quote Quote Modify Modify

You and your arch rival are competing for the same girl. After years of battling, you both decide to settle it by tossing a coin.
 
Your rival produces a coin, but you don't  have one on you. You are certain that the coin your rival has produced is loaded, meaning it will come up with heads more than 50% of the time on average.
 
However, you arrange a fair contest, based purely on chance and not skill, by flipping the coin. How?
IP Logged

"The fool doth think he is wise, yet the wise man knoweth himself to be a fool"

"He who commands the past, commands the future. He who commands the future, commands the past."
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Coin Toss  
« Reply #1 on: Nov 29th, 2006, 1:06am »
Quote Quote Modify Modify

In secret choose heads or tail, and lay down the coin showing your choice and cover it. Then your opponent chooses heads or tails. If he chooses the same as you he wins, otherwise he looses.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Icarus
wu::riddles Moderator
Uberpuzzler
*****



Boldly going where even angels fear to tread.

   


Gender: male
Posts: 4863
Re: Coin Toss  
« Reply #2 on: Nov 29th, 2006, 5:37am »
Quote Quote Modify Modify

Flip the coin twice. If both flips are the same, discard them and flip two more times. Keep this up until the flips differ. If it comes up HT, then one wins. If it comes up TH, the other wins.
IP Logged

"Pi goes on and on and on ...
And e is just as cursed.
I wonder: Which is larger
When their digits are reversed? " - Anonymous
flamingdragon
Uberpuzzler
*****






    flamingdragon532
Email

Gender: male
Posts: 671
Re: Coin Toss  
« Reply #3 on: Nov 29th, 2006, 7:05am »
Quote Quote Modify Modify

That second one was what I was looking for.
IP Logged

"The fool doth think he is wise, yet the wise man knoweth himself to be a fool"

"He who commands the past, commands the future. He who commands the future, commands the past."
Whiskey Tango Foxtrot
Uberpuzzler
*****



Sorry Goose, it's time to buzz a tower.

   
Email

Gender: male
Posts: 1672
Re: Coin Toss  
« Reply #4 on: Nov 29th, 2006, 7:06am »
Quote Quote Modify Modify

That's the most common one.  Towr's solution would work just as well were it not stipulated that the coin must be tossed.
IP Logged

"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." - Galileo Galilei
Icarus
wu::riddles Moderator
Uberpuzzler
*****



Boldly going where even angels fear to tread.

   


Gender: male
Posts: 4863
Re: Coin Toss  
« Reply #5 on: Nov 29th, 2006, 7:16am »
Quote Quote Modify Modify

(I moved this to Easy, because it really isn't a "what happened" type of puzzle.)
 
Next question: Would this approach work? Since the coin is biased towards heads, keep flipping the coin until it comes up tails. If it takes an even number of flips, one wins. If it takes an odd number of flips, the other wins.
« Last Edit: Nov 29th, 2006, 7:17am by Icarus » IP Logged

"Pi goes on and on and on ...
And e is just as cursed.
I wonder: Which is larger
When their digits are reversed? " - Anonymous
Sjoerd Job Postmus
Full Member
***





   


Posts: 228
Re: Coin Toss  
« Reply #6 on: Nov 29th, 2006, 8:21am »
Quote Quote Modify Modify

on Nov 29th, 2006, 7:16am, Icarus wrote:
(I moved this to Easy, because it really isn't a "what happened" type of puzzle.)
 
Next question: Would this approach work? Since the coin is biased towards heads, keep flipping the coin until it comes up tails. If it takes an even number of flips, one wins. If it takes an odd number of flips, the other wins.

It's pretty much the same, except that player choosing tail would have more change.
 
First idea:
 
res = toss()
while ( res == "HH" || res == "TT" )
{
  res = toss()
}
if ( res == "HT" )
{
  Win = Archrival;
}
else // if ( res == "TH" )
{
  Win = You;
}
 
Second idea:
 
res = toss()
while ( res == "HH" )
{
  res = toss()
}
if ( res == "HT" )
{
  Win = Archrival;
}
else // if ( res == "TH" || res == "TT" )
{
  Win = You;
}
 
First: Toss two coins, until different. If different, the first toin cossed decides.
Second: Toss two coins, until not both head. If not both head, first toin decides.
 
I think it is clear that, in the first situation, we have a fair game, and in the second, you're chances are a bit higher than those of your nemesis.
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Coin Toss  
« Reply #7 on: Nov 29th, 2006, 8:24am »
Quote Quote Modify Modify

on Nov 29th, 2006, 7:16am, Icarus wrote:
Next question: Would this approach work? Since the coin is biased towards heads, keep flipping the coin until it comes up tails. If it takes an even number of flips, one wins. If it takes an odd number of flips, the other wins.
I think it'd only work for specific biases.  
[e]nevermind, unless you count p(T)=0[/e]
« Last Edit: Nov 29th, 2006, 8:39am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
flamingdragon
Uberpuzzler
*****






    flamingdragon532
Email

Gender: male
Posts: 671
Re: Coin Toss  
« Reply #8 on: Nov 29th, 2006, 4:53pm »
Quote Quote Modify Modify

on Nov 29th, 2006, 7:16am, Icarus wrote:
(I moved this to Easy, because it really isn't a "what happened" type of puzzle.)

 
I could make it into a what am I riddle as well.  Wink
IP Logged

"The fool doth think he is wise, yet the wise man knoweth himself to be a fool"

"He who commands the past, commands the future. He who commands the future, commands the past."
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board