| ||||||||||
| 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 | |||||||||
一起匹配然后除2,为什么不行?我看很多匹配都是这么做的In Reply To:他不是说Floyd+the maximum-weight matching 么?感觉比较具体了 Posted by:sunmoonstar_love at 2005-08-03 01:11:07 > Construct a graph G’ = (X’, E’) whose vertex set consists of all odd-degree vertices in G and whose edge set contains an edge joining each pair of vertices. Let the weight of each edge equal a very large number minus the length of a shortest path between the corresponding two vertices in graph G as found by the Floyd algorithm. > Next, the postman should find a maximum-weight matching for graph G’ using the maximum-weight matching algorithm. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator