Optimized Parallel Breadth-First Search with Adaptive Strategies
Breadth-First Search (BFS) is a fundamental graph traversal algorithm in a level-by-level pattern. It has been widely used in real-world applications, such as social network analysis, scientific computing, and web crawling. However, achieving high performance for BFS on large-scale graphs remains a challenging task due to irregular memory access patterns, diverse graph structures, and the necessity for efficient parallelization. This paper addresses these challenges by designing a highly optimized parallel BFS implementation based on the top-down and bottom-up traversal strategies. It further integrates several key innovations, including graph type-aware computation strategy selection, graph pruning, two-level bottom-up, and efficient parallel implementation. We evaluate our method on 11 diverse graphs in terms of size, diameter, and density. On a CPU server with 48 threads, our method achieves an average speedup of 9.5× over the serial BFS implementation. Also, on a synthetic dense graph, our method processes 9.3 billion edges per second, showing its efficiency in dense graph traversal.
Authors
- Xiaojiang Du (ORCID: https://orcid.org/0000-0003-4235-9671)
- Yuede Ji (ORCID: https://orcid.org/0000-0002-2419-6592)
- Caiyi Li
- Rongbin Hu (ORCID: https://orcid.org/0009-0008-2160-0431)
Institutions
- Stevens Institute of Technology (US)
- The University of Texas at Arlington (US)
Publication Details
- Published
- 2025-03-01
- DOI
- https://doi.org/10.1145/3711708.3723449
- Citations
- 1
- Primary Topic
- Graph Theory and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 1.28
Funders
- National Science Foundation