Faster Pseudopolynomial Time Algorithms for Subset Sum

From MaRDI portal



Abstract: Given a multiset S of n positive integers and a target integer t, the subset sum problem is to decide if there is a subset of S that sums up to t. We present a new divide-and-conquer algorithm that computes all the realizable subset sums up to an integer u in widetildeO!left(minsqrtnu,u4/3,sigmaight), where sigma is the sum of all elements in S and widetildeO hides polylogarithmic factors. This result improves upon the standard dynamic programming algorithm that runs in O(nu) time. To the best of our knowledge, the new algorithm is the fastest general algorithm for this problem. We also present a modified algorithm for cyclic groups, which computes all the realizable subset sums within the group in widetildeO!left(minsqrtnm,m5/4ight) time, where m is the order of the group.



Cites work


Cited in
(39)








This page was built for publication: Faster Pseudopolynomial Time Algorithms for Subset Sum

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