A near-linear pseudopolynomial time algorithm for subset sum

From MaRDI portal



Abstract: Given a set Z of n positive integers and a target value t, the Subset Sum problem asks whether any subset of Z sums to t. A textbook pseudopolynomial time algorithm by Bellman from 1957 solves Subset Sum in time O(nt). This has been improved to O(nmaxZ) by Pisinger [J. Algorithms'99] and recently to ildeO(sqrtnt) by Koiliaris and Xu [SODA'17]. Here we present a simple randomized algorithm running in time ildeO(n+t). This improves upon a classic algorithm and is likely to be near-optimal, since it matches conditional lower bounds from Set Cover and k-Clique. We then use our new algorithm and additional tricks to improve the best known polynomial space solution from time ildeO(n3t) and space ildeO(n2) to time ildeO(nt) and space ildeO(nlogt), assuming the Extended Riemann Hypothesis. Unconditionally, we obtain time ildeO(nt1+varepsilon) and space ildeO(ntvarepsilon) for any constant varepsilon>0.




Cited in
(57)








This page was built for publication: A near-linear pseudopolynomial time algorithm for subset sum

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4575810)