HETEROGENIOUS BLOCKED ALL-PAIRS SHORTEST PATHS ALGORITHM
Authors:
Open Access
- 2 November 2017
- journal article
- Published by Belarusian National Technical University in «System analysis and applied information science»
- No. 3,p. 68-75
Abstract
The problem of finding the shortest paths between all pairs of vertices in a weighted directed graph is considered. The algorithms of Dijkstra and Floyd-Warshall, homogeneous block and parallel algorithms and other algorithms of solving this problem are known. A new heterogeneous block algorithm is proposed which considers various types of blocks and takes into account the shared hierarchical memory organization and multi-core processors for calculating each type of block. The proposed heterogeneous block computing algorithms are compared with the generally accepted homogeneous universal block calculation algorithm at theoretical and experimental levels. The main emphasis is on using the nature of the heterogeneity, the interaction of blocks during computation and the variation in block size, the size of the block matrix and the total number of blocks in order to identify the possibility of reducing the amount of computation performed during the calculation of the block, reducing the activity of the processor’s cache memory and determining the influence of the calculation time of each block type on the total execution time of the heterogeneous block algorithm. A recurrent resynchronized algorithm for calculating the diagonal block (D0) is proposed, which improves the use of the processor’s cache and reduces the number of iterations up to 3 times that are necessary to calculate the diagonal block, which implies the acceleration in calculating the diagonal block up to 60%. For more efficient work with the cache memory, variants of permutation of the basic loops k-i-j in the algorithms of calculating the blocks of the cross (C1 and C2) and the updated blocks (U3) are proposed. These permutations in combination with the proposed algorithm for calculating the diagonal block reduce the total runtime of the heterogeneous block algorithm to 13% on average against the homogeneous block algorithm.Keywords
This publication has 10 references indexed in Scilit:
- Synthesis and Optimization of Pipelines for HW Implementations of Dataflow ProgramsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2015
- Performance Analysis of Floyd Warshall Algorithm vs Rectangular AlgorithmInternational Journal of Computer Applications, 2014
- Rapid development of parallel blocked all-pairs shortest paths code for multi-core computers2014
- Minimizing Communication in All-Pairs Shortest Paths2013
- Task Level Parallelization of All Pair Shortest Path Algorithm in OpenMP 3.02013
- Dijkstra, Floyd and Warshall meet KleeneFormal Aspects of Computing, 2012
- An Experimental Study of a Parallel Shortest Path Algorithm for Solving Large-Scale Graph Instances2007
- Optimizing graph algorithms for improved cache performanceIEEE Transactions on Parallel and Distributed Systems, 2004
- A blocked all-pairs shortest-paths algorithmACM Journal of Experimental Algorithmics, 2003
- Algorithm 97: Shortest pathCommunications of the ACM, 1962