Research Article Open Access

Based Approach to Improve the All-Pair Shortest Path Computation

Lau Nguyen Dinh1 and Le Thanh Tuan2
  • 1 Department of Information Technology, University of Education and Science, University of Danang, Vietnam
  • 2 Department of IT-Cipher, Communist Party of Vietnam Central Committee's Office, Vietnam

Abstract

This paper presents the development of a centralized algorithm for finding the shortest path between all pairs of vertices on a graph, utilizing the basic structure of the Floyd-Warshall sequential algorithm. The proposed algorithm leverages multiple processors to compute the shortest path between all vertex pairs, with one processor taking the central role in data management. This central processor divides the workload, assigning tasks to other processors for parallel computation of the shortest paths. The algorithm is implemented in Java and tested on both MapReduce and MPI architectures, running on the computer system at Hanoi National University of Education (ccs1.hnue.edu.vn). The study utilizes traffic road datacollected from Da Nang City, Vietnam, providing real-world input for evaluating the algorithm's performance on large-scale datasets. The results demonstrate the efficiency of the algorithm in a distributed environment, highlighting its potential for solving shortest path problems in real-world urban networks.

Journal of Computer Science
Volume 21 No. 7, 2025, 1606-1612

DOI: https://doi.org/10.3844/jcssp.2025.1606.1612

Submitted On: 29 July 2023 Published On: 30 June 2025

How to Cite: Dinh, L. N. & Tuan, L. T. (2025). Based Approach to Improve the All-Pair Shortest Path Computation. Journal of Computer Science, 21(7), 1606-1612. https://doi.org/10.3844/jcssp.2025.1606.1612

  • 159 Views
  • 82 Downloads
  • 0 Citations

Download

Keywords

  • All Pairs
  • Floyd-Warshall System
  • MapReduce