初级农民-请到新手上路获取积分
- 积分
- 0
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2012-7-21
- 最后登录
- 1970-1-1
|
Winning possibility:
Game #1: p
Game #2: combination(3, 3) * (p^3) + combination(3, 2) * (p^2) * (1 - p) = 1 * (p^3) + 3 * (p^2 - p^3) = 3*p^2 - 2*p^3
If the winning possibility of game #1 is higher, the we should choose game #1:
p > 3*p^2 - 2*p^3
=> 2*p^3 - 3*p^2 + p > 0
=> p * (2p - 1) * (p - 1) > 0
=> 0 < p < 1/2
So we shold pick game #1 if 0 < p < 1/2, and we shold pick game #2 if 1/2 < p < 1.
For p == 0 or p == 1/2 or p == 1, there is no difference to pick game #1 or #2. |
|