This is a problem I thought of while determining the identity of a 'Tiebreaker' character for Mafia VI. I have a 20-sided dice, which picks a number randomly between 1 and 20, but there are 21 players in Mafia VI. Say, for the purposes of this riddle, the only randomizing device we have is a 20-sided die.
My first thought was to role the dice for the values 1-20, then again for values 2-21 (ie, add 1 to the dice roll), then roll again, and if odd pick the first one and if even pick the second. However, on quick inspection, this is not a fair solution. It gives 1 in 40 chances to the players 1 & 21 but 1/20 to the 19 players in between.
Can you find a fair solution? Better yet, a fair solution that minimizes the number of rolls? For example, if my faulty solution had been fair, it takes 3 rolls at most, or 2 rolls if the first two numbers were the same regardless (ie, you rolled 8 and then rolled 7). The probability of it taking 2 rolls instead of 3 is (19/20)(1/20) = 19/400 (all numbers except 1 have a number one less, which that number as a 5% chance of occurring), but that doesn't matter. What matters is the maximum your method would take to get a fair solution (which is one person, you can't have multiple Tiebreakers). A fair solution is where each person has a 1/21 chances of getting picked. If my first solution had been fair, it's "roll-value" would be 3 since it would take 3 rolls at most to select someone fairly
An extreme, but working, solution, is to roll the dice 21 times, once for each player, and whoever has the highest number wins. For ties, take just the tying players and then roll once for each of them, etc. The roll value for this is infinity (since you can't be sure of ever not having a tie). Of course there must be a better solution than this.... is there?
That's your job- find a fair solution using the 20 sided die that has the smallest roll-value
Question
unreality
This is a problem I thought of while determining the identity of a 'Tiebreaker' character for Mafia VI. I have a 20-sided dice, which picks a number randomly between 1 and 20, but there are 21 players in Mafia VI. Say, for the purposes of this riddle, the only randomizing device we have is a 20-sided die.
My first thought was to role the dice for the values 1-20, then again for values 2-21 (ie, add 1 to the dice roll), then roll again, and if odd pick the first one and if even pick the second. However, on quick inspection, this is not a fair solution. It gives 1 in 40 chances to the players 1 & 21 but 1/20 to the 19 players in between.
Can you find a fair solution? Better yet, a fair solution that minimizes the number of rolls? For example, if my faulty solution had been fair, it takes 3 rolls at most, or 2 rolls if the first two numbers were the same regardless (ie, you rolled 8 and then rolled 7). The probability of it taking 2 rolls instead of 3 is (19/20)(1/20) = 19/400 (all numbers except 1 have a number one less, which that number as a 5% chance of occurring), but that doesn't matter. What matters is the maximum your method would take to get a fair solution (which is one person, you can't have multiple Tiebreakers). A fair solution is where each person has a 1/21 chances of getting picked. If my first solution had been fair, it's "roll-value" would be 3 since it would take 3 rolls at most to select someone fairly
An extreme, but working, solution, is to roll the dice 21 times, once for each player, and whoever has the highest number wins. For ties, take just the tying players and then roll once for each of them, etc. The roll value for this is infinity (since you can't be sure of ever not having a tie). Of course there must be a better solution than this.... is there?
That's your job- find a fair solution using the 20 sided die that has the smallest roll-value
Link to comment
Share on other sites
39 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.