arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.09096cs.DScs.DM
收藏

稠密子集和的近线性时间算法

On Near-Linear-Time Algorithms for Dense Subset Sum

Karl Bringmann, Philip Wellnitz

摘要:

在子集求和问题中,我们给出一组$n$正整数$X$和一个目标$t$,并询问$X$的某个子集是否与$t$求和。在文献中已经研究过的这个问题的自然参数是$n$和$t$以及最大输入数$\rm{mx}_X$和所有输入数之和$Σ_X$。本文研究了$n$中所有参数都是多项式的子集和的稠密情形。在这种情况下,标准伪多项式算法在多项式时间$n^{O(1)}$内求解子集和。我们的主要问题是:稠密子集和何时能在近似线性时间$\tilde{O}(n)$内求解?我们提供了一个基本上完整的二分法,通过设计改进的算法和证明条件下界,从而确定基本上所有的设置的参数$n,t,\rm{mx}_X,Σ_X$的密集子集和时间$\tilde{O}(n)$。为了标记方便,我们在不失一般性的情况下假设$t \ge \rm{mx}_X$(因为可以忽略较大的数字)和$t \le Σ_X/2$(使用对称性)。然后我们的二分法如下:-通过恢复和改进Galil和Margalit [SICOMP'91]的基于加法组合学的方法,我们证明了如果$t \gg \rm{mx}_X Σ_X/n^2$,则子集和在近线性时间$\tilde{O}(n)$中。- 我们证明了一个匹配的条件下界:如果子集和是在近线性时间的任何设置与$t \ll \rm{mx}_X Σ_X/n^2$,那么强指数时间假设和强k-和假设失败。我们还将我们的算法从集合推广到多集合,尽管具有不匹配的上界和下界。

英文摘要:

In the Subset Sum problem we are given a set of $n$ positive integers $X$ and a target $t$ and are asked whether some subset of $X$ sums to $t$. Natural parameters for this problem that have been studied in the literature are $n$ and $t$ as well as the maximum input number $\rm{mx}_X$ and the sum of all input numbers $Σ_X$. In this paper we study the dense case of Subset Sum, where all these parameters are polynomial in $n$. In this regime, standard pseudo-polynomial algorithms solve Subset Sum in polynomial time $n^{O(1)}$. Our main question is: When can dense Subset Sum be solved in near-linear time $\tilde{O}(n)$? We provide an essentially complete dichotomy by designing improved algorithms and proving conditional lower bounds, thereby determining essentially all settings of the parameters $n,t,\rm{mx}_X,Σ_X$ for which dense Subset Sum is in time $\tilde{O}(n)$. For notational convenience we assume without loss of generality that $t \ge \rm{mx}_X$ (as larger numbers can be ignored) and $t \le Σ_X/2$ (using symmetry). Then our dichotomy reads as follows: - By reviving and improving an additive-combinatorics-based approach by Galil and Margalit [SICOMP'91], we show that Subset Sum is in near-linear time $\tilde{O}(n)$ if $t \gg \rm{mx}_X Σ_X/n^2$. - We prove a matching conditional lower bound: If Subset Sum is in near-linear time for any setting with $t \ll \rm{mx}_X Σ_X/n^2$, then the Strong Exponential Time Hypothesis and the Strong k-Sum Hypothesis fail. We also generalize our algorithm from sets to multi-sets, albeit with non-matching upper and lower bounds.

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

↑