Table of Contents
Fetching ...

Subset Balancing and Generalized Subset Sum via Lattices

Yiming Gao, Yansong Feng, Honggang Hu, Yanbin Pan

Abstract

We study the \emph{Subset Balancing} problem: given $\mathbf{x} \in \mathbb{Z}^n$ and a coefficient set $C \subseteq \mathbb{Z}$, find a nonzero vector $\mathbf{c} \in C^n$ such that $\mathbf{c}\cdot\mathbf{x} = 0$. The standard meet-in-the-middle algorithm runs in time $\tilde{O}(|C|^{n/2})=\tilde{O}(2^{n\log |C|/2})$, and recent improvements (SODA~2022, Chen, Jin, Randolph, and Servedio; STOC~2026, Randolph and Węgrzycki) beyond this barrier apply mainly when $d$ is constant. We give a reduction from Subset Balancing with $C = \{-d, \dots, d\}$ to a single instance of $\mathrm{SVP}_{\infty}$ in dimension $n+1$, which yields a deterministic algorithm with running time $\tilde{O}((6\sqrt{2πe})^n) \approx \tilde{O}(2^{4.632n})$, and a randomized algorithm with running time $\tilde{O}(2^{2.443n})$ (here $\tilde{O}$ suppresses $\operatorname{poly}(n)$ factors). We also show that for sufficiently large $d$, Subset Balancing is solvable in polynomial time. More generally, we extend the box constraint $[-d,d]^n$ to an arbitrary centrally symmetric convex body $K \subseteq \mathbb{R}^n$ with a deterministic $\tilde{O}(2^{c_K n})$-time algorithm, where $c_K$ depends only on the shape of $K$. We further study the \emph{Generalized Subset Sum} problem of finding $\mathbf{c} \in C^n$ such that $\mathbf{c} \cdot \mathbf{x} = τ$. For $C = \{-d, \dots, d\}$, we reduce the worst-case problem to a single instance of $\mathrm{CVP}_{\infty}$. Although no general single exponential time algorithm is known for exact $\mathrm{CVP}_{\infty}$, we show that in the average-case setting, for both $C = \{-d, \dots, d\}$ and $C = \{-d, \dots, d\} \setminus \{0\}$, the embedded instance satisfies a bounded-distance promise with high probability. This yields a deterministic algorithm running in time $\tilde{O}((18\sqrt{2πe})^n) \approx \tilde{O}(2^{6.217n})$.

Subset Balancing and Generalized Subset Sum via Lattices

Abstract

We study the \emph{Subset Balancing} problem: given and a coefficient set , find a nonzero vector such that . The standard meet-in-the-middle algorithm runs in time , and recent improvements (SODA~2022, Chen, Jin, Randolph, and Servedio; STOC~2026, Randolph and Węgrzycki) beyond this barrier apply mainly when is constant. We give a reduction from Subset Balancing with to a single instance of in dimension , which yields a deterministic algorithm with running time , and a randomized algorithm with running time (here suppresses factors). We also show that for sufficiently large , Subset Balancing is solvable in polynomial time. More generally, we extend the box constraint to an arbitrary centrally symmetric convex body with a deterministic -time algorithm, where depends only on the shape of . We further study the \emph{Generalized Subset Sum} problem of finding such that . For , we reduce the worst-case problem to a single instance of . Although no general single exponential time algorithm is known for exact , we show that in the average-case setting, for both and , the embedded instance satisfies a bounded-distance promise with high probability. This yields a deterministic algorithm running in time .

Paper Structure

This paper contains 34 sections, 25 theorems, 119 equations, 2 algorithms.

Key Result

Theorem 1.1

Given any $d,n \in \mathbb{N}$ and let $C = [-d:d]$, there is a deterministic algorithm for Subset Balancing Problems in running time and a randomized algorithm in time $\blacktriangleleft$$\blacktriangleleft$

Theorems & Definitions (49)

  • Theorem 1.1: Algorithms for Worst-Case SBP with C=[-d:d]
  • Theorem 1.2: Algorithms for Average-Case GSS with C=[-d:d]
  • Theorem 1.3: Algorithms for Average-Case GSS with C=[± d]
  • Definition 2.1: Lattice
  • Definition 2.2: Successive Minima
  • Lemma 2.3: Minkowski's Theorem
  • Corollary 2.4: Minkowski's Theorem
  • Definition 2.5: Shortest Vector Problem (SVP$_p$)
  • Lemma 2.6: LLL Basis Reduction
  • Definition 2.7: Closest Vector Problem (CVP$_p$)
  • ...and 39 more