Saturday, November 11, 2006

面试问题(brainteaser)

发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 12:01:14 2006), 转信

首先问问,大家电话面试的时候都是怎么做的?
我就接过一个电话面试,就是老老实实地听、想,
等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
就是问你某个分布一些特征值的问题,
我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。

另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来了。
我不知道这里有没有人讨论过,就是蚂蚁爬杆的问题。
一根木棍长10米,蚂蚁爬行速度大小恒定2米/秒,
现有500只蚂蚁,随机撒到这根木棍上(可以设均匀分布),
每个蚂蚁爬行的方向是随机的,要么左要么右,1/2概率。
如果两只蚂蚁碰撞,那么他们同时转向,以相同速率、相反方向继续爬行;
当蚂蚁爬到木棍顶点时,继续移动就掉了出去。
设t为从开始到木棍上一只蚂蚁都不剩所需的时间,求t的均值。

当时一心认定是个数学问题,直觉认为500这个数字应该跟结论无关,
对方暗示似乎的确如此,但需要证明,我就在想deduction,但是蚂蚁一碰撞就乱掉了。
等挂掉电话,郁闷地开始继续考虑,在纸上开始瞎画蚂蚁时,
脑子中开始浮现一群蚂蚁爬呀爬,然后突然形象思维一帮忙就想出了一个直观的解释。

还有其他几个题,但相对来说就简单了。
比如一个fair dice掷三次,你又一次机会可以喊停,
一旦喊停,色子上给出几,你就得几块钱。求最佳策略。
另外,如果可以掷无数次而不是三次,最佳策略又是什么。
--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 修改:·wumi 于 Nov 10 12:10:21 修改本文·[FROM: 69.141.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]



美国嘉盛FOREX.COM 为您提供精准汇市分析, 模拟账户免费注册 jelty
身份:用户 上站次数:2672 发表文章:4200 篇 经验值:5673 表现值:44 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 2 ] document.write('发信人: jelty (who am I?), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 12:30:36 2006), 站内
'); document.write('
'); document.write('2蚂蚁撞了也不受影响,相当于交换一下
'); document.write('好像以前物理考试做过,呵呵
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 141.158.]
'); 发信人: jelty (who am I?), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 12:30:36 2006), 站内

2蚂蚁撞了也不受影响,相当于交换一下
好像以前物理考试做过,呵呵
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 141.158.]
wumi 身份:用户 上站次数:5517 发表文章:10789 篇 经验值:15437 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 3 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 12:32:41 2006), 转信
'); document.write('
'); document.write('嗯,我后来就是自己在脑子中想象碰撞场景时突然意识到了这一点,
'); document.write('可当时就是认准了死理是个数学问题,死活没转过弯来。:(
'); document.write('电话挂掉后不到5分钟就反应过来了,郁闷啊……
'); document.write('【 在 jelty (who am I?) 的大作中提到: 】
'); document.write(': 2蚂蚁撞了也不受影响,相当于交换一下
'); document.write(': 好像以前物理考试做过,呵呵
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 12:32:41 2006), 转信

嗯,我后来就是自己在脑子中想象碰撞场景时突然意识到了这一点,
可当时就是认准了死理是个数学问题,死活没转过弯来。:(
电话挂掉后不到5分钟就反应过来了,郁闷啊……
【 在 jelty (who am I?) 的大作中提到: 】
: 2蚂蚁撞了也不受影响,相当于交换一下
: 好像以前物理考试做过,呵呵
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
jelty
身份:用户 上站次数:2672 发表文章:4200 篇 经验值:5673 表现值:44 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 4 ] document.write('发信人: jelty (who am I?), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 12:36:31 2006), 站内
'); document.write('
'); document.write('可以发个email 解释一下吧,虽然不一定有用
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 嗯,我后来就是自己在脑子中想象碰撞场景时突然意识到了这一点,
'); document.write(': 可当时就是认准了死理是个数学问题,死活没转过弯来。:(
'); document.write(': 电话挂掉后不到5分钟就反应过来了,郁闷啊……
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 141.158.]
'); 发信人: jelty (who am I?), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 12:36:31 2006), 站内

可以发个email 解释一下吧,虽然不一定有用
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 嗯,我后来就是自己在脑子中想象碰撞场景时突然意识到了这一点,
: 可当时就是认准了死理是个数学问题,死活没转过弯来。:(
: 电话挂掉后不到5分钟就反应过来了,郁闷啊……



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 141.158.]
wumi 身份:用户 上站次数:5517 发表文章:10789 篇 经验值:15437 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 5 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 12:43:35 2006), 转信
'); document.write('
'); document.write('发了。这边一反应过来,那边就立马发了。不过估计跟现场解答出来还是不一样吧。
'); document.write('
'); document.write('【 在 jelty (who am I?) 的大作中提到: 】
'); document.write(': 可以发个email 解释一下吧,虽然不一定有用
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 12:43:35 2006), 转信

发了。这边一反应过来,那边就立马发了。不过估计跟现场解答出来还是不一样吧。

【 在 jelty (who am I?) 的大作中提到: 】
: 可以发个email 解释一下吧,虽然不一定有用


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
longhei
身份:用户 上站次数:4523 发表文章:2744 篇 经验值:8011 表现值:30 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 6 ] document.write('发信人: longhei (money money money), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:01:05 2006), 转信
'); document.write('
'); document.write('那答案到底是什么呀?
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('--
'); document.write('If you love her
'); document.write(' bring her to USA
'); document.write(' for it is Heaven
'); document.write('If you hate her
'); document.write(' bring her to USA
'); document.write(' for it is Hell
'); document.write('
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.105.]
'); 发信人: longhei (money money money), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:01:05 2006), 转信

那答案到底是什么呀?

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................

--
If you love her
bring her to USA
for it is Heaven
If you hate her
bring her to USA
for it is Hell



※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.105.]
skydive 身份:用户 上站次数:2666 发表文章:30110 篇 经验值:43709 表现值:128 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 7 ] document.write('发信人: skydive (跳跳~~备战备荒为人民), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:02:31 2006), 转信
'); document.write('
'); document.write('你怎么也要当quant?
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.44.]
'); 发信人: skydive (跳跳~~备战备荒为人民), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:02:31 2006), 转信

你怎么也要当quant?

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.44.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 8 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:09:37 2006), 转信
'); document.write('
'); document.write('you are CMU CS phd, right?
'); document.write('going to quant?
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:09:37 2006), 转信

you are CMU CS phd, right?
going to quant?

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 9 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:21:27 2006), 转信
'); document.write('
'); document.write('这个蚂蚁题有意思。 看到你的提示我就想到其实这个反弹跟直接穿过结果是一样的。
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 13:22:43 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:21:27 2006), 转信

这个蚂蚁题有意思。 看到你的提示我就想到其实这个反弹跟直接穿过结果是一样的。

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 修改:·yogaII 于 Nov 10 13:22:43 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]

yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 10 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:31:08 2006), 转信
'); document.write('
'); document.write('我认为跟500只蚂蚁是有关系的。
'); document.write('
'); document.write('X: 蚂蚁爬行的最大距离
'); document.write('
'); document.write('F(x1..500 < X) = (X/10)^(500)
'); document.write('
'); document.write('E(X) = 5000/501
'); document.write('
'); document.write('E(t) = 5000/(501*2)
'); document.write('
'); document.write('correct me if I am wrong.
'); document.write('
'); document.write('-yogaII-
'); document.write('
'); document.write('【 在 longhei (money money money) 的大作中提到: 】
'); document.write(': 那答案到底是什么呀?
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 13:32:22 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:31:08 2006), 转信

我认为跟500只蚂蚁是有关系的。

X: 蚂蚁爬行的最大距离

F(x1..500 < X) = (X/10)^(500)

E(X) = 5000/501

E(t) = 5000/(501*2)

correct me if I am wrong.

-yogaII-

【 在 longhei (money money money) 的大作中提到: 】
: 那答案到底是什么呀?
: 了。



--

