Average-Case Subset Balancing Problems
Xi Chen, Yaonan Jin, Tim Randolph, Rocco A. Servedio
Abstract
Given a set of n input integers, the Equal Subset Sum problem asks us to find two distinct subsets with the same sum. In this paper we present an algorithm that runs in time O * (3 0.387n ) in the average case, significantly improving over the O * (3 0.488n ) running time of the best known worst-case algorithm [MNPW19] and the Meet-in-the-Middle benchmark of O * (3 0.5n ).
Our algorithm generalizes to a number of related problems, such as the "Generalized Equal Subset Sum" problem, which asks us to assign a coefficient c i from a set C to each input number x i such that i c i x i = 0. Our algorithm for the average-case version of this problem runs in time |C| (0.5-c0/|C|)n for some positive constant c 0 , whenever C = 0, ±1, . . . , ±d or ±1, . . . , ±d for some positive integer d (with runtime O * (|C| 0.45n ) when |C| < 10). Our results extend to the problem of finding "nearly balanced" solutions in which the target is a not-too-large nonzero offset τ .
Our approach relies on new structural results that characterize the probability that i c i x i = τ has a solution c ∈ C n when x i 's are chosen randomly; these results may be of independent interest. Our algorithm is inspired by the "representation technique" introduced by . This requires several new ideas to overcome preprocessing hurdles that arise in the representation framework, as well as a novel application of dynamic programming in the solution recovery phase of the algorithm.
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 61100ff0-1d2c-4ff4-a79e-62ff9a710ab4Cited by top-tier papers1
Ask how each one uses itRelated papers
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
- Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
- 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
- Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
