Archive | 2021

3SUM and Related Problems in Fine-Grained Complexity (Invited Talk)

 

Abstract


3SUM is a simple to state problem: given a set S of n numbers, determine whether S contains three a, b, c so that a + b + c = 0. The fastest algorithms for the problem run in n2poly(log log n)/(log n)2 time both when the input numbers are integers [1] (in the word RAM model with O(log n) bit words) and when they are real numbers [2] (in the real RAM model). A hypothesis that is now central in Fine-Grained Complexity (FGC) states that 3SUM requires n2−o(1) time (on the real RAM for real inputs and on the word RAM with O(log n) bit numbers for integer inputs). This hypothesis was first used in Computational Geometry by Gajentaan and Overmars [4] 1 who built a web of reductions showing that many geometric problems are hard, assuming that 3SUM is hard. The web of reductions within computational geometry has grown considerably since then (see some citations in [11]). A seminal paper by Pǎtraşcu [7] showed that the integer version of the 3SUM hypothesis can be used to prove polynomial conditional lower bounds for several problems in data structures and graph algorithms as well, extending the implications of the hypothesis to outside computational geometry. Pǎtraşcu proved an important tight equivalence between (integer) 3SUM and a problem called 3SUM-Convolution (see also [3]) that is easier to use in reductions: given an integer array a of length n, do there exist i, j ∈ [n] so that a[i] + a[j] = a[i + j]. From 3SUM-Convolution, many 3SUM-based hardness results have been proven: e.g. to listing graphs in triangles, dynamically maintaining shortest paths or bipartite matching, subset intersection and many more. It is interesting to consider more runtime-equivalent formulations of 3SUM, with the goal of uncovering more relationships to different problems. The talk will outline some such equivalences. For instance, 3SUM (over the reals or the integers) is equivalent to All-Numbers-3SUM: given a set S of n numbers, determine for every a ∈ S whether there are b, c ∈ S with a + b + c = 0 (e.g. [10]). The equivalences between 3SUM, 3SUM-Convolution and All-Numbers 3SUM are (n2, n2)-finegrained equivalences that imply that if there is an O(n2−ε) time algorithm for one of the problems for ε > 0, then there is also an O(n2−ε ′ ) time algorithm for the other problems for some ε′ > 0. More generally, for functions a(n), b(n), there is an (a, b)-fine-grained reduction [11, 9, 10] from problem A to problem B if for every ε > 0 there is a δ > 0 and an O(a(n)1−δ) time algorithm for A that does oracle calls to instances of B of sizes n1, . . . , nk (for some k) so that ∑k j=1 b(nj) 1−ε ≤ a(n)1−δ. With such a reduction, an O(b(n)1−ε) time algorithm for B can be converted into an O(a(n)1−δ) time algorithm for A by replacing the oracle calls by calls to the B algorithm. A and B are (a, b)-fine-grained equivalent if A (a, b)-reduces to B and B (b, a)-reduces to A. One of the main open problems in FGC is to determine the relationship between 3SUM and the other central FGC problems, in particular All-Pairs Shortest Paths (APSP). A classical graph problem, APSP in n node graphs has been known to be solvable in O(n3) time since the 1950s. Its fastest known algorithm runs in n3/exp( √ log n) time [14]. The APSP Hypothesis states that n3−o(1) time is needed to solve APSP in graphs with integer edge weights in the word-RAM model with O(log n) bit words. It is unknown whether APSP and 3SUM are fine-grained reducible to each other, in either direction. The two problems are very similar. Problems such as (min, +)-convolution (believed to require n2−o(1) time) have tight fine-grained reductions to both APSP and 3SUM, and both 3SUM and APSP have tight fine-grained reductions to problems such as Exact Triangle [10, 8, 12] and (since very recently) Listing triangles in sparse graphs [7, 6, 13]. The talk will discuss these relationships and some of their implications, e.g. to dynamic algorithms. 1 They used a more stringent version of the hypothesis that said that (real) 3SUM requires Ω(n2) time which we now know to be false [5]. © Virginia Vassilevska Williams; licensed under Creative Commons License CC-BY 4.0 37th International Symposium on Computational Geometry (SoCG 2021). Editors: Kevin Buchin and Éric Colin de Verdière; Article No. 2; pp. 2:1–2:2 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 2:2 3SUM and Related Problems in Fine-Grained Complexity 2012 ACM Subject Classification Theory of computation; Theory of computation → Design and analysis of algorithms

Volume None
Pages 2:1-2:2
DOI 10.4230/LIPIcs.SoCG.2021.2
Language English
Journal None

Full Text