English

Faster Algorithms for $k$-Subset Sum and Variations

Data Structures and Algorithms 2022-01-04 v2

Abstract

We present new, faster pseudopolynomial time algorithms for the kk-Subset Sum problem, defined as follows: given a set ZZ of nn positive integers and kk targets t1,,tkt_1, \ldots, t_k, determine whether there exist kk disjoint subsets Z1,,ZkZZ_1,\dots,Z_k \subseteq Z, such that Σ(Zi)=ti\Sigma(Z_i) = t_i, for i=1,,ki = 1, \ldots, k. Assuming t=max{t1,,tk}t = \max \{ t_1, \ldots, t_k \} is the maximum among the given targets, a standard dynamic programming approach based on Bellman's algorithm [Bell57] can solve the problem in O(ntk)O(n t^k) time. We build upon recent advances on Subset Sum due to Koiliaris and Xu [Koil19] and Bringmann [Brin17] in order to provide faster algorithms for kk-Subset Sum. We devise two algorithms: a deterministic one of time complexity O~(nk/(k+1)tk)\tilde{O}(n^{k / (k+1)} t^k) and a randomised one of O~(n+tk)\tilde{O}(n + t^k) complexity. Additionally, we show how these algorithms can be modified in order to incorporate cardinality constraints enforced on the solution subsets. We further demonstrate how these algorithms can be used in order to cope with variations of kk-Subset Sum, namely Subset Sum Ratio, kk-Subset Sum Ratio and Multiple Subset Sum.

Keywords

Cite

@article{arxiv.2112.04244,
  title  = {Faster Algorithms for $k$-Subset Sum and Variations},
  author = {Antonis Antonopoulos and Aris Pagourtzis and Stavros Petsalakis and Manolis Vasilakis},
  journal= {arXiv preprint arXiv:2112.04244},
  year   = {2022}
}

Comments

A preliminary version of this paper was presented at the 15th International Workshop on Frontiers in Algorithmics (FAW 2021)

R2 v1 2026-06-24T08:08:54.128Z