※ 修改:·yogaII 于 Nov 10 13:32:22 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]


saddest
身份:用户 上站次数:420 发表文章:192 篇 经验值:1297 表现值:8 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 11 ] document.write('发信人: saddest (Apple), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:42:47 2006), 转信
'); document.write('
'); document.write('我怎么觉得是10/2 = 5s,可以想成均匀分布,
'); document.write('每个位置有两只蚂蚁,一个向东,一个向西,
'); document.write('一共是10米啊,
'); document.write('
'); document.write('
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': 我认为跟500只蚂蚁是有关系的。
'); document.write(': X: 蚂蚁爬行的最大距离
'); document.write(': F(x1..500 < X) = (X/10)^(500)
'); document.write(': E(X) = 5000/501
'); document.write(': E(t) = 5000/(501*2)
'); document.write(': correct me if I am wrong.
'); document.write(': -yogaII-
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
'); 发信人: saddest (Apple), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:42:47 2006), 转信

我怎么觉得是10/2 = 5s,可以想成均匀分布,
每个位置有两只蚂蚁,一个向东,一个向西,
一共是10米啊,


【 在 yogaII (...) 的大作中提到: 】
: 我认为跟500只蚂蚁是有关系的。
: X: 蚂蚁爬行的最大距离
: F(x1..500 < X) = (X/10)^(500)
: E(X) = 5000/501
: E(t) = 5000/(501*2)
: correct me if I am wrong.
: -yogaII-



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
redsea
身份:用户 上站次数:7 发表文章:1 篇 经验值:3 表现值:36 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 12 ] document.write('发信人: redsea (redsea), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:47:29 2006)
'); document.write('
'); document.write('I agree. t is the maximum of the 500 uniformly distributed random number.
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 192.11.]
'); 发信人: redsea (redsea), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:47:29 2006)

I agree. t is the maximum of the 500 uniformly distributed random number.
--

※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 192.11.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 13 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:49:11 2006), 转信
'); document.write('
'); document.write('I don\'t think so.
'); document.write('
'); document.write('suppose only one ant, E(t) = 5/2
'); document.write('suppose infinite ants, E(t) = 10/2
'); document.write('
'); document.write('【 在 saddest (Apple) 的大作中提到: 】
'); document.write(': 我怎么觉得是10/2 = 5s,可以想成均匀分布,
'); document.write(': 每个位置有两只蚂蚁,一个向东,一个向西,
'); document.write(': 一共是10米啊,
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:49:11 2006), 转信

I don't think so.

suppose only one ant, E(t) = 5/2
suppose infinite ants, E(t) = 10/2

【 在 saddest (Apple) 的大作中提到: 】
: 我怎么觉得是10/2 = 5s,可以想成均匀分布,
: 每个位置有两只蚂蚁,一个向东,一个向西,
: 一共是10米啊,



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 14 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:49:58 2006), 转信
'); document.write('
'); document.write('u agree with?
'); document.write('
'); document.write('【 在 redsea (redsea) 的大作中提到: 】
'); document.write(': I agree. t is the maximum of the 500 uniformly distributed random number.
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:49:58 2006), 转信

u agree with?

【 在 redsea (redsea) 的大作中提到: 】
: I agree. t is the maximum of the 500 uniformly distributed random number.



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
saddest
身份:用户 上站次数:420 发表文章:192 篇 经验值:1297 表现值:8 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 15 ] document.write('发信人: saddest (Apple), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:50:30 2006), 转信
'); document.write('
'); document.write('对啊,500只可以看成infinite了吧
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': I don\'t think so.
'); document.write(': suppose only one ant, E(t) = 5/2
'); document.write(': suppose infinite ants, E(t) = 10/2
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
'); 发信人: saddest (Apple), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:50:30 2006), 转信

对啊,500只可以看成infinite了吧
【 在 yogaII (...) 的大作中提到: 】
: I don't think so.
: suppose only one ant, E(t) = 5/2
: suppose infinite ants, E(t) = 10/2



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 16 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:50:52 2006), 转信
'); document.write('
'); document.write('faint.. surely not... how can you treat 500 as infinite?
'); document.write('as the number increase, E(t) will become close to 5.
'); document.write('In the case of 500, it\'s 5000/(501*2), a little bit short of 5
'); document.write('
'); document.write('【 在 saddest (Apple) 的大作中提到: 】
'); document.write(': 对啊,500只可以看成infinite了吧
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 13:52:27 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:50:52 2006), 转信

faint.. surely not... how can you treat 500 as infinite?
as the number increase, E(t) will become close to 5.
In the case of 500, it's 5000/(501*2), a little bit short of 5

【 在 saddest (Apple) 的大作中提到: 】
: 对啊,500只可以看成infinite了吧



--

※ 修改:·yogaII 于 Nov 10 13:52:27 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]


saddest
身份:用户 上站次数:420 发表文章:192 篇 经验值:1297 表现值:8 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 17 ] document.write('发信人: saddest (Apple), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:53:08 2006), 转信
'); document.write('
'); document.write('因为总共10米,500只,均匀分布的话才间隔10/500=0.02啊,
'); document.write('
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': faint.. surely not... how can you treat 500 as infinite?
'); document.write(': as the number increase, E(t) will become close to 5.
'); document.write(': In the case of 500, it\'s 5000/501, a little bit short of 5
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
'); 发信人: saddest (Apple), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:53:08 2006), 转信

因为总共10米,500只,均匀分布的话才间隔10/500=0.02啊,

【 在 yogaII (...) 的大作中提到: 】
: faint.. surely not... how can you treat 500 as infinite?
: as the number increase, E(t) will become close to 5.
: In the case of 500, it's 5000/501, a little bit short of 5



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.25.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 18 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 13:54:36 2006), 转信
'); document.write('
'); document.write('doesn\'t matter
'); document.write('read 3595 and 3597 carefully and you will know what I meant.
'); document.write('
'); document.write('【 在 saddest (Apple) 的大作中提到: 】
'); document.write(': 因为总共10米,500只,均匀分布的话才间隔10/500=0.02啊,
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 13:54:36 2006), 转信

doesn't matter
read 3595 and 3597 carefully and you will know what I meant.

【 在 saddest (Apple) 的大作中提到: 】
: 因为总共10米,500只,均匀分布的话才间隔10/500=0.02啊,



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
loveleader
身份:用户 上站次数:1384 发表文章:532 篇 经验值:3184 表现值:12 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 19 ] document.write('发信人: loveleader (hatefree), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 14:54:03 2006), 转信
'); document.write('
'); document.write('
'); document.write(' 偶有个小疑问. 因为蚂蚁落在杆子上后
'); document.write(' 有两个可能的方向, 假设落点为X,
'); document.write(' 那么平均时间是
'); document.write(' E(t) = x/2 * 1/2 + (10-x)/2 * 1/2 = 5/2.
'); document.write(' 在您的求解中您似乎假设了蚂蚁只沿着一个
'); document.write(' 预先固定的方向走, 即长度x的方向.
'); document.write(' 按照偶的理解,一只蚂蚁的平均之间是 5/2.
'); document.write(' 那么N只蚂蚁之间是独立的, 因为碰撞正好
'); document.write(' 抵消他们之间的影响, 那么总的平均时间取决于
'); document.write(' 他们中的最大时间, 而这个最大时间跟位置没有
'); document.write(' 关系,都是5/2, 所以N只蚂蚁的平均时间还是5/2
'); document.write('
'); document.write(' 请指正. 谢谢.
'); document.write('
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': 我认为跟500只蚂蚁是有关系的。
'); document.write(': X: 蚂蚁爬行的最大距离
'); document.write(': F(x1..500 < X) = (X/10)^(500)
'); document.write(': E(X) = 5000/501
'); document.write(': E(t) = 5000/(501*2)
'); document.write(': correct me if I am wrong.
'); document.write(': -yogaII-
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.127.]
'); 发信人: loveleader (hatefree), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 14:54:03 2006), 转信


