- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Comparison of Parallel APSP Algorithms
Comparison of Parallel APSP AlgorithmsBenjamin Diament, Andras FerenczMay 21, 19991 IntroductionThe All Pairs Shortest Path (APSP) problem has been widely studied in theoretical computer sci-ence. It arises directly from practical applications and as a subroutine of more complex algorithms.Large instances can be found in everything from large detailed geographical maps to wide areanetwork (e.g. Internet) connectivity graphs. Since the best-known serial algorithms for the densecase require O(n3) time, serial computation is infeasible for these large inputs.Given a graph G = (V;E), the APSP problem is to nd dij for for all i; j 2 V , where dij is thelength of the shortest simple path from i to j.Several well known algorithms have been developed for APSP, each applicable for specialized in-stances of the problem. One class of these uses Dijkstras single-source shortest-paths algorithm.A single run of Dijkstras algorithm takes O(jV j2) for dense and O(jEj log jV j) for sparse graphs ifthe priority queue needed in the algorithm is implemented as a binary heap, or O(jV j log jV j+ jEj)if a Fibonacci heap is used instead. This can be applied to the APSP problem by running itfrom each node independently (Call this algorithm AP-Dijkstra), achieving a running time ofO(jV j CostDijkstra). This algorithm is trivially parallelizable for up to jV j processors, whereeach processor is assigned jV jp vertices on which to run Dijkstras algorithm. While no communica-tion is required for AP-Dijkstra, it works only for graphs with positive edge weights. Furthermore,its implementation may be very complex (especially if the optimal Fibonacci heaps are to be used),and it exhibits poor cache performance, since the inner loop includes many pointer dereferences.A preferred alternative was originally developed by Floyd and Warshall, and is similar in
avor tomatrix multiplication. It runs in time O(jV j3), the same as AP-Dijkstra for dense graphs, but inpractice has better better cache per
您可能关注的文档
- Can Mechanically Extended Sources of Radiation in Classical Electrodynamics Solve all Probl.pdf
- Can thermal inflation solve the monopole problem.pdf
- cancer science.pdf
- Canonical and Lie-algebraic twist deformations of Galilei algebra.pdf
- Canonical Form and Separability of PPT States in 2xMxN Composite Quantum Systems.pdf
- Capillary waves at the liquid-vapor interface and the surface tension of water models.pdf
- Capturing Scientists ’ Insight for DDDAS.pdf
- Career-Choices.ppt
- CARS polarized microscopy of three-dimensional director structures in liquid crystals.pdf
- Cartography with Accelerators Locating Fermions in Extra Dimensions at Future Lepton Collid.pdf
文档评论(0)