Lune

FOCS2020Top-tier venue

Monochromatic Triangles, Triangle Listing and APSP

Virginia Vassilevska Williams, Yinzhan Xu

Abstract

All-Pairs Shortest Paths (APSP) is one of the most basic problems in graph algorithms. In one of the most general variants of the problem, one is given an n-node directed or undirected graph with integer weights in -n c , . . . , n c and no negative cycles and one needs to compute the shortest paths distance between every pair of vertices. A central question in graph algorithms is how fast APSP can be solved. The fastest known algorithm runs in n 3 /2 Θ( √ log n) time [Williams'14], and no truly subcubic time algorithms are known.

One of the main hypotheses in fine-grained complexity is that this problem requires n 3-o(1) time. Another famous hypothesis in fine-grained complexity is that the 3SUM problem for n integers (which can be solved in O(n 2 ) time) requires n 2-o(1) time. Although there are no direct reductions between 3SUM and APSP, it is known that they are related: there is a problem, (min, +)-convolution that reduces in a fine-grained way to both, and a problem Exact Triangle that both fine-grained reduce to.

In this paper we find more relationships between these two problems and other basic problems. Pȃtras ¸cu had shown that under the 3SUM hypothesis the All-Edges Sparse Triangle problem in m-edge graphs requires m 4/3-o(1) time. The latter problem asks to determine for every edge e, whether e is in a triangle. It is equivalent to the problem of listing m triangles in an m-edge graph where m = Õ(n 1.5 ), and can be solved in O(m 1.41 ) time [Alon et al.'97] with the current matrix multiplication bounds, and in Õ(m 4/3 ) time if ω = 2.

We show that one can reduce Exact Triangle to All-Edges Sparse Triangle, showing that All-Edges Sparse Triangle (and hence Triangle Listing) requires m 4/3-o(1) time also assuming the APSP hypothesis. This allows us to provide APSP-hardness for many dynamic problems that were previously known to be hard under the 3SUM hypothesis.

We also consider the previously studied All-Edges Monochromatic Triangle problem. Via work of [Lincoln et al.'20], our result on All-Edges Sparse Triangle implies that if the All-Edges Monochromatic Triangle problem has an O(n 2.5-ε ) time algorithm for ε > 0, then both the APSP and 3SUM hypotheses are false. The fastest algorithm for All-Edges Monochromatic Triangle runs in Õ(n (3+ω)/2 ) time [Vassilevska et al.'06], and our new reduction shows that if ω = 2, this algorithm is best possible, unless 3SUM or APSP can be solved faster. Besides 3SUM, previously, the only problems known to be finegrained reducible to All-Edges Monochromatic Triangle were the seemingly easier problems directed unweighted APSP and Min-Witness Product [Lincoln et al.'20]. Our new reduction shows that this problem is much harder. We also connect the problem to other "intermediate" problems, whose runtimes are between O(n ω ) and O(n 3 ), such as the Max-Min product problem.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Removing Additive Structure in 3SUM-Based Reductions cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
  • Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics cites Removing Additive Structure in 3SUM-Based Reductions
  • Removing Additive Structure in 3SUM-Based Reductions cites Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyond
  • Tight dynamic problem lower bounds from generalized BMM and OMv cites Equivalences between triangle and range query problems
  • Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics cites Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyond
  • Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyond cites Equivalences between triangle and range query problems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyondAmir Abboud, Karl Bringmann, Seri Khoury, Or ZamirSTOC 2022 · 11 citations
  2. Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive CombinatoricsAmir Abboud, Karl Bringmann, Nick FischerSTOC 2023 · 10 citations
  3. Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
  4. Tight dynamic problem lower bounds from generalized BMM and OMvCe Jin, Yinzhan XuSTOC 2022 · 9 citations
  5. The Fine-Grained Complexity of CFL ReachabilityParaschos Koutris, Shaleen DeepPOPL 2023 · 6 citations

Builds on1

  1. Equivalences between triangle and range query problemsLech Duraj, Krzysztof Kleiner, Adam Polak, Virginia Vassilevska WilliamsSODA 2020 · 5 citations

Related papers

  1. Universe Reduction for APSP: Equivalence of Three Fine-Grained HypothesesNick FischerSTOC 2026 · 2 citations
  2. Hardness for triangle problems under even more believable hypotheses: reductions from real APSP, real 3SUM, and OVTimothy M. Chan, Virginia Vassilevska Williams, Yinzhan XuSTOC 2022
  3. All-Pairs Shortest Paths with Few Weights per NodeAmir Abboud, Nick Fischer, Ce Jin, Virginia Vassilevska Williams et al.STOC 2025
  4. Fredman's Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and MoreTimothy M. Chan, Virginia Vassilevska Williams, Yinzhan XuSTOC 2023 · 4 citations
  5. Faster Approximate All Pairs Shortest PathsBarna Saha, Christopher YeSODA 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines