Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

此题DP不可以吧

Posted by ok_do_it at 2012-02-23 09:57:06 on Problem 1505
设f[i][j]表示前i个人抄前j本书所用最短时间。
f[i][j]=min{max{f[i-1][k],sum[k+1][j]}}
(i-1<=k<j)
但是貌似不满足子问题最优性。
考虑
1 2 8 50 给三个人抄
根据上面的方程应这样:1 2 / 8 / 50
但是要让前面的人抄得少,应该这样划分:1 / 2 8 / 50

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator