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

07/30/2018
by   Ce Jin, et al.
0

Given a multiset of n positive integers and a target integer t, the Subset Sum problem asks to determine whether there exists a subset of S that sums up to t. The current best deterministic algorithm, by Koiliaris and Xu, runs in Õ(√(n)t) time, where Õ hides poly-logarithm factors. Bringmann later gave a randomized Õ(n + t) time algorithm using two-stage color-coding. The Õ(n+t) running time is believed to be near-optimal. In this paper, we present a simple and elegant randomized algorithm for Subset Sum in Õ(n + t) time. The algorithm actually solves its counting version modulo prime p>t, by manipulating generating functions using FFT. Our algorithm and its analysis can be described in two pages.

READ FULL TEXT
research
12/21/2021

Efficient reductions and algorithms for variants of Subset Sum

Given (a_1, …, a_n, t) ∈ℤ_≥ 0^n + 1, the Subset Sum problem (𝖲𝖲𝖴𝖬) is to...
research
07/28/2021

Top-k-Convolution and the Quest for Near-Linear Output-Sensitive Subset Sum

In the classical Subset Sum problem we are given a set X and a target t,...
research
07/22/2018

Subset Sum Made Simple

Subset Sum is a classical optimization problem taught to undergraduates ...
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
12/11/2020

Faster Deterministic Modular Subset Sum

We consider the Modular Subset Sum problem: given a multiset X of intege...
research
07/15/2021

Deterministic and Las Vegas Algorithms for Sparse Nonnegative Convolution

Computing the convolution A⋆ B of two length-n integer vectors A,B is a ...
research
10/01/2021

Fast and Exact Convex Hull Simplification

Given a point set P in the plane, we seek a subset Q⊆ P, whose convex hu...

Please sign up or login with your details

Forgot password? Click here to reset