paper

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

arXiv:1807.11597 · doi:10.4230/OASIcs.SOSA.2019.17

Abstract

Given a multiset of positive integers and a target integer , the Subset Sum problem asks to determine whether there exists a subset of that sums up to . The current best deterministic algorithm, by Koiliaris and Xu [SODA'17], runs in time, where hides poly-logarithm factors. Bringmann [SODA'17] later gave a randomized time algorithm using two-stage color-coding. The running time is believed to be near-optimal. In this paper, we present a simple and elegant randomized algorithm for Subset Sum in time. Our new algorithm actually solves its counting version modulo prime , by manipulating generating functions using FFT.

To appear in SOSA 2019 (fixed some typos)