a
Comparative Performance Analysis of Some Priority Queue Variants
in Dijkstra’s Algorithm
Idowu, Abel Iyanda
1
Olabiyisi, Stephen Olatunde.
2
Alo, Oluwaseun Olubisi
3
Adeleke, Israel Adewale
4
Jokotoye, Ayoade Alade
5
and Omotade, Adedotun Lawrence
6
1,2,3,6
Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Oyo
State, Nigeria.
4
Department of Data Science, Informatics and Computer Science, Emmanuel Alayande University of
Education, Oyo. Oyo State, Nigeria
5
Department of Computer Science
,
Bowen University, Iwo. Osun State, Nigeria.
DOI: https://doi.org/10.51244/IJRSI.2025.120800078
Received: 06 Aug 2025; Accepted: 13 Aug 2025; Published: 06 September 2025
ABSTRACT
Efficient shortest-path computation in weighted graphs is essential in domains like networking and logistics.
Dijkstra’s algorithm depends heavily on the choice of priority queue, and while theoretical complexities are
well-documented, their real-world performance varies. This study compares three priority queue
implementations-Binary Heap, Fibonacci Heap, and Binomial Heap- within Dijkstra’s algorithm using road
network data from Zenodo (https://doi.org/10.5281/zenodo.1290209). The dataset was preprocessed,
normalized, and converted into a usable format using MATLAB (R2024b). Theoretical time complexities for
core operations—insert, decrease-key, and extract-min—were analyzed. Experiments conducted on
synthetically generated graphs showed Binary Heap achieved the fastest execution time (0.00126s) and highest
throughput (3313 edges/sec), outperforming Fibonacci and Binomial Heaps. Results indicate that Binary Heap
is the optimal choice for execution speed and throughput, especially for large or dense graphs. The findings
provide practical guidance for selecting priority queues in real-world shortest-path applications and contribute
to the empirical evaluation of data structures in algorithm design.
Keywords: Shortest path, Dijkstra algorithm, Priority queue, Binary heap, Binomial Heap and Fibonacci heap.
INTRODUCTION
The aspect of algorithms is an integral part of the theoretical computer science that has been in existence since
the early days of the information age. It gave birth to many brilliant ideas used in solving fundamental
computational problems. Therefore, algorithms are the solution to computational problems. They define
methods that are used in solving problems that require the formulation of an algorithm for the solution.
Dijkstra’s algorithm (DA) is an efficient, exact method for finding the shortest paths between vertices in edge-
and arc-weighted graphs. The Shortest Path Problem (SPP) approach involves finding the shortest path
between two vertices (or nodes) in a graph such as sum of weight of its constituent edges when minimized.
The shortest path problem is represented by a graph, G = (V - E), where V is the set of vertices or nodes and E
is the set of edges or arcs. Sometimes, the graph is known as a network. It is particularly useful in
transportation problems when we want to determine the shortest (or fastest) route between two geographic
locations on a road network (Rillet, 2006). It is also applicable in areas such as telecommunication, social
network analysis, arbitrage, and currency exchange (Lewis, 2023).
The algorithm exists in many variants such as Fibonacci heap, List, Indexed priority queue, Binary heap, D-
way heap, Binomial heap and Array.