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

简化子集求和

Subset Sum Made Simple

Konstantinos Koiliaris, Chao Xu

摘要:

子集求和是一个经典的优化问题,作为NP难问题的一个例子教授给大学生,这是服从动态规划,产生多项式运行时间,如果输入数相对较小。形式上,给定$n$正整数的集合$S$和目标整数$t$,子集和问题是判定是否存在$S$的子集,其总和为$t$。动态规划产生一个具有运行时间$O(nt)$的算法。最近,作者[SODA '17]将运行时间改进为$\tilde{O}\bigl(\sqrt{n}t\bigr)$,并通过Bringmann [SODA '17]的一种稍微涉及的随机算法将其进一步改进为$\tilde{O}\bigl(n+t\bigr)$,其中$\tilde{O}$隐藏了多对数因子。在这里,我们提出了一个新的和显着更简单的算法与运行时间$\tilde{O}\bigl(\sqrt{n}t\bigr)$。虽然不是最快的,但我们相信新算法和分析足够简单,可以在算法类中提出,作为分治算法的一个引人注目的例子,该算法使用FFT来解决一个似乎(起初)无关的问题。特别是,算法及其分析可以在两页中详细描述(见第3-5页)。

英文摘要:

Subset Sum is a classical optimization problem taught to undergraduates as an example of an NP-hard problem, which is amenable to dynamic programming, yielding polynomial running time if the input numbers are relatively small. Formally, given a set $S$ of $n$ positive integers and a target integer $t$, the Subset Sum problem is to decide if there is a subset of $S$ that sums up to $t$. Dynamic programming yields an algorithm with running time $O(nt)$. Recently, the authors [SODA '17] improved the running time to $\tilde{O}\bigl(\sqrt{n}t\bigr)$, and it was further improved to $\tilde{O}\bigl(n+t\bigr)$ by a somewhat involved randomized algorithm by Bringmann [SODA '17], where $\tilde{O}$ hides polylogarithmic factors. Here, we present a new and significantly simpler algorithm with running time $\tilde{O}\bigl(\sqrt{n}t\bigr)$. While not the fastest, we believe the new algorithm and analysis are simple enough to be presented in an algorithms class, as a striking example of a divide-and-conquer algorithm that uses FFT to a problem that seems (at first) unrelated. In particular, the algorithm and its analysis can be described in full detail in two pages (see pages 3-5).

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

↑