Lune

SODA2026Top-tier venue

Derandomizing Pseudopolynomial Algorithms for Subset Sum

Timothy M. Chan

Abstract

We reexamine the classical subset sum problem: given a set X of n positive integers and a number t, decide whether there exists a subset of X that sums to t; or more generally, compute the set OUT of all numbers y ∈ 0, . . . , t for which there exists a subset of X that sums to y. Standard dynamic programming solves the problem in 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(t √ n) time, while Bringmann's randomized algorithm runs in O(t) time. We present the first deterministic algorithm running in 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(|OUT| 4/3 ) and O(|OUT| √ 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].

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On Near-Linear-Time Algorithms for Dense Subset Sum cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution
  • Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Fast Low-Space Algorithms for Subset Sum cites On Near-Linear-Time Algorithms for Dense Subset Sum
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on10

  1. On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 citations
  2. Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
  3. Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
  4. Deterministic and Las Vegas Algorithms for Sparse Nonnegative ConvolutionKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2022 · 8 citations
  5. An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations

Related papers

  1. Beating Bellman's Algorithm for Subset SumKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2025 · 2 citations
  2. Average-Case Subset Balancing ProblemsXi Chen, Yaonan Jin, Tim Randolph, Rocco A. ServedioSODA 2022 · 2 citations
  3. Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
  4. A Fine-Grained Perspective on Approximating Subset Sum and PartitionKarl Bringmann, Vasileios NakosSODA 2021 · 14 citations
  5. Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines