颜色距离预言机与片段问题:精确解与近似解的分离
Color Distance Oracles and Snippets: Separation Between Exact and Approximate Solutions
AI总结:
针对片段问题与颜色距离预言机(CDO)问题,提出$(1+\text{ε})$近似版本的条件最优算法,证明精确CDO严格难于近似CDO,且现有精确CDO算法在强APSP假设下本质最优。
摘要:
在片段问题中,目标是预处理文本$T$,使得给定两个模式$P_1$和$P_2$时,能够定位$T$中两个模式最接近的出现位置,或报告它们的距离。Kopelowitz和Krauthgamer[CPM2016]通过利用片段问题与颜色距离预言机(CDO)构造问题之间的联系,展示了片段问题的上界权衡和条件下界权衡;颜色距离预言机是一种预处理带关联颜色点集的数据结构,可快速查找给定两种颜色$c$和$c'$对应点对的最近距离。然而,现有上界和下界曲线并不紧致。受Kopelowitz和Vassilevska-Williams[ICALP2020]在集合不交数据结构方面最新进展的启发,我们通过应用快速矩阵乘法,为片段问题和CDO问题的$(1+\boldsymbol{\text{ε}})$近似版本引入了新的条件最优算法。例如,对于数组中$n$个点的CDO,假设$\boldsymbol{\text{ω}}=2$(其中$\boldsymbol{\text{ω}}$是两个$n\times n$方阵最快矩阵乘法算法运行时间中$n$的指数),我们证明近似CDO可通过以下权衡解决:当$0 \boldsymbol{\text{≤}} b \boldsymbol{\text{≤}} \frac{1}{3}$时,$a + 2b = 2$;当$\frac{1}{3} \boldsymbol{\text{≤}} b \boldsymbol{\text{≤}} 1$时,$2a + b = 3$。此外,我们证明,假设随机算法的强APSP假设成立,Kopelowitz和Krauthgamer[CPM2016]针对数组中点的精确CDO算法本质上是最优的。因此,CDO的精确版本严格难于近似版本。
英文摘要:
In the snippets problem, the goal is to preprocess text $T$ so that given two patterns $P_1$ and $P_2$, one can locate the occurrences of the two patterns in $T$ that are closest to each other, or report their distance. Kopelowitz and Krauthgamer [CPM2016] showed upper bound tradeoffs and conditional lower bounds tradeoffs for the snippets problem, by utilizing connections between the snippets problem and the problem of constructing a color distance oracle (CDO), which is a data structure that preprocess a set of points with associated colors so that given two colors $c$ and $c'$ one can quickly find the (distance between the) closest pair of points with colors $c$ and $c'$. However, the existing upper bound and lower bound curves are not tight. Inspired by recent advances by Kopelowitz and Vassilevska-Williams [ICALP2020] regarding Set-disjointness data structures, we introduce new conditionally optimal algorithms for $(1+\varepsilon)$ approximation versions of the snippets problem and the CDO problem, by applying fast matrix multiplication. For example, for CDO on $n$ points in an array with preprocessing time $\tilde{O}(n^a)$ and query time $\tilde{O}(n^b)$, assuming that $ω=2$ (where $ω$ is the exponent of $n$ in the runtime of the fastest matrix multiplication algorithm on two squared matrices of size $n\times n$), we show that approximate CDO can be solved with the following tradeoff $$ a + 2b = 2 \text{ if } 0 \leq b \leq \frac1 3$$ $$ 2a + b = 3 \text{ if } \frac13\leq b \leq 1.$$ Moreover, we prove that for exact CDO on points in an array, the algorithm of Kopelowitz and Krauthgamer [CPM2016], is essentially optimal assuming that the strong APSP hypothesis holds for randomized algorithms. Thus, the exact version of CDO is strictly harder than the approximate version.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。