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

打破方差:在每次比对的$\tilde O(1/ε)$时间内近似汉明距离

Breaking the Variance: Approximating the Hamming Distance in $\tilde O(1/ε)$ Time Per Alignment

Tsvi Kopelowitz, Ely Porat

摘要:

计算长度为$m$的给定模式与长度为$n$的文本中的每个位置之间的汉明距离的算法任务是字符串算法中最基本的算法任务之一。不幸的是,有证据表明,对于大小为$n$的文本$T$和大小为$m$的模式$P$,人们不能计算在时间上小于$\tilde O(n\sqrt m)$的$T$中所有位置的精确汉明距离。然而,Karloff~ \cite{karloff}表明,如果一个人愿意遭受$1\pmε$近似,那么就有可能在$\tilde O(\frac n {ε^2})$时间内以高概率解决问题。由于在单向通信复杂度模型中计算两个字符串的汉明距离的相关下界,强烈认为获得用于求解近似版本的算法不能作为$\frac 1 ε$的函数更快地完成。我们在这里表明,这种信念是假的,通过引入一个新的$\tilde O(\frac{n}ε)$时间算法,成功的概率很高。我们的算法背后的主要思想,这是常见的稀疏恢复问题,是减少一个特定的随机化实验的方差(近似)分离重量级人物从非重量级人物。然而,虽然已知的稀疏恢复技术在向量上工作得很好,但它们似乎不适用于这里,这里我们处理的是字符对之间的失配。我们介绍两个主要的算法成分。第一种是一种新的稀疏恢复方法,适用于对输入(例如在我们的设置中)。第二个是一个新的哈希/投影函数的构造,它允许计算导致两个字符之间不匹配的投影的数量,其速度比蛮力更快。我们希望这些算法技术将是独立的利益。

英文摘要:

The algorithmic tasks of computing the Hamming distance between a given pattern of length $m$ and each location in a text of length $n$ is one of the most fundamental algorithmic tasks in string algorithms. Unfortunately, there is evidence that for a text $T$ of size $n$ and a pattern $P$ of size $m$, one cannot compute the exact Hamming distance for all locations in $T$ in time which is less than $\tilde O(n\sqrt m)$. However, Karloff~\cite{karloff} showed that if one is willing to suffer a $1\pmε$ approximation, then it is possible to solve the problem with high probability, in $\tilde O(\frac n {ε^2})$ time. Due to related lower bounds for computing the Hamming distance of two strings in the one-way communication complexity model, it is strongly believed that obtaining an algorithm for solving the approximation version cannot be done much faster as a function of $\frac 1 ε$. We show here that this belief is false by introducing a new $\tilde O(\frac{n}ε)$ time algorithm that succeeds with high probability. The main idea behind our algorithm, which is common in sparse recovery problems, is to reduce the variance of a specific randomized experiment by (approximately) separating heavy hitters from non-heavy hitters. However, while known sparse recovery techniques work very well on vectors, they do not seem to apply here, where we are dealing with mismatches between pairs of characters. We introduce two main algorithmic ingredients. The first is a new sparse recovery method that applies for pair inputs (such as in our setting). The second is a new construction of hash/projection functions, which allows to count the number of projections that induce mismatches between two characters exponentially faster than brute force. We expect that these algorithmic techniques will be of independent interest.

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

↑