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

具有$k$失配的模式匹配的最优折衷

Optimal trade-offs for pattern matching with $k$ mismatches

Paweł Gawrychowski, Przemysław Uznański

摘要:

给定长度为$m$的模式和长度为$n$的文本,$k$失配模式匹配的目标是为文本的每个$m$子串计算到模式的精确汉明距离,或者报告它超过$k$。这可以在Amir等人[J. Algorithms 2004]所示的$\widetilde{O}(n \sqrt{k})$时间或Clifford等人[SODA 2016]的结果导致的$\widetilde{O}((m + k^2) \cdot n/m)$时间中求解。我们提供了一个平滑的时间权衡这两个界限,通过设计一个算法的工作时间$\widetilde{O}( (m + k \sqrt{m}) \cdot n/m)$。我们补充这一匹配的条件下界,表明一个显着更快的组合算法是不可能的,除非组合矩阵乘法猜想失败。

英文摘要:

Given a pattern of length $m$ and a text of length $n$, the goal in $k$-mismatch pattern matching is to compute, for every $m$-substring of the text, the exact Hamming distance to the pattern or report that it exceeds $k$. This can be solved in either $\widetilde{O}(n \sqrt{k})$ time as shown by Amir et al. [J. Algorithms 2004] or $\widetilde{O}((m + k^2) \cdot n/m)$ time due to a result of Clifford et al. [SODA 2016]. We provide a smooth time trade-off between these two bounds by designing an algorithm working in time $\widetilde{O}( (m + k \sqrt{m}) \cdot n/m)$. We complement this with a matching conditional lower bound, showing that a significantly faster combinatorial algorithm is not possible, unless the combinatorial matrix multiplication conjecture fails.

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

↑