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

动态微博

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

新囚犯问题

[复制链接]

158

主题

544

帖子

9110

积分

跳转到指定楼层
楼主
发表于 2005-12-15 21:20:51 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

难度:+++

监狱里有2k个犯人。监狱长把犯人找来,说:“你们的名字在这2k个盒子里,每盒一个。明天你们轮流到这里来,每个人打开一个盒子,看看是不是自己,不是再开下一个,最多可以开k个,看到自己的名字就算通过。如果所有人都通过,就释放你们。现在你们可以讨论一个策略,完了之后不准再有任何形式的交流。”

每个人看到自己名字的概率是1/2。如果没有策略,释放的概率是(1/2)^(2k)。能不能设计一个策略,使得释放的概率有一个与k无关的正下界?

www.ddhw.com

 
回复

使用道具 举报

10

主题

83

帖子

868

积分

22#
发表于 2005-12-20 20:25:25 | 只看该作者

we like to discourage prisoners.[:B][:B]


Great solution!
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

21#
发表于 2005-12-20 14:31:59 | 只看该作者

回复:回复:回复:what if boxes are mixed up?


He would dare to do that, not now. That is prisoner abuse.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

10

主题

83

帖子

868

积分

20#
发表于 2005-12-20 06:39:22 | 只看该作者

回复:回复:what if boxes are mixed up?


I mean if no label can be attached to boxes, and 监狱长 would rearrange the boxes after the boxes were seen by a prisoner.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

19#
发表于 2005-12-20 06:12:09 | 只看该作者

回复:what if boxes are mixed up? as thrown back to b


Not quite understand your question, the boxes are numbered according to the problem, what do you mean by 'mixed up'?
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

18#
发表于 2005-12-20 05:07:26 | 只看该作者

回复:A question


In that case, every criminal will get his box within n steps.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

10

主题

83

帖子

868

积分

17#
发表于 2005-12-19 22:50:16 | 只看该作者

what if boxes are mixed up? as thrown back to ball


  what if boxes are mixed up? as thrown back to ball




回复 支持 反对

使用道具 举报

0

主题

6

帖子

36

积分

16#
发表于 2005-12-19 22:09:25 | 只看该作者

A question


Good thought! But how can you expain the case that no >n loop but a lot of small loops?
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

15#
发表于 2005-12-18 22:42:10 | 只看该作者

回复:新囚犯问题


Thanks for the interesting problem.  I guess we need such intuitively 'no-way' problem once in a while to remind us not to lay too much confidence in intuition.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

14#
 楼主| 发表于 2005-12-18 21:40:15 | 只看该作者

回复:回复:回复:回复:回复:回复:新囚犯问题


Great! The probability of 1 - ln2 = 0.3068... is very high, and I think it is the best possible.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

13#
发表于 2005-12-18 16:17:33 | 只看该作者

回复:回复:回复:回复:回复:新囚犯问题


I mean the chance is bounded below by  1-ln(2).
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

12#
发表于 2005-12-18 16:01:09 | 只看该作者

回复:回复:回复:回复:新囚犯问题


Wrong estimation, try again:www.ddhw.com
Number of permutations that have one loop of length (n+1):
C(2n,n+1)*n!*(n-1)! = 2n!/(n+1)
Number of permutations that have one loop of length (n+2):
C(2n,n+2)*(n+1)! = 2n!/(n+2)....
 
So, probability that the longest loop has a length > n is:
2n!(1/(n+1)+1/(n+2)+1/(n+3)+1/(2n))
 
since 1/1+1/2+...1/n ~ln(n), 1/(n+1)+1/(n+2)...+1/(2n) ~ ln(2),
so the chance for the criminals is: 1-ln(2)
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

11#
发表于 2005-12-18 06:58:17 | 只看该作者

回复:回复:回复:新囚犯问题


