Skip to main content
QUICK REVIEW

[Paper Review] Faster all-pairs shortest paths via circuit complexity

Ryan Williams|arXiv (Cornell University)|Dec 23, 2013
Complexity and Algorithms in GraphsComputer Science46 references6 citations
TL;DR

This paper presents a new randomized algorithm for the all-pairs shortest paths (APSP) problem in dense graphs, achieving a runtime of $ n^3 / 2^{ ext{poly}( ext{log } n)^{1/2}} $ by leveraging circuit complexity techniques—specifically, Razborov-Smolensky polynomials to reduce min-plus matrix products to efficient Boolean matrix multiplications via Coppersmith’s algorithm. The result breaks the longstanding $ n^3 / ext{poly}( ext{log } n) $ barrier for general APSP.

ABSTRACT

We present a new randomized method for computing the min-plus product (a.k.a., tropical product) of two $n imes n$ matrices, yielding a faster algorithm for solving the all-pairs shortest path problem (APSP) in dense $n$-node directed graphs with arbitrary edge weights. On the real RAM, where additions and comparisons of reals are unit cost (but all other operations have typical logarithmic cost), the algorithm runs in time \[\frac{n^3}{2^{Ω(\log n)^{1/2}}}\] and is correct with high probability. On the word RAM, the algorithm runs in $n^3/2^{Ω(\log n)^{1/2}} + n^{2+o(1)}\log M$ time for edge weights in $([0,M] \cap {\mathbb Z})\cup\{\infty\}$. Prior algorithms used either $n^3/(\log^c n)$ time for various $c \leq 2$, or $O(M^αn^β)$ time for various $α> 0$ and $β> 2$. The new algorithm applies a tool from circuit complexity, namely the Razborov-Smolensky polynomials for approximately representing ${\sf AC}^0[p]$ circuits, to efficiently reduce a matrix product over the $(\min,+)$ algebra to a relatively small number of rectangular matrix products over ${\mathbb F}_2$, each of which are computable using a particularly efficient method due to Coppersmith. We also give a deterministic version of the algorithm running in $n^3/2^{\log^δ n}$ time for some $δ> 0$, which utilizes the Yao-Beigel-Tarui translation of ${\sf AC}^0[m]$ circuits into "nice" depth-two circuits.

Motivation & Objective

  • To overcome the longstanding $ n^3 / ext{poly}( ext{log } n) $ runtime barrier for the all-pairs shortest paths (APSP) problem in dense graphs with arbitrary edge weights.
  • To explore whether circuit complexity techniques, particularly those for $ ext{AC}^0[p] $ circuits, can be used to accelerate min-plus matrix multiplication—the core of APSP.
  • To demonstrate that the $ ( ext{min}, +) $ matrix product can be computed faster than $ O(n^3) $ by reducing it to a small number of structured Boolean matrix products.
  • To provide a deterministic variant of the algorithm running in $ n^3 / 2^{ ext{log}^eta n} $ time for some $ eta > 0 $, using Yao-Beigel-Tarui circuit translation.
  • To challenge the prevailing conjecture that $ o(n^3) $ APSP algorithms are impossible with current techniques, by introducing a novel connection between circuit complexity and matrix product algorithms.

Proposed method

  • Uses Razborov-Smolensky polynomials to approximately represent $ ext{AC}^0[2] $ circuits that compute $ ( ext{min}, +) $ inner products.
  • Reduces the $ n imes n $ min-plus matrix product to $ ilde{O}(n) $ rectangular matrix products over $ ext{GF}(2) $, each of size $ n imes d $ with $ d = 2^{ ext{poly}( ext{log } n)} $.
  • Applies Coppersmith’s highly efficient algorithm for multiplying $ n imes d $ and $ d imes n $ matrices over $ ext{GF}(2) $, which runs in $ n^{2+o(1)} $ time for small $ d $.
  • Employs a randomized reduction strategy that ensures correctness with high probability by leveraging the polynomial approximation of $ ext{AC}^0[2] $ circuits.
  • For the deterministic version, translates $ ext{AC}^0[m] $ circuits into depth-two circuits using the Yao-Beigel-Tarui method, enabling a slower but guaranteed subcubic runtime.
  • Combines the circuit-to-polynomial translation with a careful error-bounding mechanism to ensure the min-plus product is preserved under the reduction.

Experimental results

Research questions

  • RQ1Can circuit complexity techniques be used to achieve truly subcubic time for the all-pairs shortest paths problem?
  • RQ2Is it possible to reduce the $ ( ext{min}, +) $ matrix product to a small number of structured Boolean matrix products that can be computed faster?
  • RQ3Can the $ n^3 / ext{poly}( ext{log } n) $ runtime barrier for general APSP be broken using algebraic and circuit-theoretic insights?
  • RQ4Does the $ ( ext{min}, +) $ inner product admit a more efficient representation than traditional dynamic programming or lookup-based methods?
  • RQ5Can the connection between $ ext{AC}^0[2] $ circuits and min-plus products lead to faster algorithms for other problems in the APSP-hardness class?

Key findings

  • The paper presents a randomized algorithm for APSP that runs in $ n^3 / 2^{ ext{poly}( ext{log } n)^{1/2}} $ time on the real RAM, with high probability of correctness.
  • On the word RAM with integer edge weights in $ [0, M] $, the algorithm runs in $ n^3 / 2^{ ext{poly}( ext{log } n)^{1/2}} + n^{2+o(1)} ext{log } M $ time.
  • The algorithm reduces the min-plus product to $ ilde{O}(n) $ rectangular matrix products over $ ext{GF}(2) $, each of size $ n imes d $ with $ d = 2^{ ext{poly}( ext{log } n)} $.
  • Coppersmith’s algorithm is used to compute each $ n imes d $ and $ d imes n $ Boolean matrix product in $ n^{2+o(1)} $ time, enabling the overall speedup.
  • A deterministic variant of the algorithm runs in $ n^3 / 2^{ ext{log}^eta n} $ time for some $ eta > 0 $, using the Yao-Beigel-Tarui translation of $ ext{AC}^0[m] $ circuits.
  • The work establishes a new connection between circuit complexity and matrix product algorithms, suggesting that $ ( ext{min}, +) $ matrix multiplication may be fundamentally easier than integer matrix multiplication.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.