找回密码
 立即注册
搜索
总共850条微博

动态微博

查看: 2861|回复: 4
打印 上一主题 下一主题
收起左侧

A Card Game

[复制链接]

10

主题

271

帖子

1996

积分

跳转到指定楼层
楼主
发表于 2005-2-1 01:35:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

You have 52 playing cards (26 red, 26 black).  You draw cards one by one.  A red card pays you $1.  A black one fines you $1.  You can stop any time you want.  Cards are not return to the deck after being drawn.  What is the optimal strategy in terms of maximizing expected payoff?
www.ddhw.com

 
回复

使用道具 举报

5

主题

168

帖子

1193

积分

沙发
发表于 2005-2-2 05:18:28 | 只看该作者

回复:A Card Game


In general, let's assume there are r red cards and b black cards, and the expected earning
using the optimal strategy is  e(r,b), then we have:
e(r,b) = e(r-1,b)*r/(r+b) + e(r,b-1)*b/(r+b)
with boundary condition:
e(r,0) = r; e(0,b)=0
Then we can calculate e(r,b), and stop the game when e(r,b)<=0, where r and b are the
number of cards remaining in the deck. 
www.ddhw.com

 
回复 支持 反对

使用道具 举报

3

主题

47

帖子

393

积分

板凳
发表于 2005-2-2 08:56:45 | 只看该作者

回复:回复:A Card Game


Good try. But I think the equation shoud be
e(r,b) = max{[e(r-1,b)+1]*r/(r+b) + [e(r,b-1)-1]*b/(r+b),0}www.ddhw.com
 
 
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

地板
发表于 2005-2-2 17:21:41 | 只看该作者

回复:回复:回复:A Card Game


I think you are right.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

10

主题

271

帖子

1996

积分

5#
 楼主| 发表于 2005-2-4 00:19:16 | 只看该作者

回复:回复:回复:A Card Game


It's a good answer.  But can you figure out what should be the optimal strategy?
www.ddhw.com

 
回复 支持 反对

使用道具 举报

24小时热帖
    一周热门
      原创摄影
        美食美文
          您需要登录后才可以回帖 登录 | 立即注册

          本版积分规则

          Archiver|手机版|珍珠湾ART

          Powered by Discuz! X3 © 2001-2013 All Rights Reserved