Table of Contents
Fetching ...

An Improved Pseudopolynomial Time Algorithm for Subset Sum

Lin Chen, Jiayi Lian, Yuchen Mao, Guochuan Zhang

TL;DR

This work tackles Subset Sum in the pseudo-polynomial regime by delivering a randomized $\tilde{O}(n + \sqrt{wt})$-time algorithm. It combines a dense-vs-sparse decomposition with a key lemma that partitions the input into parts with controlled sum and a divisor structure, enabling distinct handling of dense and sparse instances via additive combinatorics and sparse convolution. In the dense case, the sumset contains all relevant multiples of a common divisor within a short interval, while in the sparse case a three-phase, random-partitioned, color-coded convolution yields a compact witness set containing the target with high probability. The result improves prior $\tilde{O}(n+t)$-time bounds in the regime $t \ge w$ and points toward the long-standing goal of $\tilde{O}(n+w)$-time solutions; however, reconstructing an actual subset remains an open challenge due to non-constructive ingredients.

Abstract

We investigate pseudo-polynomial time algorithms for Subset Sum. Given a multi-set $X$ of $n$ positive integers and a target $t$, Subset Sum asks whether some subset of $X$ sums to $t$. Bringmann proposes an $\tilde{O}(n + t)$-time algorithm [Bringmann SODA'17], and an open question has naturally arisen: can Subset Sum be solved in $O(n + w)$ time? Here $w$ is the maximum integer in $X$. We make a progress towards resolving the open question by proposing an $\tilde{O}(n + \sqrt{wt})$-time algorithm.

An Improved Pseudopolynomial Time Algorithm for Subset Sum

TL;DR

This work tackles Subset Sum in the pseudo-polynomial regime by delivering a randomized -time algorithm. It combines a dense-vs-sparse decomposition with a key lemma that partitions the input into parts with controlled sum and a divisor structure, enabling distinct handling of dense and sparse instances via additive combinatorics and sparse convolution. In the dense case, the sumset contains all relevant multiples of a common divisor within a short interval, while in the sparse case a three-phase, random-partitioned, color-coded convolution yields a compact witness set containing the target with high probability. The result improves prior -time bounds in the regime and points toward the long-standing goal of -time solutions; however, reconstructing an actual subset remains an open challenge due to non-constructive ingredients.

Abstract

We investigate pseudo-polynomial time algorithms for Subset Sum. Given a multi-set of positive integers and a target , Subset Sum asks whether some subset of sums to . Bringmann proposes an -time algorithm [Bringmann SODA'17], and an open question has naturally arisen: can Subset Sum be solved in time? Here is the maximum integer in . We make a progress towards resolving the open question by proposing an -time algorithm.
Paper Structure (22 sections, 39 theorems, 62 equations, 5 algorithms)

This paper contains 22 sections, 39 theorems, 62 equations, 5 algorithms.

Key Result

Theorem 1.1

Subset Sum can be solved in $\widetilde{O}(n +\sqrt{wt})$ time by a randomized, one-sided-error algorithm with probability $1 - (n + t)^{-\Omega(1)}$.

Theorems & Definitions (67)

  • Theorem 1.1
  • Remark
  • Corollary 1.2
  • Remark
  • Lemma 2.1
  • Lemma 2.2: BFN22
  • Lemma 3.0
  • Lemma 3.0
  • Lemma 3.0
  • Theorem 3.1
  • ...and 57 more