Research Article

Efficient parallelism in Breadth-First Search: A comprehensive analysis and implementation

Jianlin Li*
Southern University of Science and Technology

* Corresponding author: [email protected]

Abstract

The Breadth-First Search (BFS) entails a systematic traversal of a given graph, G = (V, E), layer by layer, starting from a specific vertex. Recognized as a cornerstone methodology for graph exploration, the importance of BFS has skyrocketed, especially with the increasing demands of graph-based data processing. However, as the vertex count expands, traditional serial implementations reveal their limitations, faltering in terms of time and space efficiency. This paper aims to contrast the efficiencies of standard BFS with its parallelized iteration. Introducing a shared-memory model of level-synchronous parallel BFS, the approach integrates optimizations to navigate the challenges posed by implicit barriers and critical sections. Employing the Graph500 benchmark, this parallel methodology is meticulously evaluated, highlighting the speedup concerning various thread counts. Initial findings unveil a compelling pattern: speedup generally correlates positively with the number of active threads. However, if the thread count breaches the system's inherent capacity, the speedup hits a plateau, showing only marginal fluctuations without significant increases. These statistical revelations not only vouch for the advantages of BFS parallelization but also emphasize a critical insight: judiciously increasing thread count, up to a system-specified limit, can yield peak efficiency.

Keywords: Breadth-first Search; Parallelization; Efficiency
Published: February 7, 2024
DOI: 10.54254/2755-2721/36/20230443
Volume: ACE Vol.36
pp. 185-191
Download PDF

References

  1. Haley J, Shaia B, Subrahmanyam J, et al. A Breadth-First, Ordered Parallel Tree Traversal [J].
  2. Tödling D, Winter M, Steinberger M. Breadth-first search on dynamic graphs using dynamic parallelism on the gpu[C]//2019 IEEE High Performance Extreme Computing Conference (HPEC). IEEE, 2019: 1-7.
  3. Tödling D. Breadth-First Search using Dynamic Parallelism on the GPU[J].
  4. Geil A, Porumbescu S D, Owens J D. Maximum Clique Enumeration on the GPU[C]//2023 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW). IEEE, 2023: 234-244.
  5. Chen Y, Brock B, Porumbescu S, et al. Atos: A task-parallel GPU scheduler for graph analytics[C]//Proceedings of the 51st International Conference on Parallel Processing. 2022: 1-11.
  6. Dong X, Wang L, Gu Y, et al. Provably Fast and Space-Efficient Parallel Biconnectivity[C]//Proceedings of the 28th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming. 2023: 52-65.
  7. Gu Y, Napier Z, Sun Y, et al. Parallel cover trees and their applications[C]//Proceedings of the 34th ACM Symposium on Parallelism in Algorithms and Architectures. 2022: 259-272.
  8. Ding X, Dong X, Gu Y, et al. Efficient Parallel Output-Sensitive Edit Distance[J]. arXiv preprint arXiv:2306.17461, 2023.
  9. Orenes-Vera M, Tureci E, Wentzlaf D, et al. Massive Data-Centric Parallelism in the Chiplet Era[J]. arXiv preprint arXiv:2304.09389, 2023.
  10. Kaler T, Schardl T B, Xie B, et al. PARAD: A Work-Efficient Parallel Algorithm for Reverse-Mode Automatic Differentiation∗[C]//Symposium on Algorithmic Principles of Computer Systems (APOCS). Society for Industrial and Applied Mathematics, 2021: 144-158.