English

An Optimal Level-synchronous Shared-memory Parallel BFS Algorithm with Optimal parallel Prefix-sum Algorithm and its Implications for Energy Consumption

Distributed, Parallel, and Cluster Computing 2022-09-20 v1 Computational Complexity Data Structures and Algorithms

Abstract

We present a work-efficient parallel level-synchronous Breadth First Search (BFS) algorithm for shared-memory architectures which achieves the theoretical lower bound on parallel running time. The optimality holds regardless of the shape of the graph. We also demonstrate the implication of this optimality for the energy consumption of the program empirically. The key idea is never to use more processing cores than necessary to complete the work in any computation step efficiently. We keep the rest of the cores idle to save energy and to reduce other resource contentions (e.g., bandwidth, shared caches, etc). Our BFS does not use locks and atomic instructions and is easily extendible to shared-memory coprocessors.

Keywords

Cite

@article{arxiv.2209.08764,
  title  = {An Optimal Level-synchronous Shared-memory Parallel BFS Algorithm with Optimal parallel Prefix-sum Algorithm and its Implications for Energy Consumption},
  author = {Jesmin Jahan Tithi and Yonatan Fogel and Rezaul Chowdhury},
  journal= {arXiv preprint arXiv:2209.08764},
  year   = {2022}
}

Comments

2 pages, brief announcement

R2 v1 2026-06-28T01:33:40.655Z