avatar
google 一道dp 题# JobHunting - 待字闺中
h*g
1
You have to paint N boards of length {B1, B2, B3… BN}. There are K painters
available and you are also given how much time a painter takes to paint 1
unit of board. You have to get this job done as soon as possible under the
constraints that any painter will only paint continuous sections of board,
say board {2, 3, 4} or only board {1} or nothing but not board {2, 4, 5}.
用DP 得咋解?
avatar
g*e
2
前几天版上讨论过,往前翻一下

painters

【在 h*****g 的大作中提到】
: You have to paint N boards of length {B1, B2, B3… BN}. There are K painters
: available and you are also given how much time a painter takes to paint 1
: unit of board. You have to get this job done as soon as possible under the
: constraints that any painter will only paint continuous sections of board,
: say board {2, 3, 4} or only board {1} or nothing but not board {2, 4, 5}.
: 用DP 得咋解?

avatar
f*4
3
能给个url不?
谢谢

【在 g**e 的大作中提到】
: 前几天版上讨论过,往前翻一下
:
: painters

avatar
m*l
4
ah?
翻下书就知道了
Double Penetration 做这些就容易了
sub-structure optimization.

painters
1
the
board,
5}.

【在 h*****g 的大作中提到】
: You have to paint N boards of length {B1, B2, B3… BN}. There are K painters
: available and you are also given how much time a painter takes to paint 1
: unit of board. You have to get this job done as soon as possible under the
: constraints that any painter will only paint continuous sections of board,
: say board {2, 3, 4} or only board {1} or nothing but not board {2, 4, 5}.
: 用DP 得咋解?

avatar
f*4
7
这么看就明白多了
不然的话,1个人刷完了可以继续刷别的块
比如2个人,1的速度是4,2的速度是1
1,2,3,4,5 块
2刷3,1刷{1,2}{4,5}

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