Given
, the Subset Sum problem (
) is to decide whether there exists
such that
. Bellman (1957) gave a pseudopolynomial time dynamic programming algorithm which solves the Subset Sum in O(nt) time and O(t) space.In this work, we present search algorithms for variants of the Subset Sum problem. Our algorithms are parameterized by k, which is a given upper bound on the number of realisable sets (i.e. number of solutions, summing exactly t). We show that
with a unique solution is already
-hard, under randomized reduction. This makes the regime of parametrized algorithms, in terms of k, very interesting.Subsequently, we present an
time deterministic algorithm, which finds the hamming weight of all the realisable sets for a subset sum instance. We also give a
-time and
-space deterministic algorithm that finds all the realisable sets for a subset sum instance. Our algorithms use analytic and number-theoretic techniques.
KeywordsSubset sumPower seriesIsolation lemmaHamming weightInterpolationLogspaceNewton’s identities