Modular Subset Sum, Dynamic Strings, and Zero-Sum Sets
Abstract
The modular subset sum problem consists of deciding, given a modulus , a multiset of integers in , and a target integer , whether there exists a subset of with elements summing to , and to report such a set if it exists. We give a simple -time with high probability (w.h.p.) algorithm for the modular subset sum problem. This builds on and improves on a previous w.h.p. algorithm from Axiotis, Backurs, Jin, Tzamos, and Wu (SODA 19). Our method utilizes the ADT of the dynamic strings structure of Gawrychowski et al. (SODA~18). However, as this structure is rather complicated we present a much simpler alternative which we call the Data Dependent Tree. As an application, we consider the computational version of a fundamental theorem in zero-sum Ramsey theory. The Erd\H{o}s-Ginzburg-Ziv Theorem states that a multiset of integers always contains a subset of cardinality exactly whose values sum to a multiple of . We give an algorithm for finding such a subset in time w.h.p. which improves on an algorithm due to Del Lungo, Marini, and Mori (Disc. Math. 09).
Cite
@article{arxiv.2008.08417,
title = {Modular Subset Sum, Dynamic Strings, and Zero-Sum Sets},
author = {Jean Cardinal and John Iacono},
journal= {arXiv preprint arXiv:2008.08417},
year = {2023}
}
Comments
Revised version of the original which appeared at the 2021 SIAM Symposium on Simplicity in Algorithms (SOSA21)