English

A Deterministic Parallel APSP Algorithm and its Applications

Data Structures and Algorithms 2021-01-08 v1

Abstract

In this paper we show a deterministic parallel all-pairs shortest paths algorithm for real-weighted directed graphs. The algorithm has O~(nm+(n/d)3)\tilde{O}(nm+(n/d)^3) work and O~(d)\tilde{O}(d) depth for any depth parameter d[1,n]d\in [1,n]. To the best of our knowledge, such a trade-off has only been previously described for the real-weighted single-source shortest paths problem using randomization [Bringmann et al., ICALP'17]. Moreover, our result improves upon the parallelism of the state-of-the-art randomized parallel algorithm for computing transitive closure, which has O~(nm+n3/d2)\tilde{O}(nm+n^3/d^2) work and O~(d)\tilde{O}(d) depth [Ullman and Yannakakis, SIAM J. Comput. '91]. Our APSP algorithm turns out to be a powerful tool for designing efficient planar graph algorithms in both parallel and sequential regimes. One notable ingredient of our parallel APSP algorithm is a simple deterministic O~(nm)\tilde{O}(nm)-work O~(d)\tilde{O}(d)-depth procedure for computing O~(n/d)\tilde{O}(n/d)-size hitting sets of shortest dd-hop paths between all pairs of vertices of a real-weighted digraph. Such hitting sets have also been called dd-hub sets. Hub sets have previously proved especially useful in designing parallel or dynamic shortest paths algorithms and are typically obtained via random sampling. Our procedure implies, for example, an O~(nm)\tilde{O}(nm)-time deterministic algorithm for finding a shortest negative cycle of a real-weighted digraph. Such a near-optimal bound for this problem has been so far only achieved using a randomized algorithm [Orlin et al., Discret. Appl. Math. '18].

Keywords

Cite

@article{arxiv.2101.02311,
  title  = {A Deterministic Parallel APSP Algorithm and its Applications},
  author = {Adam Karczmarz and Piotr Sankowski},
  journal= {arXiv preprint arXiv:2101.02311},
  year   = {2021}
}

Comments

A SODA'21 paper. Slightly extended preliminaries. Abstract shortened to meet arXiv requirements