偶有个小疑问. 因为蚂蚁落在杆子上后
有两个可能的方向, 假设落点为X,
那么平均时间是
E(t) = x/2 * 1/2 + (10-x)/2 * 1/2 = 5/2.
在您的求解中您似乎假设了蚂蚁只沿着一个
预先固定的方向走, 即长度x的方向.
按照偶的理解,一只蚂蚁的平均之间是 5/2.
那么N只蚂蚁之间是独立的, 因为碰撞正好
抵消他们之间的影响, 那么总的平均时间取决于
他们中的最大时间, 而这个最大时间跟位置没有
关系,都是5/2, 所以N只蚂蚁的平均时间还是5/2

请指正. 谢谢.

【 在 yogaII (...) 的大作中提到: 】
: 我认为跟500只蚂蚁是有关系的。
: X: 蚂蚁爬行的最大距离
: F(x1..500 < X) = (X/10)^(500)
: E(X) = 5000/501
: E(t) = 5000/(501*2)
: correct me if I am wrong.
: -yogaII-



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.127.]
yogaII
身份:用户 上站次数:4360 发表文章:8807 篇 经验值:17056 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 20 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 15:10:58 2006), 转信
'); document.write('
'); document.write('suppost if they meet, they don\'t change speed and direction and just keep
'); document.write('going.What\'s the expection finish time for 1 ant, 2 ants, 500 ants and n
'); document.write('ants?
'); document.write('
'); document.write('
'); document.write('【 在 loveleader (hatefree) 的大作中提到: 】
'); document.write(': 偶有个小疑问. 因为蚂蚁落在杆子上后
'); document.write(': 有两个可能的方向, 假设落点为X,
'); document.write(': 那么平均时间是
'); document.write(': E(t) = x/2 * 1/2 + (10-x)/2 * 1/2 = 5/2.
'); document.write(': 在您的求解中您似乎假设了蚂蚁只沿着一个
'); document.write(': 预先固定的方向走, 即长度x的方向.
'); document.write(': 按照偶的理解,一只蚂蚁的平均之间是 5/2.
'); document.write(': 那么N只蚂蚁之间是独立的, 因为碰撞正好
'); document.write(': 抵消他们之间的影响, 那么总的平均时间取决于
'); document.write(': 他们中的最大时间, 而这个最大时间跟位置没有
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 15:10:58 2006), 转信

suppost if they meet, they don't change speed and direction and just keep
going.What's the expection finish time for 1 ant, 2 ants, 500 ants and n
ants?


【 在 loveleader (hatefree) 的大作中提到: 】
: 偶有个小疑问. 因为蚂蚁落在杆子上后
: 有两个可能的方向, 假设落点为X,
: 那么平均时间是
: E(t) = x/2 * 1/2 + (10-x)/2 * 1/2 = 5/2.
: 在您的求解中您似乎假设了蚂蚁只沿着一个
: 预先固定的方向走, 即长度x的方向.
: 按照偶的理解,一只蚂蚁的平均之间是 5/2.
: 那么N只蚂蚁之间是独立的, 因为碰撞正好
: 抵消他们之间的影响, 那么总的平均时间取决于

发信人: dewdrop (dewdrop), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 15:35:37 2006)

难道大家都是这样面试的吗?不怕穿邦吗?我觉得面试的时候挺紧张的,桌上就一张白
纸,一支笔算算写写。。。

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................



--

※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 209.79.]

美国嘉盛FOREX.COM 为您提供精准汇市分析, 模拟账户免费注册 Dispersive
身份:用户 上站次数:90 发表文章:250 篇 经验值:608 表现值:42 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 22 ] document.write('发信人: Dispersive (Dispersive), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 15:40:17 2006), 转信
'); document.write('
'); document.write('直接听了再想。
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
'); 发信人: Dispersive (Dispersive), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 15:40:17 2006), 转信

直接听了再想。

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
netghost 身份:版主 上站次数:3784 发表文章:15262 篇 经验值:27710 表现值:55 生命力:664 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 23 ] document.write('发信人: netghost (Up to Isomorphism), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 15:54:06 2006), 转信
'); document.write('
'); document.write('题出得不严密,出题人不像是学概率的.
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 212.202.]
'); 发信人: netghost (Up to Isomorphism), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 15:54:06 2006), 转信

题出得不严密,出题人不像是学概率的.
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 212.202.]
minus
身份:用户 上站次数:133 发表文章:29 篇 经验值:518 表现值:5 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 24 ] document.write('发信人: minus (better), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 15:58:08 2006), 转信
'); document.write('
'); document.write('应该是5/2吧.
'); document.write('
'); document.write('假设A蚂蚁和B蚂蚁碰撞,最后B蚂蚁要完成的路程由A完成,A完成的由B完成.
'); document.write('所以蚂蚁碰撞跟只有一个蚂蚁应该是一种情况.
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.74.]
'); 发信人: minus (better), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 15:58:08 2006), 转信

应该是5/2吧.

假设A蚂蚁和B蚂蚁碰撞,最后B蚂蚁要完成的路程由A完成,A完成的由B完成.
所以蚂蚁碰撞跟只有一个蚂蚁应该是一种情况.
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.74.]
minus
身份:用户 上站次数:133 发表文章:29 篇 经验值:518 表现值:5 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 25 ] document.write('发信人: minus (better), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:02:53 2006), 转信
'); document.write('
'); document.write('那个dice的问题是怎么回事?
'); document.write('比如三次,
'); document.write('如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
'); document.write('如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
'); document.write('还是两次的均值?
'); document.write('
'); document.write('不是很清楚问题:(
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.74.]
'); 发信人: minus (better), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:02:53 2006), 转信

那个dice的问题是怎么回事?
比如三次,
如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
还是两次的均值?

不是很清楚问题:(
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.74.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 26 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:08:53 2006), 转信
'); document.write('
'); document.write('I think the question is:
'); document.write('whenever you say stop, you get as many as the dice currently shows.
'); document.write('
'); document.write('BTW: I think you above answer is not right.
'); document.write('
'); document.write('【 在 minus (better) 的大作中提到: 】
'); document.write(': 那个dice的问题是怎么回事?
'); document.write(': 比如三次,
'); document.write(': 如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
'); document.write(': 如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
'); document.write(': 还是两次的均值?
'); document.write(': 不是很清楚问题:(
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:08:53 2006), 转信

I think the question is:
whenever you say stop, you get as many as the dice currently shows.

BTW: I think you above answer is not right.

【 在 minus (better) 的大作中提到: 】
: 那个dice的问题是怎么回事?
: 比如三次,
: 如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
: 如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
: 还是两次的均值?
: 不是很清楚问题:(
: 了。



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 27 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:12:23 2006), 转信
'); document.write('
'); document.write('就是后面其他人说的啊。
'); document.write('首先,500只蚂蚁和一只蚂蚁是一样的。
'); document.write('然后,考虑一只蚂蚁的最简单情况就行了。
'); document.write('关键是如何证明500只和1只是一回事。
'); document.write('我刚才回到家google了一下,在网上看到一个非常好的解释,
'); document.write('就是想象成每个蚂蚁扛一个大棒子,
'); document.write('只要保证每个蚂蚁必须扛且只能扛一个棒子,
'); document.write('那么考虑蚂蚁的运动和考虑棒子的运动就是一回事。
'); document.write('
'); document.write('下面就只考虑棒子了。
'); document.write('这个问题复杂就在于:看起来蚂蚁会被碰来撞去的,所以时间不好计算。
'); document.write('但是你可以想象成:两个蚂蚁一旦碰撞,他们立马交换棒子,然后反弹回去。
'); document.write('这样,蚂蚁是弹开了,但是棒子是沿着以前的路线继续运动的。
'); document.write('所以每一个棒子实质上是从落地的地方开始,
'); document.write('沿着一个random的方向一直运动下去的,
'); document.write('这个什么碰来撞去的问题就不存在了。
'); document.write('【 在 longhei (money money money) 的大作中提到: 】
'); document.write(': 那答案到底是什么呀?
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:12:23 2006), 转信

