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

具有真次线性处理时间的动态子集和

Dynamic Subset Sum with Truly Sublinear Processing Time

Hamed Saleh, Saeed Seddighin

摘要:

子集和问题是理论计算机科学中一个非常古老的基本问题。在这个问题中,$n$项目的权重$w_1, w_2, w_3, \ldots, w_n$作为输入,目标是找出是否有一个子集,他们的权重总和为一个给定的值$t$。该问题一般是NP难的,但当值为非负整数时,子集和可在伪多项式时间$~\widetilde O(n+t)$内求解。在这项工作中,我们考虑的动态变化的子集和。在该设置中,预先向算法提供上限$\tmax$,并且在每个操作中,或者向问题添加新项,或者对于给定的整数值$t \leq \tmax$,要求算法输出是否存在权重之和等于$t$的项的子集。不幸的是,没有一个现有的子集和算法能够处理这些操作在真正的次线性时间\footnote{Truly sublinear means $n^{1-Ω(1)}$.}方面的$\tmax$。我们的主要贡献是一个算法的摊销处理时间\footnote{Since the runtimes are amortized, we do not use separate terms update time and query time for different operations and use processing time for all types of operations.}为每个操作是真正的次线性$\tmax$时,操作的数量至少是$\tmax^{2/3+Ω(1)}$。我们还表明,当两个元素添加和元素删除是允许的,有没有算法,可以处理每个操作的时间$\tmax^{1-Ω(1)}$平均,除非\textsf{SETH} \footnote{The \textit{strong exponential time hypothesis} states that no algorithm can solve the satisfiability problem in time $2^{n(1-Ω(1))}$.}失败。

英文摘要:

Subset sum is a very old and fundamental problem in theoretical computer science. In this problem, $n$ items with weights $w_1, w_2, w_3, \ldots, w_n$ are given as input and the goal is to find out if there is a subset of them whose weights sum up to a given value $t$. While the problem is NP-hard in general, when the values are non-negative integer, subset sum can be solved in pseudo-polynomial time $~\widetilde O(n+t)$. In this work, we consider the dynamic variant of subset sum. In this setting, an upper bound $\tmax$ is provided in advance to the algorithm and in each operation, either a new item is added to the problem or for a given integer value $t \leq \tmax$, the algorithm is required to output whether there is a subset of items whose sum of weights is equal to $t$. Unfortunately, none of the existing subset sum algorithms is able to process these operations in truly sublinear time\footnote{Truly sublinear means $n^{1-Ω(1)}$.} in terms of $\tmax$. Our main contribution is an algorithm whose amortized processing time\footnote{Since the runtimes are amortized, we do not use separate terms update time and query time for different operations and use processing time for all types of operations.} for each operation is truly sublinear in $\tmax$ when the number of operations is at least $\tmax^{2/3+Ω(1)}$. We also show that when both element addition and element removal are allowed, there is no algorithm that can process each operation in time $\tmax^{1-Ω(1)}$ on average unless \textsf{SETH}\footnote{The \textit{strong exponential time hypothesis} states that no algorithm can solve the satisfiability problem in time $2^{n(1-Ω(1))}$.} fails.

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

↑