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

动态微博

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

10个人来聚餐

[复制链接]

158

主题

544

帖子

9110

积分

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

难度:+++www.ddhw.com
 
脑坛有10个人。这10个人来聚餐和离开的顺序一共有多少种可能?几个人可以一起来,也可以一起走。也可以一人走的同时另一人来。
www.ddhw.com

 www.ddhw.com

 

  本贴由[constant]最后编辑于:2005-12-11 11:47:13  

回复

使用道具 举报

5

主题

168

帖子

1193

积分

沙发
发表于 2005-12-11 06:07:45 | 只看该作者

回复:10个人来聚餐


Can a person come and go at the same time?
www.ddhw.com

 
回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

板凳
 楼主| 发表于 2005-12-11 19:48:10 | 只看该作者

No. Everybody has to come in and eat something


  No. Everybody has to come in and eat something




回复 支持 反对

使用道具 举报

10

主题

83

帖子

868

积分

地板
发表于 2005-12-12 18:03:58 | 只看该作者

回复:10个人来聚餐


It is equivalent to arrange the following 20 symbols,
A1, A2, ..., A10www.ddhw.com
B1, B2, ..., B10
under some rules.
(1) they can occupy same position.
(2) B1 must behind A1, B2 hehind A2, and so on.
 
We can first ignore the 2nd reqirement, but use instead the condition that A1 and B1 cannot be in the same position, and so on. The result divided by 2^10 is what we need.
 
we have such recurrence relationship,
T(n+1, 2) = T(n, 2) * P(2,2)www.ddhw.com
T(n+1, 3) = T(n, 2) * 2*3 +T(n, 3) *P(3,2)
T(n+1, 4) = T(n, 2) *3*4 +T(n, 3) * 3*4 +T(n, 4) * P(4,2)
...
T(n+1, m) = T(n, m-2) *(m-1)*m +T(n, m-1) *(m-1) *m +T(n, m)*P(m, 2)
 
where T(n, m) denotes n pairs occupy m positions.
We can use matrix multiplication to present the above relations. A computer program will do the calculations.
I don't find a general expression for this problem.
www.ddhw.com

 
回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

5#
 楼主| 发表于 2005-12-12 21:30:42 | 只看该作者

回复:回复:10个人来聚餐


应该是对的。我也只有递推解。最后算出来 T(10) = 1843200116875263613
www.ddhw.com

 
回复 支持 反对

使用道具 举报

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

          本版积分规则

          Archiver|手机版|珍珠湾ART

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