Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 30 June 2025

Based Approach to Improve the All-Pair Shortest Path Computation

Lau Nguyen Dinh1 & Le Thanh Tuan2

Journal of Computer Science, Volume 21, Issue 7, pp. 1606–1612 · doi.org/10.3844/jcssp.2025.1606.1612

2,903 accesses1,472 downloads0 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

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

Licence
CC BY 4.0
Issue
Volume 21, Issue 7
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Based Approach to Improve the All-Pair Shortest Path ComputationJournal of Computer Science · Volume 21, Issue 7 · pp. 1606–1612 · CC BY 4.0Download