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

预处理全域中的3SUM:更快且更简单

3SUM in Preprocessed Universes: Faster and Simpler

IIT Delhi(印度理工学院德里分校);Bocconi University(博科尼大学)

Shashwat Kasliwal, Adam Polak, Pratyush Sharma

AI总结:

针对预处理全域3SUM,论文提出仅用FFT与模素数线性哈希的O(n^{1.5} log n)查询算法,支持逐元素判定、C未知预处理,并可确定性化。

摘要:

我们重新审视了预处理全域设置下的3SUM问题。我们提出一种算法:给定三个各含n个整数的集合A、B、C,该算法以二次时间对其进行预处理,从而在给定任意子集A'⊆A、B'⊆B、C'⊆C时,能够在O(n^{1.5} log n)时间内判定是否存在a∈A'、b∈B'、c∈C'满足a+b=c。与Chan和Lewenstein(STOC 2015)提出的首个次二次\ ilde{O}(n^{13/7})时间算法,以及Chan、Vassilevska Williams和Xu(STOC 2023)提出的当前最快\ ilde{O}(n^{11/6})时间算法不同,这两种算法均基于加性组合学中的Balog–Szemerédi–Gowers定理,而我们的算法仅使用与3SUM相关的标准技术,即FFT和模素数线性哈希。因此,它不仅更快,而且更简单。与前两种算法一样,我们的算法不仅判定是否存在单个3SUM解,还实际为每个c∈C'确定是否存在包含它的解。我们还修改了算法,使其在预处理时集合C未知的情形下仍能工作。最后,尽管我们算法的最简单版本是随机化的,但我们展示了如何将其去随机化,而运行时间仅损失多对数因子。

英文摘要:

We revisit the 3SUM problem in the \emph{preprocessed universes} setting. We present an algorithm that, given three sets $A$, $B$, $C$ of $n$ integers, preprocesses them in quadratic time, so that given any subsets $A' \subseteq A$, $B' \subseteq B$, $C' \subseteq C$, it can decide if there exist $a \in A'$, $b \in B'$, $c \in C'$ with $a+b=c$ in time $O(n^{1.5} \log n)$. In contrast to both the first subquadratic $\tilde{O}(n^{13/7})$-time algorithm by Chan and Lewenstein (STOC 2015) and the current fastest $\tilde{O}(n^{11/6})$-time algorithm by Chan, Vassilevska Williams, and Xu (STOC 2023), which are based on the Balog--Szemerédi--Gowers theorem from additive combinatorics, our algorithm uses only standard 3SUM-related techniques, namely FFT and linear hashing modulo a prime. It is therefore not only faster but also simpler. Just as the two previous algorithms, ours not only decides if there is a single 3SUM solution but it actually determines for each $c \in C'$ if there is a solution containing it. We also modify the algorithm to still work in the scenario where the set $C$ is unknown at the time of preprocessing. Finally, even though the simplest version of our algorithm is randomized, we show how to make it deterministic losing only polylogarithmic factors in the running time.

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

↑