就是后面其他人说的啊。
首先,500只蚂蚁和一只蚂蚁是一样的。
然后,考虑一只蚂蚁的最简单情况就行了。
关键是如何证明500只和1只是一回事。
我刚才回到家google了一下,在网上看到一个非常好的解释,
就是想象成每个蚂蚁扛一个大棒子,
只要保证每个蚂蚁必须扛且只能扛一个棒子,
那么考虑蚂蚁的运动和考虑棒子的运动就是一回事。

下面就只考虑棒子了。
这个问题复杂就在于:看起来蚂蚁会被碰来撞去的,所以时间不好计算。
但是你可以想象成:两个蚂蚁一旦碰撞,他们立马交换棒子,然后反弹回去。
这样,蚂蚁是弹开了,但是棒子是沿着以前的路线继续运动的。
所以每一个棒子实质上是从落地的地方开始,
沿着一个random的方向一直运动下去的,
这个什么碰来撞去的问题就不存在了。
【 在 longhei (money money money) 的大作中提到: 】
: 那答案到底是什么呀?
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 28 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:13:28 2006), 转信
'); document.write('
'); document.write('对不起,我就粗略说了一下,没讲清楚。
'); document.write('你得到的钱是喊停那一瞬间的点数。
'); document.write('之前的,只要你没喊停,这个机会就永远消失了。
'); document.write('【 在 minus (better) 的大作中提到: 】
'); document.write(': 那个dice的问题是怎么回事?
'); document.write(': 比如三次,
'); document.write(': 如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
'); document.write(': 如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
'); document.write(': 还是两次的均值?
'); document.write(': 不是很清楚问题:(
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:13:28 2006), 转信

对不起,我就粗略说了一下,没讲清楚。
你得到的钱是喊停那一瞬间的点数。
之前的,只要你没喊停,这个机会就永远消失了。
【 在 minus (better) 的大作中提到: 】
: 那个dice的问题是怎么回事?
: 比如三次,
: 如果你在投掷第一次的时候喊停,那么出现的那个number就是你得到的钱.
: 如果在第二次的时候喊停,那么你得到的钱是按第一次的时候算还是第二次?
: 还是两次的均值?
: 不是很清楚问题:(
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 29 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:20:48 2006), 转信
'); document.write('
'); document.write('no a, @@
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': you are CMU CS phd, right?
'); document.write(': going to quant?
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:20:48 2006), 转信

no a, @@
【 在 yogaII (...) 的大作中提到: 】
: you are CMU CS phd, right?
: going to quant?
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 30 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:21:43 2006), 转信
'); document.write('
'); document.write('you are right in the sense that the collision doesn\'t matter. However, the
'); document.write('number of ants matters in order to compute the time.
'); document.write('Intuitively, the more ants, the more chance one of the ants needs to walk
'); document.write('longer to finish since the question asks the expectation of the MAXIMUM
'); document.write('travel time.
'); document.write('
'); document.write('As I show before, I am reposting my answer as following:
'); document.write('
'); document.write('
'); document.write('X: 蚂蚁爬行的最大距离
'); document.write('
'); document.write('F(x1..500 < X) = (X/10)^(500)
'); document.write('
'); document.write('E(X) = 5000/501
'); document.write('
'); document.write('E(t) = 5000/(501*2)
'); document.write('
'); document.write('In the case of one ant, the answer is 5/2;
'); document.write('with the number of ants increase, you expect the time be longer since the
'); document.write('chance of a ant runs longer increases.
'); document.write('
'); document.write('Correct me if you think I am wrong.
'); document.write('
'); document.write('-yogaII-
'); document.write('
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 就是后面其他人说的啊。
'); document.write(': 首先,500只蚂蚁和一只蚂蚁是一样的。
'); document.write(': 然后,考虑一只蚂蚁的最简单情况就行了。
'); document.write(': 关键是如何证明500只和1只是一回事。
'); document.write(': 我刚才回到家google了一下,在网上看到一个非常好的解释,
'); document.write(': 就是想象成每个蚂蚁扛一个大棒子,
'); document.write(': 只要保证每个蚂蚁必须扛且只能扛一个棒子,
'); document.write(': 那么考虑蚂蚁的运动和考虑棒子的运动就是一回事。
'); document.write(': 下面就只考虑棒子了。
'); document.write(': 这个问题复杂就在于:看起来蚂蚁会被碰来撞去的,所以时间不好计算。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 16:23:48 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:21:43 2006), 转信

you are right in the sense that the collision doesn't matter. However, the
number of ants matters in order to compute the time.
Intuitively, the more ants, the more chance one of the ants needs to walk
longer to finish since the question asks the expectation of the MAXIMUM
travel time.

As I show before, I am reposting my answer as following:


X: 蚂蚁爬行的最大距离

F(x1..500 < X) = (X/10)^(500)

E(X) = 5000/501

E(t) = 5000/(501*2)

In the case of one ant, the answer is 5/2;
with the number of ants increase, you expect the time be longer since the
chance of a ant runs longer increases.

Correct me if you think I am wrong.

-yogaII-


【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 就是后面其他人说的啊。
: 首先,500只蚂蚁和一只蚂蚁是一样的。
: 然后,考虑一只蚂蚁的最简单情况就行了。
: 关键是如何证明500只和1只是一回事。
: 我刚才回到家google了一下,在网上看到一个非常好的解释,
: 就是想象成每个蚂蚁扛一个大棒子,
: 只要保证每个蚂蚁必须扛且只能扛一个棒子,
: 那么考虑蚂蚁的运动和考虑棒子的运动就是一回事。
: 下面就只考虑棒子了。
: 这个问题复杂就在于:看起来蚂蚁会被碰来撞去的,所以时间不好计算。
: ...................


--

※ 修改:·yogaII 于 Nov 10 16:23:48 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]

yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 31 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:22:30 2006), 转信
'); document.write('
'); document.write('faint... then I might made mistake. We should met before. Did you ever come
'); document.write('to
'); document.write('Long island?
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': no a, @@
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:22:30 2006), 转信

faint... then I might made mistake. We should met before. Did you ever come
to
Long island?

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: no a, @@



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 32 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:23:06 2006), 转信
'); document.write('
'); document.write('我不知道,就是听说有些人这么做的,甚至请一些朋友一起帮忙……
'); document.write('我觉得这样做的话应该算作弊,所有电话面试应该改成视频……
'); document.write('【 在 dewdrop (dewdrop) 的大作中提到: 】
'); document.write(': 难道大家都是这样面试的吗?不怕穿邦吗?我觉得面试的时候挺紧张的,桌上就一张白
'); document.write(': 纸,一支笔算算写写。。。
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:23:06 2006), 转信

