arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2508.04726cs.DScs.CC
收藏

近线性伪多项式时间与多项式空间下的子集和问题

Subset Sum in Near-Linear Pseudopolynomial Time and Polynomial Space

Thejas Radhika Sajith

AI总结:

针对子集和问题,提出近线性时间且多项式空间的随机算法,并给出多项式空间确定性算法,显著降低空间开销。

摘要:

给定一个由正整数构成的多重集 $A = \{a_1, \dots, a_n\}$ 和一个目标整数 $t$,子集和问题询问是否存在 $A$ 的一个子集,其元素之和等于 $t$。Bellman [1957] 的经典动态规划算法运行时间为 $O(nt)$,空间为 $O(t)$。此后,大量工作致力于同时降低时间和空间开销。值得注意的是,Bringmann [SODA 2017] 使用两步颜色编码技术,获得了一个运行时间为 $\tilde{O}(n+t)$、空间为 $\tilde{O}(t)$ 的随机算法。Jin、Vyas 和 Williams [SODA 2021] 在 Bringmann 给出的算法基础上,利用首次出现在 Kane 的 Logspace 算法中的巧妙代数技巧,获得了一个运行时间为 $\tilde{O}(nt)$、空间为 $\tilde{O}(\log(nt))$ 的随机算法。Abboud 等人 [SODA 2019] 基于 SETH 的下界表明,Bringmann 的算法很可能具有近乎最优的时间复杂度。我们在 Jin 等人所使用的技术基础上,获得了一个运行时间为 $\tilde{O}(n+t)$、空间为 $\tilde{O}(n^2 + n \log^2 t)$ 的随机算法,从而得到一个具有近乎最优运行时间且同时运行在多项式空间内的算法。我们使用基于多点求值的方法来加速他们算法中的一个瓶颈步骤。我们还提供了一个简单的多项式空间确定性算法,其运行时间为 $\tilde{O}(n^2t)$,空间为 $\tilde{O}(n \log^2 t)$。

英文摘要:

Given a multiset $A = \{a_1, \dots, a_n\}$ of positive integers and a target integer $t$, the Subset Sum problem asks if there is a subset of $A$ that sums to $t$. Bellman's [1957] classical dynamic programming algorithm runs in $O(nt)$ time and $O(t)$ space. Since then, much work has been done to reduce both the time and space usage. Notably, Bringmann [SODA 2017] uses a two-step color-coding technique to obtain a randomized algorithm that runs in $\tilde{O}(n+t)$ time and $\tilde{O}(t)$ space. Jin, Vyas and Williams [SODA 2021] build upon the algorithm given by Bringmann, using a clever algebraic trick first seen in Kane's Logspace algorithm, to obtain an $\tilde{O}(nt)$ time and $\tilde{O}(\log(nt))$ space randomized algorithm. A SETH-based lower-bound established by Abboud et al. [SODA 2019] shows that Bringmann's algorithm is likely to have near-optimal time complexity. We build on the techniques used by Jin et al. to obtain a randomized algorithm running in $\tilde{O}(n+t)$ time and $\tilde{O}(n^2 + n \log^2 t)$ space, resulting in an algorithm with near-optimal runtime that also runs in polynomial space. We use a multipoint evaluation-based approach to speed up a bottleneck step in their algorithm. We also provide a simple polynomial space deterministic algorithm that runs in $\tilde{O}(n^2t)$ time and $\tilde{O}(n \log^2 t)$ space.

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

↑