| ||||||||||
| 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 | |||||||||
他不是说Floyd+the maximum-weight matching 么?感觉比较具体了In Reply To:它就举了个例子,没说具体的算法 Posted by:frkstyc at 2005-08-03 01:07:17 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