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

Re:np^2的..水牛路过..

Posted by richardxx at 2008-10-17 18:33:45 on Problem 1160
In Reply To:np^2的..水牛路过.. Posted by:Assassin_cpy at 2008-10-17 15:28:42
> ans[v,p]:=min(ans[v,p],ans[i,p-1]+c[i+1,v]);
> i in [p-1,v-1]
> c[i,j]表示ij之间设一个PO的最小代价

你这个是O(n^2p)的吧, i 每次决策O(v)。


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