Lune

SODA2025顶会

Beating Bellman's Algorithm for Subset Sum

Karl Bringmann, Nick Fischer, Vasileios Nakos

摘要

Bellman's algorithm for Subset Sum is one of the earliest and simplest examples of dynamic programming, dating back to 1957. For a given set of n integers X and a target t, it computes the set of subset sums S(X, t) (i.e., the set of integers s ∈ [0 . . . t] for which there is a subset of X summing to s) in time O(|S(X, t)| • n). Since then, it has been an important question whether Bellman's seminal algorithm can be improved. This question is addressed in many recent works. And yet, while some algorithms improve upon Bellman's algorithm in specific parameter regimes, such as Bringmann's O(t + n)-time algorithm [SODA '17] and Bringmann and Nakos' O(|S(X, t)| 4/3 )-time algorithm [STOC '20], none of the known algorithms beats Bellman's algorithm in all regimes. In particular, it remained open whether Subset Sum is in time O(|S(X, t)| • n 1-ϵ ) (for some ϵ > 0).

In this work we positively resolve this question and design an algorithm that outperforms Bellman's algorithm in all regimes. Our algorithm runs in time O(|S(X, t)|• √ n), thus improving the time complexity by a factor of nearly √ n. Our key innovation is the use of a result from additive combinatorics, which has not been applied in an algorithmic context before and which we believe to be of further independent interest for algorithm design. To demonstrate the broader applicability of our approach, we extend our ideas to a variant of Subset Sum on vectors as well as to Unbounded Subset Sum.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • On Near-Linear-Time Algorithms for Dense Subset Sum 引用了 Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Removing Additive Structure in 3SUM-Based Reductions 引用了 On Near-Linear-Time Algorithms for Dense Subset Sum
  • Removing Additive Structure in 3SUM-Based Reductions 引用了 Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
  • Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics 引用了 Removing Additive Structure in 3SUM-Based Reductions
  • Derandomizing Pseudopolynomial Algorithms for Subset Sum 引用了 On Near-Linear-Time Algorithms for Dense Subset Sum
  • Derandomizing Pseudopolynomial Algorithms for Subset Sum 引用了 Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses 引用了 On Near-Linear-Time Algorithms for Dense Subset Sum
  • Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses 引用了 Removing Additive Structure in 3SUM-Based Reductions
  • Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses 引用了 Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses 引用了 Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results
  • Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses 引用了 Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
  • Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results 引用了 On Near-Linear-Time Algorithms for Dense Subset Sum
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Universe Reduction for APSP: Equivalence of Three Fine-Grained HypothesesNick FischerSTOC 2026 · 2 次引用
  2. Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026

它引用的 Paper14

  1. On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 次引用
  2. Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 次引用
  3. Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 次引用
  4. Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive CombinatoricsAmir Abboud, Karl Bringmann, Nick FischerSTOC 2023 · 10 次引用
  5. Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 次引用

相关 Paper

  1. Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 次引用
  2. An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 次引用
  3. Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
  4. Approximating Knapsack and Partition via Dense Subset SumsMingyang Deng, Ce Jin, Xiao MaoSODA 2023 · 10 次引用
  5. Average-Case Subset Balancing ProblemsXi Chen, Yaonan Jin, Tim Randolph, Rocco A. ServedioSODA 2022 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