Comparative Analysis between BFS and DFS-Shortest Path Algorithms

Graph theory is a critical field in computer science and mathematics, particularly in solving shortest path problems. In this paper, a comparative analysis of Breadth-First Search (BFS) and Depth-First Search (DFS) algorithms for unweighted graphs, is presented. The algorithms efficiency analysis is measured, including execution time, and efficiency across varying graph structures such as level-order traversal (number of nodes through the path). The results indicate that BFS is more optimal than DFS for shortest path discovery due to its level-order traversal, despite its potential speed advantage, BFS does not always guarantee optimality in practice. The insights derived from this study contribute to algorithm selection strategies in applications such as network routing, robotics, and artificial intelligence.

Authors

Institutions

Publication Details

Published
2025-04-24
DOI
https://doi.org/10.1109/estream66938.2025.11016860
Citations
6
Primary Topic
Digital Filter Design and Implementation
Type
article
Field-Weighted Citation Impact
8.91

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis between BFS and DFS-Shortest Path Algorithms

Azza A. Abdo, Amjad Alhabdan, Miad Alosami, Waad Alshammari et al.
6 citations
Digital Filter Design and Implementation
8.91
article

Comparative Analysis between BFS and DFS-Shortest Path Algorithms

Azza A. Abdo, Amjad Alhabdan, Miad Alosami, Waad Alshammari, Lama Hamdi, Renad AlKahtani
article en
6 citations

Abstract

Graph theory is a critical field in computer science and mathematics, particularly in solving shortest path problems. In this paper, a comparative analysis of Breadth-First Search (BFS) and Depth-First Search (DFS) algorithms for unweighted graphs, is presented. The algorithms efficiency analysis is measured, including execution time, and efficiency across varying graph structures such as level-order traversal (number of nodes through the path). The results indicate that BFS is more optimal than DFS for shortest path discovery due to its level-order traversal, despite its potential speed advantage, BFS does not always guarantee optimality in practice. The insights derived from this study contribute to algorithm selection strategies in applications such as network routing, robotics, and artificial intelligence.

Imam Abdulrahman Bin Faisal University (SA)
Imam Abdulrahman Bin Faisal University
Openalex Percentile: Top 2%
Digital Filter Design and Implementation
8.91
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.