Fast Low-Space Algorithms for Subset Sum
Abstract
We consider the canonical Subset Sum problem: given a list of positive integers and a target integer with for all , determine if there is an such that . The well-known pseudopolynomial-time dynamic programming algorithm [Bellman, 1957] solves Subset Sum in time, while requiring space. In this paper we present algorithms for Subset Sum with 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 time and space with access to random bits. This significantly improves upon the -time, -space algorithm of Bringmann (SODA 2017). We also give an -time, -space randomized algorithm, improving upon previous -time -space algorithms by Elberfeld, Jakoby, and Tantau (FOCS 2010), and Kane (2010). In addition, we also give a -space, -time deterministic algorithm. We also study time-space trade-offs for Subset Sum. For parameter , we present a randomized algorithm running in time and space. As an application of our results, we give an -time and -space algorithm for "weak" -approximations of Subset Sum.
Cite
@article{arxiv.2011.03819,
title = {Fast Low-Space Algorithms for Subset Sum},
author = {Ce Jin and Nikhil Vyas and Ryan Williams},
journal= {arXiv preprint arXiv:2011.03819},
year = {2020}
}
Comments
To appear in SODA 2021