我不知道,就是听说有些人这么做的,甚至请一些朋友一起帮忙……
我觉得这样做的话应该算作弊,所有电话面试应该改成视频……
【 在 dewdrop (dewdrop) 的大作中提到: 】
: 难道大家都是这样面试的吗?不怕穿邦吗?我觉得面试的时候挺紧张的,桌上就一张白
: 纸,一支笔算算写写。。。
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
zhizunbao 身份:版主 上站次数:5433 发表文章:53298 篇 经验值:66759 表现值:121 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 33 ] document.write('发信人: zhizunbao (至尊宝**生命不息,抗日不止**), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:23:10 2006), 转信
'); document.write('
'); document.write('I think you are right
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': you are right in the sense that the collision doesn\'t matter. However, the
'); document.write(': number of ants matters in order to compute the time. As I show before, I
'); document.write('am
'); document.write(': reposting my answer as following:
'); document.write(': X: 蚂蚁爬行的最大距离
'); document.write(': F(x1..500 < X) = (X/10)^(500)
'); document.write(': E(X) = 5000/501
'); document.write(': E(t) = 5000/(501*2)
'); document.write(': In the case of one ant, the answer is 5/2;
'); document.write(': with the number of ants increase, you expect the time be longer since the
'); document.write(': chance of a ant runs longer increases.
'); document.write(': ...................
'); document.write('
'); document.write('--
'); document.write('你是奇人嘛?你有受过专业训练嘛?
'); document.write('大家好,我是异能割喉展的评委--包小宝
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[From: 69.25.]
'); document.write('
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
'); 发信人: zhizunbao (至尊宝**生命不息,抗日不止**), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:23:10 2006), 转信

I think you are right
【 在 yogaII (...) 的大作中提到: 】
: you are right in the sense that the collision doesn't matter. However, the
: number of ants matters in order to compute the time. As I show before, I
am
: reposting my answer as following:
: X: 蚂蚁爬行的最大距离
: F(x1..500 < X) = (X/10)^(500)
: E(X) = 5000/501
: E(t) = 5000/(501*2)
: In the case of one ant, the answer is 5/2;
: with the number of ants increase, you expect the time be longer since the
: chance of a ant runs longer increases.
: ...................

--
你是奇人嘛?你有受过专业训练嘛?
大家好,我是异能割喉展的评委--包小宝


※ 来源:·BBS 未名空间站 mitbbs.com·[From: 69.25.]



※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 34 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:23:40 2006), 转信
'); document.write('
'); document.write('早记不清原题了,就是大概复述一下。
'); document.write('【 在 netghost (Up to Isomorphism) 的大作中提到: 】
'); document.write(': 题出得不严密,出题人不像是学概率的.
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:23:40 2006), 转信

早记不清原题了,就是大概复述一下。
【 在 netghost (Up to Isomorphism) 的大作中提到: 】
: 题出得不严密,出题人不像是学概率的.
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 35 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:25:13 2006), 转信
'); document.write('
'); document.write('never @@
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': faint... then I might made mistake. We should met before. Did you ever
'); document.write('come
'); document.write(': to
'); document.write(': Long island?
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:25:13 2006), 转信

never @@
【 在 yogaII (...) 的大作中提到: 】
: faint... then I might made mistake. We should met before. Did you ever
come
: to
: Long island?


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 36 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:27:14 2006), 转信
'); document.write('
'); document.write('... then there are two Wumi\'s in the world.
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': never @@
'); document.write(': come
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 16:27:31 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:27:14 2006), 转信

... then there are two Wumi's in the world.

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: never @@
: come



--

※ 修改:·yogaII 于 Nov 10 16:27:31 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]

zhizunbao 身份:版主 上站次数:5433 发表文章:53298 篇 经验值:66759 表现值:121 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 37 ] document.write('发信人: zhizunbao (至尊宝**生命不息,抗日不止**), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:28:19 2006), 转信
'); document.write('
'); document.write('你不都是yoga二世么
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': ... then there are two Wumi\'s in the world.
'); document.write('
'); document.write('
'); document.write('--
'); document.write('你是奇人嘛?你有受过专业训练嘛?
'); document.write('大家好,我是异能割喉展的评委--包小宝
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[From: 69.25.]
'); document.write('
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
'); 发信人: zhizunbao (至尊宝**生命不息,抗日不止**), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:28:19 2006), 转信

你不都是yoga二世么
【 在 yogaII (...) 的大作中提到: 】
: ... then there are two Wumi's in the world.


--
你是奇人嘛?你有受过专业训练嘛?
大家好,我是异能割喉展的评委--包小宝


※ 来源:·BBS 未名空间站 mitbbs.com·[From: 69.25.]



※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 206.222.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 38 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:28:51 2006), 转信
'); document.write('
'); document.write('哈哈,后面的我就没有继续算下去了。
'); document.write('因为我记不清楚是问平均最大时间还是极值最大时间了。
'); document.write('极值最大时间应该很简单,就是5秒。
'); document.write('平均最大时间要算期望的话,可能要考虑order statistics,也许数目会有关系。
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': you are right in the sense that the collision doesn\'t matter. However, the
'); document.write(': number of ants matters in order to compute the time.
'); document.write(': Intuitively, the more ants, the more chance one of the ants needs to walk
'); document.write(': longer to finish since the question asks the expectation of the MAXIMUM
'); document.write(': travel time.
'); document.write(': As I show before, I am reposting my answer as following:
'); document.write(': X: 蚂蚁爬行的最大距离
'); document.write(': F(x1..500 < X) = (X/10)^(500)
'); document.write(': E(X) = 5000/501
'); document.write(': E(t) = 5000/(501*2)
'); document.write(': ...................
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:28:51 2006), 转信

哈哈,后面的我就没有继续算下去了。
因为我记不清楚是问平均最大时间还是极值最大时间了。
极值最大时间应该很简单,就是5秒。
平均最大时间要算期望的话,可能要考虑order statistics,也许数目会有关系。
【 在 yogaII (...) 的大作中提到: 】
: you are right in the sense that the collision doesn't matter. However, the
: number of ants matters in order to compute the time.
: Intuitively, the more ants, the more chance one of the ants needs to walk
: longer to finish since the question asks the expectation of the MAXIMUM
: travel time.
: As I show before, I am reposting my answer as following:
: X: 蚂蚁爬行的最大距离
: F(x1..500 < X) = (X/10)^(500)
: E(X) = 5000/501
: E(t) = 5000/(501*2)
: ...................

--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 39 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:29:59 2006), 转信
'); document.write('
'); document.write('... well, there is only one yogaII in the world...
'); document.write('Someone should be renamed to WumiII
'); document.write('
'); document.write('【 在 zhizunbao (至尊宝**生命不息,抗日不止**) 的大作中提到: 】
'); document.write(': 你不都是yoga二世么
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:29:59 2006), 转信

... well, there is only one yogaII in the world...
Someone should be renamed to WumiII

【 在 zhizunbao (至尊宝**生命不息,抗日不止**) 的大作中提到: 】
: 你不都是yoga二世么



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 40 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:30:34 2006), 转信
'); document.write('
'); document.write('我是正牌的。另外一个是冒牌的。
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': ... then there are two Wumi\'s in the world.
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:30:34 2006), 转信

我是正牌的。另外一个是冒牌的。
【 在 yogaII (...) 的大作中提到: 】
: ... then there are two Wumi's in the world.

发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:32:17 2006), 转信

weird... so, you made some GRE JJ back in 2000?

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 我是正牌的。另外一个是冒牌的。



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]

美国嘉盛FOREX.COM 为您提供精准汇市分析, 模拟账户免费注册 wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 42 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:33:50 2006), 转信
'); document.write('
'); document.write('what\'s that?
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': weird... so, you made some GRE JJ back in 2000?
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:33:50 2006), 转信

what's that?
【 在 yogaII (...) 的大作中提到: 】
: weird... so, you made some GRE JJ back in 2000?


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 43 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:36:32 2006), 转信
'); document.write('
'); document.write('There is one WUMI who made some GRE jijing back in 2000, which benefited me.
'); document.write(' :)
'); document.write('
'); document.write('so, I would treat her as the true Wumi...
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': what\'s that?
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:36:32 2006), 转信

There is one WUMI who made some GRE jijing back in 2000, which benefited me.
:)

so, I would treat her as the true Wumi...

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: what's that?



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 44 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:40:17 2006), 转信
'); document.write('
'); document.write('not me :(
'); document.write('我对有些东西就是挺犹豫的,假纯洁,呵呵,
'); document.write('像之前有朋友面试同一公司,
'); document.write('回来主动要跟我说他面试的内容,被我拒绝了。
'); document.write('我会问一些大方向的问题,比如behavior问题为主还是case还是什么啦,
'); document.write('编程还是计量还是brainteaser啦,
'); document.write('但一具体到题我就不想知道了,觉得知道了心里不踏实,做贼似的。
'); document.write('我公开讨论的真题也都是先问过对方、得到允许后才公开讨论的。
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': There is one WUMI who made some GRE jijing back in 2000, which benefited
'); document.write('me.
'); document.write(': :)
'); document.write(': so, I would treat her as the true Wumi...
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:40:17 2006), 转信

