Faster Deterministic Modular Subset Sum

12/11/2020
by   Krzysztof Potępa, et al.
0

We consider the Modular Subset Sum problem: given a multiset X of integers from ℤ_m and a target integer t, decide if there exists a subset of X with a sum equal to t m. Recent independent works by Cardinal and Iacono (SOSA'21), and Axiotis et al. (SOSA'21) provided simple and near-linear algorithms for this problem. Cardinal and Iacono gave a randomized algorithm that runs in O(m log m) time, while Axiotis et al. gave a deterministic algorithm that runs in O(m polylog m) time. Both results work by reduction to a text problem, which is solved using a dynamic strings data structure. In this work, we develop a simple data structure, designed specifically to handle the text problem that arises in the algorithms for Modular Subset Sum. Our data structure, which we call the shift-tree, is a simple variant of a segment tree. We provide both a hashing-based and a deterministic variant of the shift-trees. We then apply our data structure to the Modular Subset Sum problem and obtain two algorithms. The first algorithm is randomized and matches the O(m log m) runtime of the algorithm by Cardinal and Iacono. The second algorithm is fully deterministic and runs in O(m log m ·α(m)) time, where α is the inverse Ackermann function.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/19/2020

Modular Subset Sum, Dynamic Strings, and Zero-Sum Sets

The modular subset sum problem consists of deciding, given a modulus m, ...
research
08/24/2020

Fast and Simple Modular Subset Sum

We revisit the Subset Sum problem over the finite cyclic group ℤ_m for s...
research
07/12/2018

Fast Modular Subset Sum using Linear Sketching

Given n positive integers, the Modular Subset Sum problem asks if a subs...
research
05/31/2021

Multidimensional Included and Excluded Sums

This paper presents algorithms for the included-sums and excluded-sums p...
research
10/15/2018

An Illuminating Algorithm for the Light Bulb Problem

The Light Bulb Problem is one of the most basic problems in data analysi...
research
07/30/2018

A Simple Near-Linear Pseudopolynomial Time Randomized Algorithm for Subset Sum

Given a multiset of n positive integers and a target integer t, the Subs...
research
02/21/2020

Chronofold: a data structure for versioned text

Collaborative text editing and versioning is known to be a tough topic. ...

Please sign up or login with your details

Forgot password? Click here to reset