Deterministic Sparse Pattern Matching via the Baur-Strassen Theorem
Nick Fischer
Abstract
How fast can you test whether a constellation of stars appears in the night sky? This question can be modeled as the computational problem of testing whether a set of points P can be moved into (or close to) another set Q under some prescribed group of transformations. Problems of this kind are subject to intensive study in computational geometry and enjoy countless theoretical and practical applications.
Consider, as a simple representative, the following problem: Given two sets of at most n integers P, Q ⊆ [N ], determine whether there is some shift s such that P shifted by s is a subset of Q, i.e., P + s = p + s : p ∈ P ⊆ Q. This problem, to which we refer as the Constellation problem, can be solved in near-linear time O(n log n) by a Monte Carlo randomized algorithm [Cardoze, Schulman; FOCS '98] and time O(n log 2 N ) by a Las Vegas randomized algorithm [Cole, Hariharan; STOC '02]. Moreover, there is a deterministic algorithm running in time n • 2 O( √ log n log log N ) [Chan, Lewenstein; STOC '15]. An interesting question left open by these previous works is whether Constellation is in deterministic near-linear time (i.e., with only polylogarithmic overhead).
We answer this question positively by giving an O(n polylog(N ))-time deterministic algorithm for the Constellation problem. Our algorithm extends to various more complex Point Pattern Matching problems in higher dimensions, under translations and rigid motions, and possibly with mismatches, and also to a near-linear-time derandomization of the Sparse Wildcard Matching problem on strings.
We find it particularly interesting how we obtain our deterministic algorithm. All previous algorithms are based on the same baseline idea, using additive hashing and the Fast Fourier Transform. In contrast, our algorithms are based on new ideas, involving a surprising blend of combinatorial and algebraic techniques. At the heart lies an innovative application of the Baur-Strassen theorem from algebraic complexity theory.
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.
6 top-tier papers have 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
- Removing Additive Structure in 3SUM-Based Reductions cites Sparse nonnegative convolution is equivalent to dense nonnegative convolution
- Removing Additive Structure in 3SUM-Based Reductions cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Removing Additive Structure in 3SUM-Based Reductions cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
- Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics cites Removing Additive Structure in 3SUM-Based Reductions
- Sumsets, 3SUM, Subset Sum: Now for Real! cites Sparse nonnegative convolution is equivalent to dense nonnegative convolution
- Sumsets, 3SUM, Subset Sum: Now for Real! cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Sumsets, 3SUM, Subset Sum: Now for Real! cites Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Removing Additive Structure in 3SUM-Based Reductions
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Sumsets, 3SUM, Subset Sum: Now for Real!
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern Matching
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
- New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern Matching cites Removing Additive Structure in 3SUM-Based Reductions
- New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern Matching cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern Matching cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
- Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution cites Sparse nonnegative convolution is equivalent to dense nonnegative convolution
- Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics cites Sparse nonnegative convolution is equivalent to dense nonnegative convolution
- Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More cites Removing Additive Structure in 3SUM-Based Reductions
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More cites Sparse nonnegative convolution is equivalent to dense nonnegative convolution
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
Cited by top-tier papers6
- Universe Reduction for APSP: Equivalence of Three Fine-Grained HypothesesNick FischerSTOC 2026 · 2 citations
- New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern MatchingNick Fischer, Ce Jin, Yinzhan XuSODA 2025 · 2 citations
- Sumsets, 3SUM, Subset Sum: Now for Real!Nick FischerSODA 2025 · 1 citation
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and MoreCe Jin, Yinzhan XuSTOC 2024 · 1 citation
- On the Computational Hardness of TransformersBarna Saha, Yinzhan Xu, Christopher Ye, Hantao YuSTOC 2026
Builds on4
- Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive CombinatoricsAmir Abboud, Karl Bringmann, Nick FischerSTOC 2023 · 10 citations
- Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
- Deterministic and Las Vegas Algorithms for Sparse Nonnegative ConvolutionKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2022 · 8 citations
- Sparse nonnegative convolution is equivalent to dense nonnegative convolutionKarl Bringmann, Nick Fischer, Vasileios NakosSTOC 2021
Related papers
- Approximating text-to-pattern Hamming distancesTimothy M. Chan, Shay Golan, Tomasz Kociumaka, Tsvi Kopelowitz et al.STOC 2020 · 2 citations
- Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
- Faster Deterministic and Las Vegas Algorithms for Offline Approximate Nearest Neighbors in High DimensionsJosh Alman, Timothy M. Chan, R. Ryan WilliamsSODA 2020 · 9 citations
- On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAMDominik Kempa, Tomasz KociumakaSTOC 2025