not me :(
我对有些东西就是挺犹豫的,假纯洁,呵呵,
像之前有朋友面试同一公司,
回来主动要跟我说他面试的内容,被我拒绝了。
我会问一些大方向的问题,比如behavior问题为主还是case还是什么啦,
编程还是计量还是brainteaser啦,
但一具体到题我就不想知道了,觉得知道了心里不踏实,做贼似的。
我公开讨论的真题也都是先问过对方、得到允许后才公开讨论的。
【 在 yogaII (...) 的大作中提到: 】
: There is one WUMI who made some GRE jijing back in 2000, which benefited
me.
: :)
: so, I would treat her as the true Wumi...


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 45 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:40:40 2006), 转信
'); document.write('
'); document.write('牛人都这样。
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': not me :(
'); document.write(': 我对有些东西就是挺犹豫的,假纯洁,呵呵,
'); document.write(': 像之前有朋友面试同一公司,
'); document.write(': 回来主动要跟我说他面试的内容,被我拒绝了。
'); document.write(': 我会问一些大方向的问题,比如behavior问题为主还是case还是什么啦,
'); document.write(': 编程还是计量还是brainteaser啦,
'); document.write(': 但一具体到题我就不想知道了,觉得知道了心里不踏实,做贼似的。
'); document.write(': 我公开讨论的真题也都是先问过对方、得到允许后才公开讨论的。
'); document.write(': me.
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:40:40 2006), 转信

牛人都这样。

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: not me :(
: 我对有些东西就是挺犹豫的,假纯洁,呵呵,
: 像之前有朋友面试同一公司,
: 回来主动要跟我说他面试的内容,被我拒绝了。
: 我会问一些大方向的问题,比如behavior问题为主还是case还是什么啦,
: 编程还是计量还是brainteaser啦,
: 但一具体到题我就不想知道了,觉得知道了心里不踏实,做贼似的。
: 我公开讨论的真题也都是先问过对方、得到允许后才公开讨论的。
: me.



--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 46 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:41:09 2006), 转信
'); document.write('
'); document.write('我一点都不牛,就是心理上过不了这个坎儿。
'); document.write('【 在 yogaII (...) 的大作中提到: 】
'); document.write(': 牛人都这样。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:41:09 2006), 转信

我一点都不牛,就是心理上过不了这个坎儿。
【 在 yogaII (...) 的大作中提到: 】
: 牛人都这样。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
yogaII
身份:用户 上站次数:4361 发表文章:8818 篇 经验值:17074 表现值:43 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 47 ] document.write('发信人: yogaII (...), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:47:39 2006), 转信
'); document.write('
'); document.write('it\'s ok...
'); document.write('but I would pretend that I don\'t know and then try to think hard and finally
'); document.write(' get the result.
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 我一点都不牛,就是心理上过不了这个坎儿。
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 修改:·yogaII 于 Nov 10 16:47:55 修改本文·[FROM: 130.245.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]
'); document.write('
'); 发信人: yogaII (...), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:47:39 2006), 转信

it's ok...
but I would pretend that I don't know and then try to think hard and finally
get the result.

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 我一点都不牛,就是心理上过不了这个坎儿。



--

※ 修改:·yogaII 于 Nov 10 16:47:55 修改本文·[FROM: 130.245.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 130.245.]

lieren
身份:用户 上站次数:1329 发表文章:1446 篇 经验值:3969 表现值:19 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 48 ] document.write('发信人: lieren (firstblood--pally), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 16:58:32 2006), 转信
'); document.write('
'); document.write('2.5秒。
'); document.write('
'); document.write('就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。
'); document.write('
'); document.write('那考虑这500个蚂蚁中的蚂蚁1,
'); document.write('
'); document.write('假设它随机落下的位置为 x, 平均时间为t.
'); document.write('
'); document.write('那么E[t] = E[E[t|x]] = \\int_0^10E[t|x]*1/10 dx
'); document.write('
'); document.write('E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s
'); document.write('
'); document.write('so, E[t] = 2.5s.
'); document.write('
'); document.write('这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
'); document.write('.5s.
'); document.write('
'); document.write('第二个策略,
'); document.write('
'); document.write('从后往前递推,先求一次都不叫的期望。得出第二次扔什么结果时候叫,然后再往
'); document.write('前推,得出第一次扔什么的时候叫停。
'); document.write('
'); document.write('如果可以扔无数次,那就看到扔6的时候叫停。
'); document.write('
'); document.write('个人意见,不保证答案正确,呵呵。
'); document.write('
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.138.]
'); 发信人: lieren (firstblood--pally), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 16:58:32 2006), 转信

2.5秒。

就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。

那考虑这500个蚂蚁中的蚂蚁1,

假设它随机落下的位置为 x, 平均时间为t.

那么E[t] = E[E[t|x]] = \int_0^10E[t|x]*1/10 dx

E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s

so, E[t] = 2.5s.

这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
.5s.

第二个策略,

从后往前递推,先求一次都不叫的期望。得出第二次扔什么结果时候叫,然后再往
前推,得出第一次扔什么的时候叫停。

如果可以扔无数次,那就看到扔6的时候叫停。

个人意见,不保证答案正确,呵呵。


【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.138.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 49 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 17:03:46 2006), 转信
'); document.write('
'); document.write('一个蚂蚁最大可能5秒,最小可能0秒,
'); document.write('但如果两只蚂蚁,问t(从开始到所有蚂蚁掉光光)的均值,
'); document.write('那相当于问t1和t2中最大的那个值的期望,
'); document.write('似乎应该是order statistic的问题吧。
'); document.write('
'); document.write('t_1, t_2... t_500 ~ U(0,5), i.i.d.
'); document.write('t=max(t_1, t_2,...t_500)
'); document.write('E(t)=?
'); document.write('是这样么?暂时由点事情,回来再考虑了。
'); document.write('
'); document.write('【 在 lieren (firstblood--pally) 的大作中提到: 】
'); document.write(': 2.5秒。
'); document.write(': 就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。
'); document.write(': 那考虑这500个蚂蚁中的蚂蚁1,
'); document.write(': 假设它随机落下的位置为 x, 平均时间为t.
'); document.write(': 那么E[t] = E[E[t|x]] = \\int_0^10E[t|x]*1/10 dx
'); document.write(': E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s
'); document.write(': so, E[t] = 2.5s.
'); document.write(': 这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
'); document.write(': .5s.
'); document.write(': 第二个策略,
'); document.write(': ...................
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 修改:·wumi 于 Nov 10 17:16:30 修改本文·[FROM: 69.141.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); document.write('
'); document.write('
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 17:03:46 2006), 转信

一个蚂蚁最大可能5秒,最小可能0秒,
但如果两只蚂蚁,问t(从开始到所有蚂蚁掉光光)的均值,
那相当于问t1和t2中最大的那个值的期望,
似乎应该是order statistic的问题吧。

t_1, t_2... t_500 ~ U(0,5), i.i.d.
t=max(t_1, t_2,...t_500)
E(t)=?
是这样么?暂时由点事情,回来再考虑了。

【 在 lieren (firstblood--pally) 的大作中提到: 】
: 2.5秒。
: 就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。
: 那考虑这500个蚂蚁中的蚂蚁1,
: 假设它随机落下的位置为 x, 平均时间为t.
: 那么E[t] = E[E[t|x]] = \int_0^10E[t|x]*1/10 dx
: E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s
: so, E[t] = 2.5s.
: 这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
: .5s.
: 第二个策略,
: ...................

--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 修改:·wumi 于 Nov 10 17:16:30 修改本文·[FROM: 69.141.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]


