Chinaunix首页 | 论坛 | 博客
  • 博客访问: 753615
  • 博文数量: 217
  • 博客积分: 2401
  • 博客等级: 大尉
  • 技术积分: 2030
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-16 06:58
个人简介

怎么介绍?

文章分类

全部博文(217)

文章存档

2023年(2)

2022年(3)

2021年(29)

2020年(12)

2019年(5)

2018年(5)

2017年(5)

2016年(3)

2015年(6)

2014年(12)

2013年(16)

2012年(9)

2011年(6)

2010年(15)

2009年(30)

2008年(59)

我的朋友

分类:

2008-04-10 01:15:43


A plate of n noodles. You want to connect 2 ends at a time. How many
cycles you can expect to make when you finish (i.e, do this for n times)

Pick one end, then there are 2n-1 ends in the plate
pick the 2nd end,
1. there is 1/2n-1 probability that these two ends will form a loop,
then there are n-1 noodles + 1 loop in the plate.
2, there is (2n-2)/(2n-1) probability the 2nd end is from a different noodle
In this case, we get a long noodle, and the problem is still a n-1
noodles

E[n]=(E[n-1]+1)/(2n-1) + E[n-1](2n-2)/(2n-1)
=E[n-1]+1/(2n-1)
阅读(1100) | 评论(0) | 转发(0) |
0

上一篇:Fibonacci

下一篇:triangle

给主人留下些什么吧!~~