摘要:
Problem DescriptionThese are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now there is some cargo that should be delivered from one city to another. The transportation fee consists of two parts: The cost of the transportation on the path betw 阅读全文
posted @ 2012-10-28 13:51
heat nan
阅读(139)
评论(0)
推荐(0)
摘要:
AlgorithmThe Floyed algorithm is an algorithm for efficiently and simultaneously finding the shortest paths betweeen every pair of vertices in a weighted and potentially directed graph.Consider a graph G with vertices V,each numbered 1 through N. Further consider a function shortestPath(i,j,k) that 阅读全文
posted @ 2012-10-28 01:41
heat nan
阅读(359)
评论(0)
推荐(0)

浙公网安备 33010602011771号