Papers
Topics
Authors
Recent
Search
2000 character limit reached

Efficient reductions and algorithms for variants of Subset Sum

Published 21 Dec 2021 in cs.DS | (2112.11020v2)

Abstract: Given (a1,,an,t)Z<em>0<sup>n</sup>+1(a_1, \dots, a_n, t) \in \mathbb{Z}<em>{\geq 0}<sup>{n</sup> + 1}, the Subset Sum problem (SSUM\mathsf{SSUM}) is to decide whether there exists S[n]S \subseteq [n] such that </em>iSai=t\sum</em>{i \in S} a_i = t. There is a close variant of the SSUM\mathsf{SSUM}, called Subset Product\mathsf{Subset~Product}. Given positive integers a1,...,ana_1, ..., a_n and a target integer tt, the Subset Product\mathsf{Subset~Product} problem asks to determine whether there exists a subset S[n]S \subseteq [n] such that iSai=t\prod_{i \in S} a_i=t. There is a pseudopolynomial time dynamic programming algorithm, due to Bellman (1957) which solves the SSUM\mathsf{SSUM} and Subset Product\mathsf{Subset~Product} in O(nt)O(nt) time and O(t)O(t) space. In the first part, we present {\em search} algorithms for variants of the Subset Sum problem. Our algorithms are parameterized by kk, which is a given upper bound on the number of realisable sets (i.e.,~number of solutions, summing exactly tt). We show that SSUM\mathsf{SSUM} with a unique solution is already NP-hard, under randomized reduction. This makes the regime of parametrized algorithms, in terms of kk, very interesting. Subsequently, we present an O~(k(n+t))\tilde{O}(k\cdot (n+t)) time deterministic algorithm, which finds the hamming weight of all the realisable sets for a subset sum instance. We also give a poly(knt)(knt)-time and O(log(knt))O(\log(knt))-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 O~(n+t)\tilde{O}(n + t) time algorithm for Subset Product\mathsf{Subset~Product}. Moreover, we also present a poly(nt)(nt) time and O(log<sup>2</sup>(nt))O(\log<sup>2</sup> (nt)) 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).

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.