Beating Meet-in-the-Middle for Subset Balancing Problems
Tim Randolph, Karol Wegrzycki
Abstract
We consider exact algorithms for Subset Balancing, a family of related problems that generalizes Subset Sum, Partition, and Equal Subset Sum. Specifically, given as input an integer vector ⃗ x ∈ Z n and a constant-size coefficient set C ⊂ Z, we seek a nonzero solution vector ⃗ c ∈ C n satisfying ⃗ c • ⃗ x = 0.
For C = -d, . . . , d, d > 1 and C = -d, . . . , d 0, d > 2, we present algorithms that run in time O(|C| (0.5-ε)n ) for a constant ε > 0 that depends only on C. These are the first algorithms that break the O(|C| n/2 )-time "Meet-in-the-Middle barrier" for these coefficient sets in the worst case. This improves on the result of Chen, Jin, Randolph and Servedio (SODA 2022), who broke the Meet-in-the-Middle barrier on these coefficient sets in the average-case setting. We also improve the best exact algorithm for Equal Subset Sum (Subset Balancing with C = -1, 0, 1), due to Mucha, Nederlof, Pawlewicz, and Węgrzycki (ESA 2019), by an exponential margin. This positively answers an open question of Jin, Williams, and Zhang (ESA 2025). Our results leave two natural cases in which we cannot yet break the Meet-in-the-Middle barrier: C = -2, -1, 1, 2 and C = -1, 1 (Partition).
Our results bring the representation technique of Howgrave-Graham and Joux (CRYPTO 2010) from average-case to worst-case inputs for many C. This requires a variety of new techniques: we present strategies for (1) achieving good "mixing" with worst-case inputs, (2) creating flexible input representations for coefficient sets without 0, and (3) quickly recovering compatible solution pairs from sets of vectors containing "pseudosolution pairs". These techniques may find application to other algorithmic problems on integer sums or be of independent interest.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1753f7d5-9e66-4da7-b5bf-81f8f36b303fBuilds on3
- Truly Low-Space Element Distinctness and Subset Sum via Pseudorandom Hash FunctionsLijie Chen, Ce Jin, R. Ryan Williams, Hongxun WuSODA 2022 · 3 citations
- Average-Case Subset Balancing ProblemsXi Chen, Yaonan Jin, Tim Randolph, Rocco A. ServedioSODA 2022 · 2 citations
- Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
Related papers
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
- Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
- An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations
- Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
- On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 citations