We can make the following estimation:
Number of permutations that have one loop of length (n+1):
C(2n,n+1) (n+1)! (n-1)! = 2n!/(n*(n+1))
Number of permutations that have one loop of length (n+2):
C(2n,n+2) (n+2)! (n-2)! < 2n!/(n*(n+1))
....www.ddhw.com
So the total number of permutations with the largest loop length> n is bounded above by
2n!/(n+1)
So, chance for the criminals is better than 1-(1/n+1), which tends to 1 as n goes to infinity. Sounds fishy, something wrong with the procedure or proof?


 www.ddhw.com

 

  本贴由[QL]最后编辑于:2005-12-17 23:0:1  

回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

10#
发表于 2005-12-18 06:25:08 | 只看该作者

回复:回复:新囚犯问题


Try to prove that the prcedure works:
Each random permutation induces some loops(using the aferomentioned procedure), if the number of elements in each loop is less than or equal to k, then every criminal will get `his' box.www.ddhw.com
So, the problem is now: with probability > some constant( not depend on k) that a permutation will not have a loop with length > k.....


 

 

  本贴由[QL]最后编辑于:2005-12-17 22:26:1  
www.ddhw.com

 

  本贴由[QL]最后编辑于:2005-12-17 23:2:17  

回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

9#
发表于 2005-12-18 06:19:51 | 只看该作者

回复:新囚犯问题


Here is an idea:www.ddhw.com
Each criminal is assigned a number 1--2k, and the i-th criminal will begin with the i-th box, if he found the box contains j-th criminal's name, he then check the j-th box, and continue this process, until he opens k boxes.
 
Constant, is this the right way? I am still think about the proof.
 
 


 www.ddhw.com

 

  本贴由[QL]最后编辑于:2005-12-17 23:4:53  

回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

8#
 楼主| 发表于 2005-12-17 01:15:20 | 只看该作者

回复:回复:新囚犯问题


There cannot be information exchange.www.ddhw.com
 
1. Closed, kept in the original location and position. No marking allowed.www.ddhw.com
 
2. Yes. They will not see each other, and don't know each other's results.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

0

主题

6

帖子

36

积分

7#
发表于 2005-12-17 00:21:03 | 只看该作者

回复:新囚犯问题


Then how can information be exchanged? www.ddhw.com
 
Questions:
1. Each time a box is open, do they close it right away for the next person to open it, or just leave it open always.
2. The next person has to wait until the former try all his k the boxes?www.ddhw.com
 
Thanks.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

6#
 楼主| 发表于 2005-12-16 16:15:36 | 只看该作者

Reordering is not allowed


  Reordering is not allowed




回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

5#
发表于 2005-12-16 14:23:21 | 只看该作者

回复:新囚犯问题


Is reordering of the boxes allowed?
If so, each one may search the k right most boxes, and if he found his box, move it to the left most position. 
www.ddhw.com

 
回复 支持 反对

使用道具 举报

0

主题

3

帖子

18

积分

地板
发表于 2005-12-16 10:11:14 | 只看该作者

回复:新囚犯问题


第一个人看前k个盒子,然后排序. 第二个人从前k个盒子看log2(k)个(二分查找),从后k个盒子看k-log2(k)个,第三个人从前k个盒子看log2(k)个,从后k-log2(k)个看log2(k-log2(k))个,在看剩下的,排序.第三个和第二个相似,尽可能用二分查找.www.ddhw.com
 
上面的值并非确切计算只是大致估计,如果k很大基本上释放的概率接近1/2.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

板凳
 楼主| 发表于 2005-12-16 04:43:46 | 只看该作者

是。每个人都不知道前边的任何结果


  是。每个人都不知道前边的任何结果




回复 支持 反对

使用道具 举报

10

主题

83

帖子

868

积分

沙发
发表于 2005-12-16 04:05:26 | 只看该作者

一个问题:是不是看完后再放回去? 通过否只有自己知道?


  一个问题:是不是看完后再放回去? 通过否只有自己知道?




回复 支持 反对

使用道具 举报

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

          本版积分规则

          Archiver|手机版|珍珠湾ART

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