arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1507.02318cs.DS
收藏

子集和的伪多项式时间快速算法

A Faster Pseudopolynomial Time Algorithm for Subset Sum

Konstantinos Koiliaris, Chao Xu

摘要:

给定一个正整数集合$n$和一个目标整数$t$,子集和问题是判断是否存在一个和为$t$的$S$子集.我们提出了一个新的分治算法,计算所有可实现的子集和$\widetilde{O}\!\left(\min\{\sqrt{n}u,u^{4/3},σ\}\right)$中的整数$u$,其中$σ$是$S$中所有元素的总和和$\widetilde{O}$隐藏多对数因子。该结果改进了在$O(nu)$时间内运行的标准动态规划算法。据我们所知,新算法是最快的一般算法为这个问题。我们还提出了一个改进的算法,它计算所有的可实现的子集和内的循环群在$\widetilde{O}\!\left(\min\{\sqrt{n}m,m^{5/4}\}\right)$时间,其中$m$是组的顺序。

英文摘要:

Given a multiset $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$. We present a new divide-and-conquer algorithm that computes all the realizable subset sums up to an integer $u$ in $\widetilde{O}\!\left(\min\{\sqrt{n}u,u^{4/3},σ\}\right)$, where $σ$ is the sum of all elements in $S$ and $\widetilde{O}$ hides polylogarithmic factors. This result improves upon the standard dynamic programming algorithm that runs in $O(nu)$ time. To the best of our knowledge, the new algorithm is the fastest general algorithm for this problem. We also present a modified algorithm for cyclic groups, which computes all the realizable subset sums within the group in $\widetilde{O}\!\left(\min\{\sqrt{n}m,m^{5/4}\}\right)$ time, where $m$ is the order of the group.

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

↑