• Home
  • Search
  • 3SUM in Preprocessed Universes: Faster and Simpler
  • https://doi.org/10.46298/theoretics.25.24Copy DOI Icon

3SUM in Preprocessed Universes: Faster and Simpler

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

We revisit the 3SUM problem in the \emph{preprocessed universes} setting. We present an algorithm that, given three sets $A$, $B$, $C$ of $n$ integers, preprocesses them in quadratic time, so that given any subsets $A' \subseteq A$, $B' \subseteq B$, $C' \subseteq C$, it can decide if there exist $a \in A'$, $b \in B'$, $c \in C'$ with $a+b=c$ in time $O(n^{1.5} \log n)$. In contrast to both the first subquadratic $\tilde{O}(n^{13/7})$-time algorithm by Chan and Lewenstein (STOC 2015) and the current fastest $\tilde{O}(n^{11/6})$-time algorithm by Chan, Vassilevska Williams, and Xu (STOC 2023), which are based on the Balog--Szemerédi--Gowers theorem from additive combinatorics, our algorithm uses only standard 3SUM-related techniques, namely FFT and linear hashing modulo a prime. It is therefore not only faster but also simpler. Just as the two previous algorithms, ours not only decides if there is a single 3SUM solution but it actually determines for each $c \in C'$ if there is a solution containing it. We also modify the algorithm to still work in the scenario where the set $C$ is unknown at the time of preprocessing. Finally, even though the simplest version of our algorithm is randomized, we show how to make it deterministic losing only polylogarithmic factors in the running time. 12 pages. This is the TheoretiCS journal version (invited article from SOSA 2025)

Similar Papers
  • Research Article
  • Citations10

A faster FPTAS for knapsack problem with cardinality constraint

  • Apr 04, 2022
  • Discrete Applied Mathematics
  • Wenxin Li +2
  • Book Chapter
  • Citations30

Greedy Localization and Color-Coding: Improved Matching and Packing Algorithms

  • Jan 01, 2006
  • Yang Liu +3
  • Conference Article
  • Citations39

Sensitive Distance and Reachability Oracles for Large Batch Updates

  • Nov 01, 2019
  • Jan Van Den Brand +1
  • Research Article
  • Citations65

Labeled Search Trees and Amortized Analysis: Improved Upper Bounds for NP-Hard Problems

  • Feb 16, 2005
  • Algorithmica
  • Jianer Chen +2
  • Book Chapter
  • Citations3

An almost 2-approximation for all-pairs of shortest paths in subquadratic time

  • Jan 01, 2020
  • Maor Akav +1
  • Research Article
  • Citations70

Distributed Random Walks

  • Feb 01, 2013
  • Journal of the ACM
  • Atish Das Sarma +3
  • Research Article
  • Citations15

Tree-Adjoining Language Parsing in $O(n^6 )$ Time

  • Aug 01, 1996
  • SIAM Journal on Computing
  • Sanguthevar Rajasekaran
  • Book Chapter

How to Achieve an Equivalent Simple Permutation in Linear Time

  • Sep 16, 2007
  • Simon Gog +1
  • Book Chapter
  • Citations14

Parameterized Complexity of Bandwidth on Trees

  • Jan 01, 2014
  • Markus Sortland Dregi +1
  • Research Article
  • Citations1

Algorithms for two-agent unbounded serial-batch scheduling with makespan and maximum lateness objectives

  • Jan 01, 2023
  • Networks and Heterogeneous Media
  • Shuguang Li +2
  • Book Chapter
  • Citations11

A Polynomial Time Constant Approximation For Minimizing Total Weighted Flow-time

  • Jan 01, 2019
  • Uriel Feige +2
  • Conference Article
  • Citations18

A near-linear time algorithm for constructing a cactus representation of minimum cuts

  • Jan 04, 2009
  • David R Karger +1
  • Book Chapter
  • Citations14

Deterministic Rectangle Enclosure and Offline Dominance Reporting on the RAM

  • Jan 01, 2014
  • Peyman Afshani +2
  • Research Article
  • Citations9

More on change-making and related problems

  • Oct 18, 2021
  • Journal of Computer and System Sciences
  • Timothy M Chan +1
  • Book Chapter
  • Citations7

On the Fine-Grained Complexity of the Unbounded SubsetSum and the Frobenius Problem

  • Jan 01, 2022
  • Kim-Manuel Klein
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.