arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1811.04300cs.DS
收藏

伪随机字符串之间编辑距离的有效近似

Efficiently Approximating Edit Distance Between Pseudorandom Strings

William Kuszmaul

摘要:

我们提出了一种算法,用于近似编辑距离$\operatorname{ed}(x, y)$之间的两个字符串$x$和$y$在时间参数化的程度,其中一个字符串$x$满足自然的伪随机属性。伪随机性模型是不对称的,因为对第二串$y$没有要求,第二串$y$可以由具有$x$的全部知识的对手构造。我们说$x$是\emph{$(p, B)$-pseudorandom},如果$x$的不相交的$B$ -字母子串的所有对$a$和$b$满足$\operatorname{ed}(a, b) \ge pB$。给定参数$p$和$B$,我们的算法计算一个$(p, B)$ -伪随机字符串$x$和一个任意字符串$y$之间的编辑距离在时间上的一个因子$O(1/p)$ $\tilde{O}(nB)$内,具有很高的概率。我们的算法是鲁棒的,因为它可以处理$x$的一小部分是对抗性的(即,不满足伪随机特性)。在这种情况下,该算法会产生与$x$的恶意行为部分成比例的附加近似误差。我们的伪随机模型的不对称性对于$x$是\emph{source string}的情况特别有吸引力,这意味着将为许多字符串$y$计算$\operatorname{ed}(x, y)$。假设希望对每个$\operatorname{ed}(x, y)$计算实现$O(α)$近似,并且$B$是最小块大小,对于该最小块大小,串$x$是$(1/α, B)$伪随机的。我们表明,事先不知道$B$,$x$可以在时间$\tilde{O}(n^{1.5}\sqrt{B})$预处理,使所有未来的计算形式$\operatorname{ed}(x, y)$可能是$O(α)$ -近似的时间$\tilde{O}(nB)$。此外,对于特殊的情况下,只有一个单一的$\operatorname{ed}(x, y)$计算将被执行,我们将展示如何实现一个$O(α)$ -近似时间$\tilde{O}(n^{4/3}B^{2/3})$。

英文摘要:

We present an algorithm for approximating the edit distance $\operatorname{ed}(x, y)$ between two strings $x$ and $y$ in time parameterized by the degree to which one of the strings $x$ satisfies a natural pseudorandomness property. The pseudorandomness model is asymmetric in that no requirements are placed on the second string $y$, which may be constructed by an adversary with full knowledge of $x$. We say that $x$ is \emph{$(p, B)$-pseudorandom} if all pairs $a$ and $b$ of disjoint $B$-letter substrings of $x$ satisfy $\operatorname{ed}(a, b) \ge pB$. Given parameters $p$ and $B$, our algorithm computes the edit distance between a $(p, B)$-pseudorandom string $x$ and an arbitrary string $y$ within a factor of $O(1/p)$ in time $\tilde{O}(nB)$, with high probability. Our algorithm is robust in the sense that it can handle a small portion of $x$ being adversarial (i.e., not satisfying the pseudorandomness property). In this case, the algorithm incurs an additive approximation error proportional to the fraction of $x$ which behaves maliciously. The asymmetry of our pseudorandomness model has particular appeal for the case where $x$ is a \emph{source string}, meaning that $\operatorname{ed}(x, y)$ will be computed for many strings $y$. Suppose that one wishes to achieve an $O(α)$-approximation for each $\operatorname{ed}(x, y)$ computation, and that $B$ is the smallest block-size for which the string $x$ is $(1/α, B)$-pseudorandom. We show that without knowing $B$ beforehand, $x$ may be preprocessed in time $\tilde{O}(n^{1.5}\sqrt{B})$, so that all future computations of the form $\operatorname{ed}(x, y)$ may be $O(α)$-approximated in time $\tilde{O}(nB)$. Furthermore, for the special case where only a single $\operatorname{ed}(x, y)$ computation will be performed, we show how to achieve an $O(α)$-approximation in time $\tilde{O}(n^{4/3}B^{2/3})$.

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

↑