Redian新闻
>
Yale vs. Harvard Immunology 哪个更牛?
avatar
Yale vs. Harvard Immunology 哪个更牛?# Biology - 生物学
c*t
1
就是那道经典的
count paths in a matrix with obsticles
如果仅仅是count paths in a matrix,那么很简单的DP就解决了。下面是我写的C++代
码,在VS2008下调试通过:
int path(int start_x, int start_y, int end_x, int end_y)
{
if(start_x == end_x || start_y == end_y)
{
return 1;
}
return path(start_x + 1, start_y, end_x, end_y) + path(start_x, start_y
+ 1, end_x, end_y);
}
可是如果矩阵里面有障碍的话,我就不知道该怎么解决了
还请版里的各位达人赐教,多谢了!
avatar
i*e
2
Jack Strominger 和他training 出来的immunologist 对免疫学领域的发展影响是巨大
, MHC-I, MHC-II, CD1d,抗原递呈...
avatar
g*s
3
your codes are not DP. O(2^n)
you need store the visited nodes.
avatar
c*n
4
各有千秋吧。我觉得Don Wiley更牛吧,如果不是死得早,估计已经炸药奖了吧。
avatar
d*e
5
please refer here
http://www.ihas1337code.com/2010/11/unique-paths.html
it should be similar. but you have to define what value in the cell stands
for obstacle and then add the checking. assume that all cells are non-
negative and 0 is obsacle.
int path(int [][] matrix, int m, int n){
matrix[m-1][n-1] = 1;
for(int r = m - 1; r >= 0; r--){
for(int c = n - 1; c >= 0; c--){
if(r == m - 1 && c == n - 1)
continue;
if(matrix[r][c] != 0)
matrix[r][c] = matrix[r+1][c] + matrix[r][c+1];
}
}
return matrix[0][0];
}

【在 c******t 的大作中提到】
: 就是那道经典的
: count paths in a matrix with obsticles
: 如果仅仅是count paths in a matrix,那么很简单的DP就解决了。下面是我写的C++代
: 码,在VS2008下调试通过:
: int path(int start_x, int start_y, int end_x, int end_y)
: {
: if(start_x == end_x || start_y == end_y)
: {
: return 1;
: }

avatar
t*1
6
Jack是我本人非常崇敬的人,很严谨,很humble, 有什么说什么,不夸大。大家有兴趣
可以读一下这个:
Annu Rev Immunol. 2006;24:1-31.
The tortuous journey of a biochemist to immunoland and what he found there.

【在 i****e 的大作中提到】
: Jack Strominger 和他training 出来的immunologist 对免疫学领域的发展影响是巨大
: , MHC-I, MHC-II, CD1d,抗原递呈...

avatar
t*1
7
是啊,英年早逝的牛人太多了。Janeway就是去的太早了,如果他老人家活着,我宁愿
不要任何工资给他白干活。

【在 c**********n 的大作中提到】
: 各有千秋吧。我觉得Don Wiley更牛吧,如果不是死得早,估计已经炸药奖了吧。
avatar
t*y
8
其实Jack也不是immunologist...他自己一般都不这么认为的

【在 t**********1 的大作中提到】
: Jack是我本人非常崇敬的人,很严谨,很humble, 有什么说什么,不夸大。大家有兴趣
: 可以读一下这个:
: Annu Rev Immunol. 2006;24:1-31.
: The tortuous journey of a biochemist to immunoland and what he found there.

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