A Performance Comparison of Shortest Path Algorithms in Directed Graphs

This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig, on randomly generated directed graphs. We analyze theoretical computational complexity and empirical execution time using a custom-built tes...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Engineering proceedings Jg. 100; H. 1; S. 31
Hauptverfasser: Fatima Sapundzhi, Kristiyan Danev, Antonina Ivanova, Metodi Popstoilov, Slavi Georgiev
Format: Journal Article
Sprache:Englisch
Veröffentlicht: MDPI AG 01.07.2025
Schlagworte:
ISSN:2673-4591
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig, on randomly generated directed graphs. We analyze theoretical computational complexity and empirical execution time using a custom-built testing framework. The experimental results demonstrate significant performance differences across varying graph densities and sizes, with Dijkstra’s algorithm showing superior performance for sparse graphs while Floyd–Warshall and Dantzig provide more consistent performance for dense graphs. Time complexity analysis confirms the theoretical expectations: Dijkstra’s algorithm performs best on sparse graphs with O (E + V log V) complexity, Bellman–Ford shows O (V · E) complexity suitable for graphs with negative edges, while Floyd–Warshall and Dantzig both demonstrate O(V3) complexity that becomes efficient for dense graphs. This research provides practical insights for algorithm selection based on specific graph properties, guiding developers and researchers in choosing the most efficient algorithm for their particular graph structure requirements.
ISSN:2673-4591
DOI:10.3390/engproc2025100031