Fast and Simple Modular Subset Sum
Kyriakos Axiotis, Arturs Backurs, Karl Bringmann, Ce Jin, Vasileios, Nakos, Christos Tzamos, Hongxun Wu

TL;DR
This paper introduces two simple, efficient algorithms for the Modular Subset Sum problem, achieving near-linear time complexity using elementary data structures, and also applies these techniques to improve algorithms for the All Pairs Non-Decreasing Paths problem.
Contribution
The paper presents the first simple near-linear time algorithms for Modular Subset Sum, one randomized and one deterministic, using elementary data structures and techniques.
Findings
Randomized algorithm runs in O(m log^2 m) time.
Deterministic algorithm runs in O(m polylog m) time.
Techniques extend to algorithms for the All Pairs Non-Decreasing Paths problem.
Abstract
We revisit the Subset Sum problem over the finite cyclic group for some given integer . A series of recent works has provided near-optimal algorithms for this problem under the Strong Exponential Time Hypothesis. Koiliaris and Xu (SODA'17, TALG'19) gave a deterministic algorithm running in time , which was later improved to randomized time by Axiotis et al. (SODA'19). In this work, we present two simple algorithms for the Modular Subset Sum problem running in near-linear time in , both efficiently implementing Bellman's iteration over . The first one is a randomized algorithm running in time , that is based solely on rolling hash and an elementary data-structure for prefix sums; to illustrate its simplicity we provide a short and efficient implementation of the algorithm in Python. Our second…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Complexity and Algorithms in Graphs · Cryptography and Data Security
