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

汉明距离预言机

Hamming Distance Oracle

Itai Boneh, Dvir Fried, Shay Golan, Matan Kraus

AI总结:

本文研究汉明距离预言机问题,针对两字符串子串间的汉明距离查询,给出了常数字母表下预处理时间与查询时间的权衡数据结构及组合条件匹配下界,并推广到一般字母表情形。

摘要:

本文提出并研究了汉明距离预言机问题。该问题的任务是对长度分别为 n 和 m 的两个字符串 S 和 T 进行预处理,得到一个数据结构,使其能够回答关于 S 的一个子串与 T 的一个子串之间汉明距离的查询。对于字母表大小为常数的字符串,我们证明对于每个 x ≤ nm,存在一个预处理时间为 Õ(nm/x)、查询时间为 O(x) 的数据结构。我们还提供了一个组合条件下的下界,证明对于每个 ε > 0 和 x ≤ nm,除非组合快速矩阵乘法是可能的,否则不存在查询时间为 O(x) 且预处理时间为 O((nm/x)^{1-ε}) 的数据结构。对于一般字母表上的字符串,我们提出了一个数据结构,对于每个 x ≤ nm,其预处理时间为 Õ(nm/√x),查询时间为 O(x)。

英文摘要:

In this paper, we present and study the \emph{Hamming distance oracle problem}. In this problem, the task is to preprocess two strings $S$ and $T$ of lengths $n$ and $m$, respectively, to obtain a data-structure that is able to answer queries regarding the Hamming distance between a substring of $S$ and a substring of $T$. For a constant size alphabet strings, we show that for every $x\le nm$ there is a data structure with $\tilde{O}(nm/x)$ preprocess time and $O(x)$ query time. We also provide a combinatorial conditional lower bound, showing that for every $\varepsilon > 0$ and $x \le nm$ there is no data structure with query time $O(x)$ and preprocess time $O((\frac{nm}{x})^{1-\varepsilon})$ unless combinatorial fast matrix multiplication is possible. For strings over general alphabet, we present a data structure with $\tilde{O}(nm/\sqrt{x})$ preprocess time and $O(x)$ query time for every $x \le nm$.

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

↑