findle
身份:用户 上站次数:1118 发表文章:1189 篇 经验值:3213 表现值:24 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 50 ] document.write('发信人: findle (It is not a big deal), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 17:51:46 2006), 转信
'); document.write('
'); document.write('一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
'); document.write('但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
'); document.write('E[maxTn]
'); document.write('因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
'); document.write('虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
'); document.write('Xn是500个iid的uniform r.v.\'s,let Y=maxXn
'); document.write('P(Y<y)=P(maxXn<y)=P(X1<y)*..*P(Xn<y)=(y/L)^n L为木棍长度
'); document.write('那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
'); document.write('E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
'); document.write('E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s
'); document.write('
'); document.write('【 在 lieren (firstblood--pally) 的大作中提到: 】
'); document.write(': 2.5秒。
'); document.write(': 就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。
'); document.write(': 那考虑这500个蚂蚁中的蚂蚁1,
'); document.write(': 假设它随机落下的位置为 x, 平均时间为t.
'); document.write(': 那么E[t] = E[E[t|x]] = \\int_0^10E[t|x]*1/10 dx
'); document.write(': E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s
'); document.write(': so, E[t] = 2.5s.
'); document.write(': 这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
'); document.write(': .5s.
'); document.write(': 第二个策略,
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 151.201.]
'); 发信人: findle (It is not a big deal), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 17:51:46 2006), 转信

一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
E[maxTn]
因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
Xn是500个iid的uniform r.v.'s,let Y=maxXn
P(Y那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s

【 在 lieren (firstblood--pally) 的大作中提到: 】
: 2.5秒。
: 就像别人说的那样,蚂蚁碰一下其实可以认为没有碰,继续往前走了。
: 那考虑这500个蚂蚁中的蚂蚁1,
: 假设它随机落下的位置为 x, 平均时间为t.
: 那么E[t] = E[E[t|x]] = \int_0^10E[t|x]*1/10 dx
: E[t|x] = x/2*0.5 + (10-x)/2 * 0.5 = 2.5s
: so, E[t] = 2.5s.
: 这些蚂蚁可以看成独立的,1个蚂蚁平均2.5s,500个蚂蚁,加起来,一平均,还是2
: .5s.
: 第二个策略,
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 151.201.]
longhei
身份:用户 上站次数:4526 发表文章:2746 篇 经验值:8018 表现值:30 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 51 ] document.write('发信人: longhei (money money money), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 18:02:57 2006), 转信
'); document.write('
'); document.write('有一些小小的typo,但是我想这是正解,呵呵,谢谢yogaII
'); document.write('
'); document.write('【 在 findle (It is not a big deal) 的大作中提到: 】
'); document.write(': 一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
'); document.write(': 但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
'); document.write(': E[maxTn]
'); document.write(': 因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
'); document.write(': 虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
'); document.write(': Xn是500个iid的uniform r.v.\'s,let Y=maxXn
'); document.write(': P(Y<y)=P(maxXn<y)=P(X1<y)*..*P(Xn<y)=(y/L)^n L为木棍长度
'); document.write(': 那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
'); document.write(': E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
'); document.write(': E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s
'); document.write(': ...................
'); document.write('
'); document.write('--
'); document.write('If you love her
'); document.write(' bring her to USA
'); document.write(' for it is Heaven
'); document.write('If you hate her
'); document.write(' bring her to USA
'); document.write(' for it is Hell
'); document.write('
'); document.write('
'); document.write('
'); document.write('※ 修改:·longhei 于 Nov 10 18:03:45 修改本文·[FROM: 129.105.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.105.]
'); document.write('
'); 发信人: longhei (money money money), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 18:02:57 2006), 转信

有一些小小的typo,但是我想这是正解,呵呵,谢谢yogaII

【 在 findle (It is not a big deal) 的大作中提到: 】
: 一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
: 但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
: E[maxTn]
: 因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
: 虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
: Xn是500个iid的uniform r.v.'s,let Y=maxXn
: P(Y: 那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
: E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
: E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s
: ...................

--
If you love her
bring her to USA
for it is Heaven
If you hate her
bring her to USA
for it is Hell



※ 修改:·longhei 于 Nov 10 18:03:45 修改本文·[FROM: 129.105.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 129.105.]

lieren
身份:用户 上站次数:1329 发表文章:1446 篇 经验值:3969 表现值:19 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 52 ] document.write('发信人: lieren (firstblood--pally), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 18:07:47 2006), 转信
'); document.write('
'); document.write('agree.
'); document.write('
'); document.write('you missed something somewhere,but correct resaoning.
'); document.write('
'); document.write('【 在 findle (It is not a big deal) 的大作中提到: 】
'); document.write(': 一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
'); document.write(': 但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
'); document.write(': E[maxTn]
'); document.write(': 因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
'); document.write(': 虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
'); document.write(': Xn是500个iid的uniform r.v.\'s,let Y=maxXn
'); document.write(': P(Y<y)=P(maxXn<y)=P(X1<y)*..*P(Xn<y)=(y/L)^n L为木棍长度
'); document.write(': 那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
'); document.write(': E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
'); document.write(': E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.138.]
'); 发信人: lieren (firstblood--pally), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 18:07:47 2006), 转信

agree.

you missed something somewhere,but correct resaoning.

【 在 findle (It is not a big deal) 的大作中提到: 】
: 一只蚂蚁爬出去的时间为T,E[T]=2.5s,这个没错
: 但如果是500只蚂蚁,就应该考虑500个随机变量的Tn(n=1..500)的最大值
: E[maxTn]
: 因为爬出去的时间Tn只取决于落下的位置(由于向左向右概率一样,所以我们可以只考
: 虑蚂蚁都向一个方向爬的情况,那么时间Tn是由落下的位置Xn决定的,Tn=Xn/v)
: Xn是500个iid的uniform r.v.'s,let Y=maxXn
: P(Y: 那么Y的密度函数就是d[(y/l)^n]/dy=y^(n-1)/L^n
: E[Y]=int(y*y^(n-1),y=0..L)/L^n=L*(n-1)/n
: E[maxTn]=E[Y]/v=5*n/(n+1)=2500/501=4.99s
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.138.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 53 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 18:40:38 2006), 转信
'); document.write('
'); document.write('嗯,5n/(n+1),最后应该是趋向于5。
'); document.write('当蚂蚁数目越来越多时,
'); document.write('总会有个倒霉蛋得从头到尾跑完全程的。
'); document.write('【 在 lieren (firstblood--pally) 的大作中提到: 】
'); document.write(': agree.
'); document.write(': you missed something somewhere,but correct resaoning.
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 修改:·wumi 于 Nov 10 18:43:10 修改本文·[FROM: 69.141.]
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); document.write('
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 18:40:38 2006), 转信

嗯,5n/(n+1),最后应该是趋向于5。
当蚂蚁数目越来越多时,
总会有个倒霉蛋得从头到尾跑完全程的。
【 在 lieren (firstblood--pally) 的大作中提到: 】
: agree.
: you missed something somewhere,but correct resaoning.


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 修改:·wumi 于 Nov 10 18:43:10 修改本文·[FROM: 69.141.]
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]

aos
身份:用户 上站次数:473 发表文章:77 篇 经验值:474 表现值:18 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 54 ] document.write('发信人: aos (aos), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 18:51:31 2006), 转信
'); document.write('
'); document.write('刚刚想了太简单了,删了
'); document.write('下面得应该对得
'); document.write('
'); document.write('假设一只蚂蚁在棍子上的时间为t
'); document.write('那么t的概率分布是:
'); document.write('Pr(t<x)=Pr(t<x|up)*Pr(up)+Pr(t<x|down)*Pr(down)
'); document.write('=Pr(t<x|up)*.5+Pr(t<x|down)*.5
'); document.write('设这只蚂蚁在一根棍子上的起始位置为y(从顶端算起)y~U(0,10)
'); document.write('Pr(t<x|up)=Pr(y/2<x)=Pr(y<2x)
'); document.write('Pr(t<x|down)=Pr((10-y)/2<x)=Pr(y>10-2x)
'); document.write('
'); document.write('那么就此可以求出Pr(t<x)
'); document.write('设500只蚂蚁在棍上的时间为T,其中每只蚂蚁在棍上的时间为ti, 且互相独立
'); document.write('Pr(T<x)=Pr(max(ti)<x)=Pr(t1<x,t2<x,t3<x,...t500<x)
'); document.write('=Pr(t1<x)*Pr(t2<x)*...*Pr(t500<x)
'); document.write('=Pr(t<x)^500
'); document.write('
'); document.write('就可以求得T得概率分布
'); document.write('然后算均值
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 24.195.]
'); 发信人: aos (aos), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 18:51:31 2006), 转信

