All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Fair Toss (Posted on 2024-07-02) Difficulty: 3 of 5
Suppose you have one fair coin, that is, a coin that comes up heads half the time and tails half the time.

Show how to use this coin to choose fairly among N people. Solutions using the fewest coin tosses are preferred.

No Solution Yet Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts "Inflate and Gamble" algorithm | Comment 3 of 12 |
If N is slightly less than a power of 2 add enough imaginary people to inflate it to a power of 2.  So N = 2^k - d.  Add "d" imaginary friends.

Flip k times to form a k-digit binary number.  Match that number to the person with the same number, or repeat k flips until you do.
Expected flips is k(1 + a + a^2 + ... ) where a = 2^k / (2^k - d)
= k*2^k/(2^k - d).

  Posted by Larry on 2024-07-02 11:44:09
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information