English

3SUM, 3XOR, Triangles

Computational Complexity 2013-05-17 v1 Data Structures and Algorithms

Abstract

We show that if one can solve 3SUM on a set of size n in time n^{1+\e} then one can list t triangles in a graph with m edges in time O(m^{1+\e}t^{1/3-\e/3}). This is a reversal of Patrascu's reduction from 3SUM to listing triangles (STOC '10). Our result builds on and extends works by the Paghs (PODS '06) and by Vassilevska and Williams (FOCS '10). We make our reductions deterministic using tools from pseudorandomness. We then re-execute both Patrascu's reduction and our reversal for the variant 3XOR of 3SUM where integer summation is replaced by bit-wise xor. As a corollary we obtain that if 3XOR is solvable in linear time but 3SUM requires quadratic randomized time, or vice versa, then the randomized time complexity of listing m triangles in a graph with mm edges is m^{4/3} up to a factor m^\alpha for any \alpha > 0.

Keywords

Cite

@article{arxiv.1305.3827,
  title  = {3SUM, 3XOR, Triangles},
  author = {Zahra Jafargholi and Emanuele Viola},
  journal= {arXiv preprint arXiv:1305.3827},
  year   = {2013}
}
R2 v1 2026-06-22T00:17:40.191Z