Puzzle 12 | (Maximize probability of White Ball)

2.6

There are two empty bowls in a room. You have 50 white balls and 50 black balls. After you place the balls in the bowls, a random ball will be picked from a random bowl. Distribute the balls (all of them) into the bowls to maximize the chance of picking a white ball.

 
 
 

Answer:
Put 1 white ball in one bowl and 49 white balls in other bowl.

So probability of getting white ball becomes 1/2*1 + 1/2*49/99 which is approximately 3/4.

Source: http://www.geeksforgeeks.org/forums/topic/balls-and-bowls/

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

GATE CS Corner    Company Wise Coding Practice

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.

Recommended Posts:



2.6 Average Difficulty : 2.6/5.0
Based on 27 vote(s)










Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.