On Problems Related to Unbounded SubsetSum: A Unified Combinatorial Approach
Abstract
Unbounded SubsetSum is a classical textbook problem: given integers , we need to find if there exists satisfying . In its all-target version, is given and answer for all integers is required. In this paper, we study three generalizations of this simple problem: All-Target Unbounded Knapsack, All-Target CoinChange and Residue Table. By new combinatorial insights into the structures of solutions, we present a novel two-phase approach for such problems. As a result, we present the first near-linear algorithms for CoinChange and Residue Table, which runs in and time deterministically. We also show if we can compute convolution for -length arrays in time, then All-Target Unbounded Knapsack can be solved in time, thus establishing sub-quadratic equivalence between All-Target Unbounded Knapsack and convolution.
Cite
@article{arxiv.2202.13484,
title = {On Problems Related to Unbounded SubsetSum: A Unified Combinatorial Approach},
author = {Mingyang Deng and Xiao Mao and Ziqian Zhong},
journal= {arXiv preprint arXiv:2202.13484},
year = {2022}
}