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 |
最短路的性质In Reply To:为什么用差分可以保证得到的答案是最优的呢? Posted by:wowfky at 2009-05-15 11:01:34 如果有解,保证 d[v]<=d[u]+w(u,v) ...这个不等式得到 d[v]-d[u]<= w(u,v) 所以成立d[v],d[u] 就正好是差分约束系统中的两个解 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator