由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - Re: 还是扔鸡蛋,N层楼M个鸡蛋咋办啊 (转载)
相关主题
A coin throwing question.FX的cap,floor的报价哪里可以查到?
100 层楼扔两鸡蛋的题目为什么是 n(n+1) = 100 ?quant strategist for high-frequcny trading or regular trading floor?
[合集] 问两个概率的题目这个strategy是怎么实现的?
合集 Questions Summary请教一个关于Cap/Floor的简单问题
[合集] 请问61 broadway, 3rd floor, NY 10006是哪家公司?有没有关于trading floor 的概述
[合集] 有谁去CMU和Cornell?interest rate floor hedge to rates rise?
Day trader to Floor trader菜鸟如何找入门quant职位
连续扔n次硬币,连续2次是正面的概率?A Special Interview Question
相关话题的讨论汇总
话题: floor话题: th话题: floors话题: try话题: eggs
进入Quant版参与讨论
1 (共1页)
o****e
发帖数: 80
1
【 以下文字转载自 BrainTeaser 讨论区 】
发信人: ogtree (好好努力), 信区: BrainTeaser
标 题: Re: 还是扔鸡蛋,N层楼M个鸡蛋咋办啊
发信站: BBS 未名空间站 (Thu Jul 8 16:19:07 2010, 美东)
i think for the case of 3 eggs, should be like this
start from n-th floor, then try middle floor of n/2-th , then use the 3rd
egg to try either upper half section
or lower half section,
so for the n-th floor, the max try will be (n+2)/2;
then go to the n-2 th floor, the max try will be n/2
and so on
so the sequence will be like this
n, n-2, n-4, n-6, .........
s*******u
发帖数: 35
2
Let f_1(n) be the number of floors we can test with 1 egg and n throws.
f_2(n) be the number of floors we can test with 2 eggs and n throws.
f_3(n) be the number of floors we can test with 3 eggs and n throws.
Clearly, f_1(n)=n; Consider two eggs. Clearly the first throw has to be at
floor n because otherwise if the
egg breaks at n, we would not be able to test the floors below. Now if the
first egg does not break, we can
test f_2(n-1) more floors. So f_2(n)=n+f_2(n-1); Hence f_2(n)=(n+1

【在 o****e 的大作中提到】
: 【 以下文字转载自 BrainTeaser 讨论区 】
: 发信人: ogtree (好好努力), 信区: BrainTeaser
: 标 题: Re: 还是扔鸡蛋,N层楼M个鸡蛋咋办啊
: 发信站: BBS 未名空间站 (Thu Jul 8 16:19:07 2010, 美东)
: i think for the case of 3 eggs, should be like this
: start from n-th floor, then try middle floor of n/2-th , then use the 3rd
: egg to try either upper half section
: or lower half section,
: so for the n-th floor, the max try will be (n+2)/2;
: then go to the n-2 th floor, the max try will be n/2

p*****k
发帖数: 318
1 (共1页)
进入Quant版参与讨论
相关主题
A Special Interview Question[合集] 请问61 broadway, 3rd floor, NY 10006是哪家公司?
[合集] 问一个玻璃球和100层楼的问题[合集] 有谁去CMU和Cornell?
3month Treasury YieldDay trader to Floor trader
问一个简单得expectation的问题连续扔n次硬币,连续2次是正面的概率?
A coin throwing question.FX的cap,floor的报价哪里可以查到?
100 层楼扔两鸡蛋的题目为什么是 n(n+1) = 100 ?quant strategist for high-frequcny trading or regular trading floor?
[合集] 问两个概率的题目这个strategy是怎么实现的?
合集 Questions Summary请教一个关于Cap/Floor的简单问题
相关话题的讨论汇总
话题: floor话题: th话题: floors话题: try话题: eggs