Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:np^2的..水牛路过..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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator