English

Derandomizing Pseudopolynomial Algorithms for Subset Sum

Data Structures and Algorithms 2026-01-06 v1

Abstract

We reexamine the classical subset sum problem: given a set XX of nn positive integers and a number tt, decide whether there exists a subset of XX that sums to tt; or more generally, compute the set \mboxout\mbox{out} of all numbers y{0,,t}y\in\{0,\ldots,t\} for which there exists a subset of XX that sums to yy. Standard dynamic programming solves the problem in O(tn)O(tn) time. In SODA'17, two papers appeared giving the current best deterministic and randomized algorithms, ignoring polylogarithmic factors: Koiliaris and Xu's deterministic algorithm runs in O~(tn)\widetilde{O}(t\sqrt{n}) time, while Bringmann's randomized algorithm runs in O~(t)\widetilde{O}(t) time. We present the first deterministic algorithm running in O~(t)\widetilde{O}(t) time. Our technique has a number of other applications: for example, we can also derandomize the more recent output-sensitive algorithms by Bringmann and Nakos [STOC'20] and Bringmann, Fischer, and Nakos [SODA'25] running in O~(\mboxout4/3)\widetilde{O}(|\mbox{out}|^{4/3}) and O~(\mboxoutn)\widetilde{O}(|\mbox{out}|\sqrt{n}) time, and we can derandomize a previous fine-grained reduction from 0-1 knapsack to min-plus convolution by Cygan et al. [ICALP'17].

Keywords

Cite

@article{arxiv.2601.01390,
  title  = {Derandomizing Pseudopolynomial Algorithms for Subset Sum},
  author = {Timothy M. Chan},
  journal= {arXiv preprint arXiv:2601.01390},
  year   = {2026}
}

Comments

To appear in SODA 2026