Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM53434
Volume:
9 |
11 |
Nov 2025
Pages:
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Graph traversal algorithms are a fundamental component of computational mathematics and computer science. The two most common methods, Breadth-First Search (BFS) and Depth-First Search (DFS), are often presented as distinct algorithms. This paper argues that BFS and DFS are, in fact, two variations of a single, generic traversal algorithm, and that their profound differences in behaviour including traversal order, optimality, and memory usage are a direct mathematical consequence of their underlying data structure: a Queue (First-In, First-Out) for BFS and a Stack (Last-In, First-Out) for DFS. We perform a theoretical space-complexity analysis, contrasting the exponential O( ) memory requirement of BFS with the linear-in-depth O(b.d) of DFS, where b is the branching factor and d is the depth. We then validate this theory with an empirical memory analysis on graph topologies specifically designed to target the worst-case scenarios for each algorithm. Our findings confirm that the choice of data structure is the defining factor that dictates the performance and feasibility of a graph traversal.
KEYWORDS
Publication Date
5/10/2025
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
7
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...