Skip to main content
QUICK REVIEW

[Paper Review] An Efficient Algorithm for All-Pairs Bounded Edge Connectivity

Shyan Akmal, Ce Jin|arXiv (Cornell University)|Jan 1, 2023
Complexity and Algorithms in GraphsComputer Science1 citations
TL;DR

This paper presents the first algorithm for k-Bounded All-Pairs Edge Connectivity (k-APC) in directed graphs that runs in Õ((kn)ω) time, significantly faster than solving the full All-Pairs Connectivity problem for k ≥ 3. The key insight is replacing full matrix inversion with low-rank matrix inversion in an algebraic framework, enabling efficient computation of bounded edge connectivity for all vertex pairs with connectivity less than k.

ABSTRACT

Our work concerns algorithms for a variant of Maximum Flow in unweighted graphs. In the All-Pairs Connectivity (APC) problem, we are given a graph G on n vertices and m edges, and are tasked with computing the maximum number of edge-disjoint paths from s to t (equivalently, the size of a minimum (s,t)-cut) in G, for all pairs of vertices (s,t). Over undirected graphs, it is known that APC can be solved in essentially optimal n^{2+o(1)} time. In contrast, the true time complexity of APC over directed graphs remains open: this problem can be solved in Õ(m^ω) time, where ω ∈ [2, 2.373) is the exponent of matrix multiplication, but no matching conditional lower bound is known. Following [Abboud et al., ICALP 2019], we study a bounded version of APC called the k-Bounded All Pairs Connectivity (k-APC) problem. In this variant of APC, we are given an integer k in addition to the graph G, and are now tasked with reporting the size of a minimum (s,t)-cut only for pairs (s,t) of vertices with min-cut value less than k (if the minimum (s,t)-cut has size at least k, we can just report it is "large" instead of computing the exact value). Our main result is an Õ((kn)^ω) time algorithm solving k-APC in directed graphs. This is the first algorithm which solves k-APC faster than simply solving the more general APC problem exactly, for all k ≥ 3. This runtime is Õ(n^ω) for all k ≤ poly(log n), which essentially matches the optimal runtime for the k = 1 case of k-APC, under popular conjectures from fine-grained complexity. Previously, this runtime was only achieved for general directed graphs when k ≤ 2 [Georgiadis et al., ICALP 2017]. Our result employs the same algebraic framework used in previous work, introduced by [Cheung, Lau, and Leung, FOCS 2011]. A direct implementation of this framework involves inverting a large random matrix. Our new algorithm is based off the insight that for solving k-APC, it suffices to invert a low-rank random matrix instead of a generic random matrix. We also obtain a new algorithm for a variant of k-APC, the k-Bounded All-Pairs Vertex Connectivity (k-APVC) problem, where for every pair of vertices (s,t), we are now tasked with reporting the maximum number of internally vertex-disjoint (rather than edge-disjoint) paths from s to t if this number is less than k, and otherwise reporting that this number is at least k. Our second result is an Õ(k²n^ω) time algorithm solving k-APVC in directed graphs. Previous work showed how to solve an easier version of the k-APVC problem (where answers only need to be returned for pairs of vertices (s,t) which are not edges in the graph) in Õ((kn)^ω) time [Abboud et al, ICALP 2019]. In comparison, our algorithm solves the full k-APVC problem, and is faster if ω > 2.

Motivation & Objective

  • To develop a faster algorithm for computing bounded edge connectivity in directed graphs, especially for k ≥ 3 where prior methods were no faster than full APC.
  • To close the gap between the known optimal runtime for k = 1,2 and the state-of-the-art for k ≥ 3 in k-APC.
  • To extend the algebraic framework of Cheung, Lau, and Leung (FOCS 2011) by showing that low-rank matrix inversion suffices for k-APC.
  • To provide a new algorithm for k-Bounded All-Pairs Vertex Connectivity (k-APVC) with improved runtime over prior work.

Proposed method

  • Uses an algebraic framework based on matrix inversion to encode connectivity information, originally introduced by Cheung, Lau, and Leung (FOCS 2011).
  • Replaces inversion of an m × m random matrix with inversion of a low-rank (k+1) × (k+1) matrix, drastically reducing computational cost.
  • Employs a flow vector framework to compute connectivity values via matrix rank, where the rank of a derived matrix F_{s,t} determines min(k, λ(s,t)) for each pair (s,t).
  • Constructs matrices D_{ij} as products of five n × n matrices to compute entries of F_{s,t} efficiently using fast matrix multiplication.
  • Applies a union bound over all vertex pairs to ensure high-probability correctness of the rank-based connectivity estimation.
  • Extends the method to vertex connectivity by defining analogous matrices B and C for vertex-disjoint paths, leading to a k-APVC algorithm with Õ(k²n^ω) runtime.

Experimental results

Research questions

  • RQ1Can k-APC be solved faster than the general All-Pairs Connectivity problem for k ≥ 3 in directed graphs?
  • RQ2Is it possible to achieve Õ(k²n^ω) runtime for k-APC, matching the new k-APVC algorithm?
  • RQ3Can the known Õ(m^ω) runtime for APC be improved to Õ((kn)^ω) for bounded k, especially when k ≤ poly(log n)?
  • RQ4Are there conditional lower bounds that rule out faster algorithms for k-APC and k-APVC, or could they be solvable in Õ(n^ω) time for moderately large k?
  • RQ5Can nondeterministic verifiers be constructed for k-APC and k-APVC with similar runtime to the known verifier for APVC?

Key findings

  • The paper presents an Õ((kn)^ω) time algorithm for k-APC in directed graphs, which is the first to achieve this runtime for k ≥ 3.
  • The algorithm achieves Õ(n^ω) time for all k ≤ poly(log n), matching the optimal runtime for k = 1 and k = 2 under fine-grained complexity conjectures.
  • The key technical contribution is showing that only low-rank matrix inversion is needed for k-APC, reducing the bottleneck from m × m matrix inversion to (k+1) × (k+1) matrix inversion.
  • For k-APVC, the paper gives an Õ(k²n^ω) time algorithm, which is faster than prior work when ω > 2 and solves the full problem (not just non-edge pairs).
  • The correctness of both algorithms is proven with high probability (at least 1 − 5/n) using a union bound over all vertex pairs.
  • The results establish new runtime bounds that are optimal or near-optimal under widely accepted conjectures in fine-grained complexity.

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.