由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - Re: [转载] 动脑筋问题
相关主题
矩阵趣题paper review
写paperPaper help: The British Journal for the Philosophy of Scien
两将军问题我发现期权的一个特点,帮我看看
Re: 如何计算不超过一个浮点数的最大整数?Big Jump in Unemployment for Blacks
SUPERSTRINGS! Supersymmetric StringsProbabilistic Relational Models 搞什么的啊
Re: how to get the following Dirac relation?After next week, shift strategy to bear market play
Re: 1/f noiseEB1A RFE请教-被质疑未claim的条款
让我头痛死了的问题step 1 NBME有感,在此不讨论题目
相关话题的讨论汇总
话题: strategy话题: return话题: my话题: cal话题: history
进入Science版参与讨论
1 (共1页)
d*z
发帖数: 150
1

m为瓶的数目,N为楼的高度,当然
f(m,1)=1,f(1,N)=N.(100层一个瓶时应该是100次,而不是99次呀,
因为有可能在100层也不会摔碎)。
f(m,N)=min{f(m-1,k-1)+f(m,N-k)|k=2,...,N-1}
w*y
发帖数: 70
2
当m=2时,记f2(x)=f(2,x);
f2(x)=min{ max[(t-1), f(n-t)+1]| t=2,3,...,n-1}
f2(0)=0;
f2(1)=1;
f2(2)=1;
...
推出f2(100)=13.
其实13是对的,见下:
第一个瓶子层数/第二个瓶子层数/投掷次数
a******t
发帖数: 100
3
perl script :
@history;
sub cal
{
my $n = shift @_;
my $m = shift @_;
my $a = $n;
return $history[$n][$m] if ($history[$n][$m] > 0);
return $a if ($m == 1);
return 10000 if ($m < 1);
return 1 if ($n == 1);
return 10000 if ($n < 1);
foreach my $k (2..$n-1)
{
my $b, $c;
$b = 1 + cal($k - 1, $m - 1);
$c = 1 + cal($n - $k, $m);
$b = $c if ($c >
h*l
发帖数: 19
4
Ok, a "strategy" is: within steps tried and
information obtained, what is/could_be the
next step so that it can/could lead objective".
Likewise, we can define "contional strategy"
(e.g. n-steps strategy) and "optimal strategy"
(e.g. maximum-information-gain strategy),
"guranteed-strategy" (no probabilistic betting)
Strategy is in general not a predetermined step-
"sequence" but a step "relation". A strategy
is still an "algorthim".
This problem is: Find a minimum integer n,
so there exsists a n-
1 (共1页)
进入Science版参与讨论
相关主题
step 1 NBME有感,在此不讨论题目SUPERSTRINGS! Supersymmetric Strings
好想学手动档的车, 便宜, 省油, 有经验的进来聊聊?Re: how to get the following Dirac relation?
诚心请教备考(Step1)Strategy 的问题Re: 1/f noise
NJTransit不用月票的TX们可以多多存单价票了让我头痛死了的问题
矩阵趣题paper review
写paperPaper help: The British Journal for the Philosophy of Scien
两将军问题我发现期权的一个特点,帮我看看
Re: 如何计算不超过一个浮点数的最大整数?Big Jump in Unemployment for Blacks
相关话题的讨论汇总
话题: strategy话题: return话题: my话题: cal话题: history