Fast Low-Space Algorithms for Subset Sum
Ce Jin, Nikhil Vyas, Ryan Williams
摘要
We consider the canonical Subset Sum problem: given a list of positive integers a 1 , . . . , a n and a target integer t with t > a i for all i, determine if there is an S ⊆ [n] such that i∈S a i = t. The wellknown pseudopolynomial-time dynamic programming algorithm [Bellman, 1957] solves Subset Sum in O(nt) time, while requiring Ω(t) space.
In this paper we present algorithms for Subset Sum with O(nt) running time and much lower space requirements than Bellman's algorithm, as well as that of prior work. We show that Subset Sum can be solved in O(nt) time and O(log(nt)) space with access to O(log n log log n + log t) random bits. This significantly improves upon the O(nt 1+ε )-time, O(n log t)-space algorithm of Bringmann (SODA 2017). We also give an O(n 1+ε t)-time, O(log(nt))-space randomized algorithm, improving upon previous (nt) O(1) -time O(log(nt))-space algorithms by Elberfeld, Jakoby, and Tantau (FOCS 2010), and Kane (2010). In addition, we also give a poly log(nt)-space, O(n 2 t)-time deterministic algorithm.
We also study time-space trade-offs for Subset Sum. For parameter 1 ≤ k ≤ minn, t, we present a randomized algorithm running in O((n + t) • k) time and O((t/k) poly log(nt)) space.
As an application of our results, we give an O(minn 2 /ε, n/ε 2 )-time and poly log(nt)-space algorithm for "weak" ε-approximations of Subset Sum.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Derandomizing Pseudopolynomial Algorithms for Subset Sum 引用了 On Near-Linear-Time Algorithms for Dense Subset Sum
- Derandomizing Pseudopolynomial Algorithms for Subset Sum 引用了 Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectors
- Derandomizing Pseudopolynomial Algorithms for Subset Sum 引用了 Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More
- Truly Low-Space Element Distinctness and Subset Sum via Pseudorandom Hash Functions 引用了 Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectors
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More 引用了 A Fine-Grained Perspective on Approximating Subset Sum and Partition
引用它的顶会 Paper3
- Truly Low-Space Element Distinctness and Subset Sum via Pseudorandom Hash FunctionsLijie Chen, Ce Jin, R. Ryan Williams, Hongxun WuSODA 2022 · 3 次引用
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and MoreCe Jin, Yinzhan XuSTOC 2024 · 1 次引用
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
它引用的 Paper3
- On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 次引用
- A Fine-Grained Perspective on Approximating Subset Sum and PartitionKarl Bringmann, Vasileios NakosSODA 2021 · 14 次引用
- Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
相关 Paper
- Beating Bellman's Algorithm for Subset SumKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2025 · 2 次引用
- An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 次引用
- Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 次引用
- Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 次引用
- Average-Case Subset Balancing ProblemsXi Chen, Yaonan Jin, Tim Randolph, Rocco A. ServedioSODA 2022 · 2 次引用