刚刚想了太简单了,删了
下面得应该对得

假设一只蚂蚁在棍子上的时间为t
那么t的概率分布是:
Pr(t=Pr(t设这只蚂蚁在一根棍子上的起始位置为y(从顶端算起)y~U(0,10)
Pr(tPr(t10-2x)

那么就此可以求出Pr(t设500只蚂蚁在棍上的时间为T,其中每只蚂蚁在棍上的时间为ti, 且互相独立
Pr(T=Pr(t1=Pr(t
就可以求得T得概率分布
然后算均值
【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 24.195.]
perdue
身份:用户 上站次数:44 发表文章:165 篇 经验值:260 表现值:45 生命力:120 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 55 ] document.write('发信人: perdue (Street), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 21:02:28 2006)
'); document.write('
'); document.write('uniform分布是对称的, 所以没有问题. 如果要严格一点, 这个
'); document.write('分布应该是 D=X with probability 1/2 and 10-X with probability
'); document.write('1/2. 再求max(D_1, ..., D_n). 打个比方, 如果一个蚂蚁离左边2m, 但是
'); document.write('it 往右爬, its D 应该是 10-2=8. 如果分布不对称的话, 要先求一下.
'); document.write('
'); document.write('
'); document.write('【 在 lieren (firstblood--pally) 的大作中提到: 】
'); document.write(': agree.
'); document.write(': you missed something somewhere,but correct resaoning.
'); document.write('
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 24.124.]
'); 发信人: perdue (Street), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 21:02:28 2006)

uniform分布是对称的, 所以没有问题. 如果要严格一点, 这个
分布应该是 D=X with probability 1/2 and 10-X with probability
1/2. 再求max(D_1, ..., D_n). 打个比方, 如果一个蚂蚁离左边2m, 但是
it 往右爬, its D 应该是 10-2=8. 如果分布不对称的话, 要先求一下.


【 在 lieren (firstblood--pally) 的大作中提到: 】
: agree.
: you missed something somewhere,but correct resaoning.



--

※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 24.124.]
oolong
身份:用户 上站次数:1027 发表文章:85 篇 经验值:2008 表现值:7 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 56 ] document.write('发信人: oolong (乌龙茶), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 22:20:22 2006), 转信
'); document.write('
'); document.write('和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
'); document.write('因此只需要计算一只蚂蚁的情形就行了
'); document.write('
'); document.write('<t> = int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
'); document.write(' = 5/2
'); document.write('
'); document.write('【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
'); document.write(': 首先问问,大家电话面试的时候都是怎么做的?
'); document.write(': 我就接过一个电话面试,就是老老实实地听、想,
'); document.write(': 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
'); document.write(': 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
'); document.write(': 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
'); document.write(': 就是问你某个分布一些特征值的问题,
'); document.write(': 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
'); document.write(': 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
'); document.write(': 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
'); document.write(': 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
'); document.write('了。
'); document.write(': ...................
'); document.write('
'); document.write('
'); document.write('--
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 59.189.]
'); 发信人: oolong (乌龙茶), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 22:20:22 2006), 转信

和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
因此只需要计算一只蚂蚁的情形就行了

= int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
= 5/2

【 在 wumi (乌咪·一定要去pets和gardening版!) 的大作中提到: 】
: 首先问问,大家电话面试的时候都是怎么做的?
: 我就接过一个电话面试,就是老老实实地听、想,
: 等后来回来后跟朋友们聊,结果他们都很吃惊,说你怎么那么老实?
: 他们电话面试都是面前摆开一片书本、讲义,然后电脑随时google。
: 我后来想想,如果这么做的话,我当时有个题的确能答得更好一些,
: 就是问你某个分布一些特征值的问题,
: 我想了好一阵子,总算是蒙对了,但我跟对方说我不确定,
: 因为这些东西我总觉得需要时查书就可以了,所以只有一个模糊的印象。
: 如果当时有参考书的话,那我肯定可以100%确定地答出来,而不会是犹犹豫豫。
: 另外,我碰到一个brainteaser,没有做出来,等放下电话后五分钟突然就反应过来
了。
: ...................


--

※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 59.189.]
wumi 身份:用户 上站次数:5524 发表文章:10826 篇 经验值:15479 表现值:55 生命力:365 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 57 ] document.write('发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 22:25:28 2006), 转信
'); document.write('
'); document.write('主要问题是要求500只螃蟹全部掉落所需时间的均值,
'); document.write('所以最终求期望值的变量是500各r.v.中的最大值,这样跟500就有关系了。
'); document.write('【 在 oolong (乌龙茶) 的大作中提到: 】
'); document.write(': 和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
'); document.write(': 因此只需要计算一只蚂蚁的情形就行了
'); document.write(': <t> = int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
'); document.write(': = 5/2
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write(' 乌咪讨厌你!
'); document.write('
'); document.write('http://www.youtube.com/watch?v=aKMj-DHscTQ
'); document.write('http://www.youtube.com/watch?v=fFhIGbe5RoY
'); document.write('http://www.youtube.com/watch?v=61q9QiqNXNA
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
'); 发信人: wumi (乌咪·一定要去pets和gardening版!), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 22:25:28 2006), 转信

主要问题是要求500只螃蟹全部掉落所需时间的均值,
所以最终求期望值的变量是500各r.v.中的最大值,这样跟500就有关系了。
【 在 oolong (乌龙茶) 的大作中提到: 】
: 和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
: 因此只需要计算一只蚂蚁的情形就行了
: = int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
: = 5/2
: 了。


--
乌咪讨厌你!

http://www.youtube.com/watch?v=aKMj-DHscTQ
http://www.youtube.com/watch?v=fFhIGbe5RoY
http://www.youtube.com/watch?v=61q9QiqNXNA


※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.141.]
longhei
身份:用户 上站次数:4526 发表文章:2746 篇 经验值:8018 表现值:30 生命力:666 我的博客 [回复文章] [回信给作者] [本篇全文] [进入讨论区] [返回顶部] [删除文章] [转寄] [转贴] [ 58 ] document.write('发信人: longhei (money money money), 信区: Quant
'); document.write('标 题: Re: 面试问题(brainteaser)
'); document.write('发信站: BBS 未名空间站 (Fri Nov 10 22:26:43 2006), 转信
'); document.write('
'); document.write('这个逻辑很有问题,嗯
'); document.write('
'); document.write('【 在 oolong (乌龙茶) 的大作中提到: 】
'); document.write(': 和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
'); document.write(': 因此只需要计算一只蚂蚁的情形就行了
'); document.write(': <t> = int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
'); document.write(': = 5/2
'); document.write(': 了。
'); document.write('
'); document.write('
'); document.write('--
'); document.write('If you love her
'); document.write(' bring her to USA
'); document.write(' for it is Heaven
'); document.write('If you hate her
'); document.write(' bring her to USA
'); document.write(' for it is Hell
'); document.write('
'); document.write('
'); document.write('
'); document.write('※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 75.32.]
'); 发信人: longhei (money money money), 信区: Quant
标 题: Re: 面试问题(brainteaser)
发信站: BBS 未名空间站 (Fri Nov 10 22:26:43 2006), 转信

这个逻辑很有问题,嗯

【 在 oolong (乌龙茶) 的大作中提到: 】
: 和500没有关系的,因为其实每只蚂蚁可以看成相互独立的
: 因此只需要计算一只蚂蚁的情形就行了
: = int_{0}^{1} (0.5 * x * 10/2 + 0.5 * (1-x) * 10/2) dx
: = 5/2
: 了。


--
If you love her
bring her to USA
for it is Heaven
If you hate her
bring her to USA
for it is Hell

No comments: