Skip to content

Subset Sum in Almost-Linear Time

Ce Jin, Xiao Mao

cs.DS

Abstract

We give a deterministic algorithm for finding a subset of the input integers 1≤a1,…,an≤Δ1\le a_1,\ldots,a_n \le Δ that sums to the target tt in O(n+Δ1+o(1))\mathcal{O}(n+Δ^{1+o(1)}) time. This improves upon the previous O~(n+Δ1.5)\widetilde{\mathcal{O}}(n + Δ^{1.5})-time algorithm by Chen, Lian, Mao, and Zhang (SODA 2024), and achieves almost tight dependence on ΔΔ assuming SETH. We use an inverse theorem for subset sums due to Conlon, Fox, and Pham (2023), and develop a quotient variant of economic cap covering from the polytope approximation literature.

Create a lesson