English

Monochromatic Triangles, Triangle Listing and APSP

Computational Complexity 2020-07-29 v2

Abstract

One of the main hypotheses in fine-grained complexity is that All-Pairs Shortest Paths (APSP) for nn-node graphs requires n3o(1)n^{3-o(1)} time. Another famous hypothesis is that the 33SUM problem for nn integers requires n2o(1)n^{2-o(1)} time. Although there are no direct reductions between 33SUM and APSP, it is known that they are related: there is a problem, (min,+)(\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\u{a}tra\c{s}cu had shown that under the 33SUM hypothesis the All-Edges Sparse Triangle problem in mm-edge graphs requires m4/3o(1)m^{4/3-o(1)} time. The latter problem asks to determine for every edge ee, whether ee is in a triangle. It is equivalent to the problem of listing mm triangles in an mm-edge graph where m=O~(n1.5)m=\tilde{O}(n^{1.5}), and can be solved in O(m1.41)O(m^{1.41}) time [Alon et al.'97] with the current matrix multiplication bounds, and in O~(m4/3)\tilde{O}(m^{4/3}) time if ω=2\omega=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 m4/3o(1)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 33SUM 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(n2.5ϵ)O(n^{2.5-\epsilon}) time algorithm for ϵ>0\epsilon>0, then both the APSP and 33SUM hypotheses are false. We also connect the problem to other ``intermediate'' problems, whose runtimes are between O(nω)O(n^\omega) and O(n3)O(n^3), such as the Max-Min product problem.

Keywords

Cite

@article{arxiv.2007.09318,
  title  = {Monochromatic Triangles, Triangle Listing and APSP},
  author = {Virginia Vassilevska Williams and Yinzhan Xu},
  journal= {arXiv preprint arXiv:2007.09318},
  year   = {2020}
}

Comments

To appear in FOCS'20

R2 v1 2026-06-23T17:12:43.024Z