Analysis of Dijkstra’s and A* Algorithms for the Shortest Route Problem

Authors

  • Muhammad Syafiq Azri Muhamad Azhar Universiti Tun Hussein Onn Malaysia
  • Muhamad Ghazali Kamardan Universiti Tun Hussein Onn Malaysia

Keywords:

Shortest Path Problem (SPP), Djikstra’s Algorithm, A* Algorithm, KSL City Mall

Abstract

Finding an efficient route between two locations is a common requirement in modern navigation systems. The Shortest Route Problem (SRP) for travel between JB Sentral and KSL City Mall in Johor Bahru, Malaysia, is compared in this paper between Dijkstra's algorithm and the A* algorithm. Road network data were collected from Google Maps and converted into a weighted graph, where road intersections are modeled as nodes and road segments as edges with distance values. Both algorithms were implemented using Python and evaluated based on the total route distance and the number of iterations required to reach the destination. The A* algorithm completes the search using fewer iterations compared to Dijkstra’s algorithm, showing better efficiency. These findings suggest that while Dijkstra’s algorithm remains accurat, the A* algorithm is more suitable for applications that require faster route computation.

Downloads

Download data is not yet available.

Downloads

Published

06-08-2026

Issue

Section

Mathematics

How to Cite

MUHAMAD AZHAR, M. S. A., & Kamardan, M. G. (2026). Analysis of Dijkstra’s and A* Algorithms for the Shortest Route Problem. Enhanced Knowledge in Sciences and Technology, 6(1), 125-131. https://periodical.uthm.edu.my/index.php/ekst/article/view/22414