External-Memory Breadth-First Search with Sublinear I/O

  • Authors:
  • Kurt Mehlhorn;Ulrich Meyer

  • Affiliations:
  • -;-

  • Venue:
  • ESA '02 Proceedings of the 10th Annual European Symposium on Algorithms
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

Breadth-first search (BFS) is a basic graph exploration technique. We give the first external memory algorithm for sparse undirected graphs with sublinear I/O. The best previous algorithm requires 驴(n + n+m/D驴B 驴 logM/B n+m/B) I/Os on a graph with n nodes and m edges and a machine with main-memory of size M, D parallel disks, and block size B. We present a new approach which requires only O(驴n驴(n+m)/D驴B + n+m/D驴B 驴 logM/B n+m/B)I/Os. Hence, for m = O(n) and all realistic values of logM/B n+m/B, it improves upon the I/O-performance of the best previous algorithm by a factor 驴(驴D 驴 B). Our approach is fairly simple and we conjecture it to be practical. We also give improved algorithms for undirected single-source shortest-paths with small integer edge weights and for semi-external BFS on directed Eulerian graphs.