和集、3SUM、子集和:现在面向实数!
Sumsets, 3SUM, Subset Sum: Now for Real!
AI总结:
本文提出融合 Prony 方法、互质因式分解与组合技巧的实数和集算法,在 real RAM 模型下复现整数情形中和集、几何模式匹配、3SUM 预处理及子集和的标志性运行时间。
摘要:
我们研究一大类具有“加性风味”的算法问题,例如计算和集、3SUM、子集和以及几何模式匹配。我们的出发点是:对于整数,这些问题通常可以被高效求解,这得益于丰富的可用工具集,包括位技巧、线性哈希和快速傅里叶变换。然而,对于实数,这些工具并不可用,从而导致整数输入与实数输入在最佳已知运行时间之间存在显著差距。在本文中,我们的目标是弥合这一差距。作为我们的关键贡献,我们设计了一种计算实数和集的新技术。它基于代数思想(如 Prony 方法和互质因式分解)与组合技巧的令人惊讶的融合。随后,我们将新算法应用于上述问题,并在所有情况下成功获得了面向实数输入的同样快速的算法。具体而言,我们在标准 real RAM 模型中通过随机化算法复现了以下里程碑式结果的运行时间:- 和集:给定两个集合 A、B,其和集 A+B={a+b:a∈A,b∈B} 可在 \ ilde O(|A+B|) 时间内计算 [Cole, Hariharan; STOC'02]。- 几何模式匹配:给定两个集合 A、B,我们可以在 \ ilde O(|A|+|B|) 时间内测试是否存在某个平移使得 A+s⊆B [Cardoze, Schulman; FOCS'98]。- 带预处理的 3SUM:我们可以在 \ ilde O(n^2) 时间内预处理三个大小为 n 的集合 A、B、C,从而在收到集合 A'⊆A、B'⊆B、C'⊆C 的查询后,在 \ ilde O(n^{13/7}) 时间内判定 3SUM 实例 (A',B',C') [Chan, Lewenstein; STOC'15]。- 输出敏感的子集和:给定一个大小为 n 的(多)集合 X 和目标 t,我们可以按输出敏感时间 \ ilde O(n+out^{4/3}) 计算子集和集合 {Σ(X'):X'⊆X,Σ(X')≤t} [Bringmann, Nakos; STOC'20]。
英文摘要:
We study a broad class of algorithmic problems with an "additive flavor" such as computing sumsets, 3SUM, Subset Sum and geometric pattern matching. Our starting point is that these problems can often be solved efficiently for integers, owed to the rich available tool set including bit-tricks, linear hashing, and the Fast Fourier Transform. However, for real numbers these tools are not available, leading to significant gaps in the best-known running times for integer inputs versus for real inputs. In this work our goal is to close this gap. As our key contribution we design a new technique for computing real sumsets. It is based on a surprising blend of algebraic ideas (like Prony's method and coprime factorizations) with combinatorial tricks. We then apply our new algorithm to the aforementioned problems and successfully obtain, in all cases, equally fast algorithms for real inputs. Specifically, we replicate the running times of the following landmark results by randomized algorithms in the standard real RAM model: - Sumsets: Given two sets $A,B$, their sumset $A+B=\{a+b:a\in A,b\in B\}$ can be computed in time $\tilde O(|A+B|)$ [Cole, Hariharan; STOC'02]. - Geometric pattern matching: Given two sets $A,B$, we can test whether there is some shift such that $A+s\subseteq B$ in time $\tilde O(|A|+|B|)$ [Cardoze, Schulman; FOCS'98]. - 3SUM with preprocessing: We can preprocess three size-$n$ sets $A,B,C$ in time $\tilde O(n^2)$ such that upon query of sets $A'\subseteq A,B'\subseteq B,C'\subseteq C$, the 3SUM instance $(A',B',C')$ can be decided in time $\tilde O(n^{13/7})$ [Chan, Lewenstein; STOC'15]. - Output-sensitive Subset Sum: Given a size-$n$ (multi-)set $X$ and a target $t$, we can compute the set of subset sums $\{Σ(X'):X'\subseteq X,Σ(X')\leq t\}$ in output-sensitive time $\tilde O(n+\mathrm{out}^{4/3})$ [Bringmann, Nakos; STOC'20].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。