Worst-case Subset Sum algorithms
Given integers and a target, Subset Sum asks whether some subset has that sum. What are the best worst-case classical algorithms, and how much writable memory do their time bounds require?
The question includes algorithms that improve the exponential time and algorithms that retain a square-root exponential time scale while reducing space. Input bit lengths, machine models and randomized error guarantees are part of the comparison.
Why it matters and what counts as progress
Why it matters: Exponential time and space can impose different limits. A faster algorithm and a lower-memory algorithm may be useful at different instance sizes.
What counts as progress: An algorithm establishes correctness, error behavior and worst-case time and memory in a specified input model. A tradeoff states both resource bounds and whether they hold on every execution.
How the problem developed
- 1974 · Algorithm [1]
Ellis Horowitz and Sartaj Sahni Introduced the meet-in-the-middle approach with time for Subset Sum.
- January 2023 · Algorithm [2]
Xi Chen et al. Obtained a polynomial-factor improvement while retaining the exponential scale.
- 26 Sept 2026 · Reported AI result [5]
OpenAI For every fixed polynomial bound on input-integer bit length, there is a uniform classical randomized decision algorithm for worst-case Subset Sum taking polynomial(n) times time and writable words of bits, where b is the largest input bit length. Both resource bounds hold on every execution. Unsolvable instances are always rejected; solvable ones are accepted with probability at least two thirds.
- 28 Sept 2026 · Algorithm [3]
Ye and Li; GPT-6 Astra The authors report that GPT-6 Astra found a reduction used in a deterministic algorithm; the full result was submitted October 7.
- 4 Oct 2026 · Reported claim [4]
OpenAI The preprint claims a randomized algorithm in the stated polynomial-bit word-RAM model.
Follow new AI contributions to this problem.
How the problem developed
AI Proof Watch
Worst-case Subset Sum algorithms
References
- [1]Horowitz and Sahni, Computing partitions with applications to the knapsack problem
- [2]Chen et al., Faster subset sum via near-linear time polynomial factor
- [3]Ye and Li, A deterministic -time algorithm for Subset Sum
- [4]Pinned original manuscript
- [5]A Low-Space Algorithm for Worst-Case Subset Sum
AI contributions 2
OpenAI reports: Worst-case Subset Sum algorithms
The manuscript reports a randomized classical Subset Sum algorithm in time for polynomial-bit inputs.
A Low-Space Algorithm for Worst-Case Subset Sum
For every fixed polynomial bound on input-integer bit length, there is a uniform classical randomized decision algorithm for worst-case Subset Sum taking polynomial(n) times time and writable words of bits, where b is the largest input bit length. Both resource bounds hold on every execution. Unsolvable instances are always rejected; solvable ones are accepted with probability at least two thirds.
Sources
- Horowitz and Sahni, Computing partitions with applications to the knapsack problem
- Chen et al., Faster subset sum via near-linear time polynomial factor
- Ye and Li, A deterministic -time algorithm for Subset Sum
- Pinned original manuscript
- A Low-Space Algorithm for Worst-Case Subset Sum
- OpenAI: model production and verification disclosure
Publication history
Daily emails by default, only when there’s an update.