arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1610.04712cs.DS
收藏

子集和的一个准线性伪多项式时间算法

A Near-Linear Pseudopolynomial Time Algorithm for Subset Sum

Karl Bringmann

摘要:

给定一个$n$正整数的集合$Z$和一个目标值$t$,子集求和问题询问是否有任何$Z$的子集和$t$。Bellman在1957年提出的一个教科书伪多项式时间算法在时间$O(nt)$中求解子集和。这已经由Pisinger [J. Algorithms'99]改进为$O(n \max Z)$,最近由Koiliaris和Xu [SODA'17]改进为$\tilde O(\sqrt{n} t)$。在这里,我们提出了一个简单的随机算法运行的时间$\tilde O(n+t)$。这改进了经典算法,并且可能接近最优,因为它匹配Set Cover和k-Clique的条件下界。然后,我们使用我们的新算法和额外的技巧,以提高最知名的多项式空间解决方案从时间$\tilde O(n^3 t)$和空间$\tilde O(n^2)$时间$\tilde O(nt)$和空间$\tilde O(n \log t)$,假设扩展黎曼假设。无条件地,我们得到了时间$\tilde O(n t^{1+\varepsilon})$和空间$\tilde O(n t^\varepsilon)$的任何常数$\varepsilon > 0$。

英文摘要:

Given a set $Z$ of $n$ positive integers and a target value $t$, the Subset Sum problem asks whether any subset of $Z$ sums to $t$. A textbook pseudopolynomial time algorithm by Bellman from 1957 solves Subset Sum in time $O(nt)$. This has been improved to $O(n \max Z)$ by Pisinger [J. Algorithms'99] and recently to $\tilde O(\sqrt{n} t)$ by Koiliaris and Xu [SODA'17]. Here we present a simple randomized algorithm running in time $\tilde O(n+t)$. This improves upon a classic algorithm and is likely to be near-optimal, since it matches conditional lower bounds from Set Cover and k-Clique. We then use our new algorithm and additional tricks to improve the best known polynomial space solution from time $\tilde O(n^3 t)$ and space $\tilde O(n^2)$ to time $\tilde O(nt)$ and space $\tilde O(n \log t)$, assuming the Extended Riemann Hypothesis. Unconditionally, we obtain time $\tilde O(n t^{1+\varepsilon})$ and space $\tilde O(n t^\varepsilon)$ for any constant $\varepsilon > 0$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