arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1508.00731cs.DS
收藏

重新审视k失配问题

The k-mismatch problem revisited

Raphaël Clifford, Allyx Fontaine, Ely Porat, Benjamin Sach, Tatiana Starikovskaya

摘要:

我们重新审视模式匹配中最基本问题之一的复杂性。在k-不匹配问题中,我们必须计算长度为m的模式与长度为n的文本的每个m-长度子串之间的汉明距离,只要汉明距离不超过k。当汉明距离在图案和文本的某个对齐处大于k时,我们简单地输出“否”。我们研究这个问题,在标准的离线设置,也作为一个流问题。在流式k-mismatch问题中,文本一次到达一个符号,我们必须在处理任何未来符号之前给出输出。我们的主要结果如下:1)我们的第一个结果是一个确定性的$O(n k^2\log{k} / m+n \text{polylog} m)$时间离线算法的k-不匹配的长度为n的文本。这比Amihood Amir等人在SODA 2000中给出的最快的结果提高了k倍。2)然后我们给出了一个随机的在线算法,该算法在相同的时间复杂度下运行,但总共只需要$O(k^2\text{polylog} {m})$空间。3)接下来,我们给出了一个随机$(1+ε)$近似算法的流k-失配问题,它使用$O(k^2\text{polylog} m / ε^2)$空间和运行在$O(\text{polylog} m / ε^2)$最坏情况下的时间每个到达符号。4)最后,我们结合我们的新结果,推导出一个随机$O(k^2\text{polylog} {m})$空间算法的流k-不匹配的问题,运行在$O(\sqrt{k}\log{k} + \text{polylog} {m})$最坏情况下的时间,每个到达符号。这将Benny Porat和Ely Porat的FOCS 2009中用于流式传输k-失配的最佳先前空间复杂度提高了k倍。我们还提高了时间复杂度的这一先前的结果,甚至更大的因素,以匹配已知的最快的离线算法(对数因子)。

英文摘要:

We revisit the complexity of one of the most basic problems in pattern matching. In the k-mismatch problem we must compute the Hamming distance between a pattern of length m and every m-length substring of a text of length n, as long as that Hamming distance is at most k. Where the Hamming distance is greater than k at some alignment of the pattern and text, we simply output "No". We study this problem in both the standard offline setting and also as a streaming problem. In the streaming k-mismatch problem the text arrives one symbol at a time and we must give an output before processing any future symbols. Our main results are as follows: 1) Our first result is a deterministic $O(n k^2\log{k} / m+n \text{polylog} m)$ time offline algorithm for k-mismatch on a text of length n. This is a factor of k improvement over the fastest previous result of this form from SODA 2000 by Amihood Amir et al. 2) We then give a randomised and online algorithm which runs in the same time complexity but requires only $O(k^2\text{polylog} {m})$ space in total. 3) Next we give a randomised $(1+ε)$-approximation algorithm for the streaming k-mismatch problem which uses $O(k^2\text{polylog} m / ε^2)$ space and runs in $O(\text{polylog} m / ε^2)$ worst-case time per arriving symbol. 4) Finally we combine our new results to derive a randomised $O(k^2\text{polylog} {m})$ space algorithm for the streaming k-mismatch problem which runs in $O(\sqrt{k}\log{k} + \text{polylog} {m})$ worst-case time per arriving symbol. This improves the best previous space complexity for streaming k-mismatch from FOCS 2009 by Benny Porat and Ely Porat by a factor of k. We also improve the time complexity of this previous result by an even greater factor to match the fastest known offline algorithm (up to logarithmic factors).

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

↑