Efficient reductions and algorithms for variants of Subset Sum
Abstract: Given , the Subset Sum problem () is to decide whether there exists such that . There is a close variant of the , called . Given positive integers and a target integer , the problem asks to determine whether there exists a subset such that . There is a pseudopolynomial time dynamic programming algorithm, due to Bellman (1957) which solves the and in time and space. In the first part, we present {\em search} algorithms for variants of the Subset Sum problem. Our algorithms are parameterized by , which is a given upper bound on the number of realisable sets (i.e.,~number of solutions, summing exactly ). We show that with a unique solution is already NP-hard, under randomized reduction. This makes the regime of parametrized algorithms, in terms of , 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 poly-time and -space deterministic algorithm that finds all the realisable sets for a subset sum instance. In the latter part, we present a simple and elegant randomized time algorithm for . Moreover, we also present a poly time and space deterministic algorithm for the same. We study these problems in the unbounded setting as well. Our algorithms use multivariate FFT, power series and number-theoretic techniques, introduced by Jin and Wu (SOSA'19) and Kane (2010).
Paper Prompts
Sign up for free to create and run prompts on this paper.