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

preprint2018arXivOpen access

Abstract

Given a multiset SS of nn positive integers and a target integer tt, the Subset Sum problem asks to determine whether there exists a subset of SS that sums up to tt. The current best deterministic algorithm, by Koiliaris and Xu [SODA'17], runs in O~(nt)\tilde O(\sqrt{n}t) time, where O~\tilde O hides poly-logarithm factors. Bringmann [SODA'17] later gave a randomized O~(n+t)\tilde O(n + t) time algorithm using two-stage color-coding. The O~(n+t)\tilde O(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 O~(n+t)\tilde O(n + t) time. Our new algorithm actually solves its counting version modulo prime p>tp>t, by manipulating generating functions using FFT.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.