avatar
m*i
2
从careercup上看到的,不知道该怎么做,牛人指点一下
Given a cube. A ant is placed in a corner and cannot move. A spider starts
from the opposite corner, and can move along cube edges in any direction (x,
y,z) with probablity 1/3. What is the expected number of steps for this
spider to get to the ant?
avatar
F*t
3
不是大师哈
是肉糜吗? 可以包饺子,做京东肉饼,做meatball,做meatloaf,做chili
avatar
B*t
4
This is an interview problem from quant, I don't think software developers
will be asked.
The answer is 10.
if you know Markov chain, it's quite easy. if not, a little bit harder.

x,

【在 m*******i 的大作中提到】
: 从careercup上看到的,不知道该怎么做,牛人指点一下
: Given a cube. A ant is placed in a corner and cannot move. A spider starts
: from the opposite corner, and can move along cube edges in any direction (x,
: y,z) with probablity 1/3. What is the expected number of steps for this
: spider to get to the ant?

avatar
Z*5
5
可以和豆芽什么的一起炒了,做盖浇饭
avatar
s*l
6
http://www.mitbbs.com/article3/Quant/27138300_0_tn.html

【在 m*******i 的大作中提到】
: 从careercup上看到的,不知道该怎么做,牛人指点一下
: Given a cube. A ant is placed in a corner and cannot move. A spider starts
: from the opposite corner, and can move along cube edges in any direction (x,
: y,z) with probablity 1/3. What is the expected number of steps for this
: spider to get to the ant?

avatar
m*h
7
蚂蚁上树,炸酱面的肉酱
avatar
s*f
8
假设spider在点A, ant在点D,

C---D
/| /|
B---C |
| B-|-C
|/ |/
A---B
那么另外6个点可以分成B和C两类:
然后我们来计算:
E(A) = E(B) + 1 //从A点怎么走都是到B点,所以是B点的expection + 1 step
E(B) = 1/3 (E(A)+1) + 2/3 (E(C)+1) //在B点有1/3可能性去A,2/3可能性去C
E(C) = 1/3 + 2/3 (E(B)+1) //在C点有1/3可能性就到了D,2/3的可能性去B
3个方程3个变量,解得E(A) = 10.

x,

【在 m*******i 的大作中提到】
: 从careercup上看到的,不知道该怎么做,牛人指点一下
: Given a cube. A ant is placed in a corner and cannot move. A spider starts
: from the opposite corner, and can move along cube edges in any direction (x,
: y,z) with probablity 1/3. What is the expected number of steps for this
: spider to get to the ant?

avatar
s*a
9
做西湖牛肉羹吧,简易版的味道还不错
avatar
v*x
11
请教简易版菜谱,jhq里都是用牛肉的呀。

【在 s*******a 的大作中提到】
: 做西湖牛肉羹吧,简易版的味道还不错
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。