Sumsets, 3SUM, Subset Sum: Now for Real!
Nick Fischer
Abstract
We study a broad class of algorithmic problems with an "additive flavor" such as computing sumsets, 3SUM, Subset Sum and geometric pattern matching. Our starting point is that these problems can often be solved efficiently for integers, owed to the rich available tool set including bit-tricks, linear hashing, and the Fast Fourier Transform. However, for real numbers these tools are not available, leading to significant gaps in the best-known running times for integer inputs versus for real inputs. In this work our goal is to close this gap.
As our key contribution we design a new technique for computing real sumsets. It is based on a surprising blend of algebraic ideas (like Prony's method and coprime factorizations) with combinatorial tricks. We then apply our new algorithm to the aforementioned problems and successfully obtain, in all cases, equally fast algorithms for real inputs. Specifically, we replicate the running times of the following landmark results by randomized algorithms in the standard real RAM model:
• Geometric pattern matching: Given two sets A, B, we can test whether there is some shift such that A + s ⊆ B in time O(|A| + |B|) [Cardoze, Schulman; FOCS'98].
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.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- On Near-Linear-Time Algorithms for Dense Subset Sum cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites On Near-Linear-Time Algorithms for Dense Subset Sum
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites An Improved Pseudopolynomial Time Algorithm for Subset Sum
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- An Improved Pseudopolynomial Time Algorithm for Subset Sum cites On Near-Linear-Time Algorithms for Dense Subset Sum
- An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
- An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
Cited by top-tier papers1
Builds on11
- Smoothing the gap between NP and ERJeff Erickson, Ivor van der Hoog, Tillmann MiltzowFOCS 2020 · 34 citations
- On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 citations
- Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
- Deterministic and Las Vegas Algorithms for Sparse Nonnegative ConvolutionKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2022 · 8 citations
- An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations
Related papers
- Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
- Recognizing Sumsets is NP-CompleteAmir Abboud, Nick Fischer, Ron Safier, Nathan WallheimerSODA 2025 · 1 citation
- On the Fine-Grained Complexity of the Unbounded SubsetSum and the Frobenius ProblemKim-Manuel KleinSODA 2022 · 7 citations
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
- Deterministic Sparse Pattern Matching via the Baur-Strassen TheoremNick FischerSODA 2024 · 2 citations
