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

压缩文本中k-不匹配的近似模式匹配

Approximate pattern matching with k-mismatches in packed text

Emanuele Giaquinta, Szymon Grabowski, Kimmo Fredriksson

摘要:

给定长度为$m$的字符串$P$和长度为$n$的字符串$T$,在长度为$σ$的字母表上,字符串匹配与$k$ -不匹配问题是找到$T$中所有子串的位置,这些子串与$P$的汉明距离最多为$k$。如果$T$一次只能读取一个字符,则在字长为$w$的字RAM模型中,最知名的界限是$O(n\sqrt{k\log k})$和$O(n + n\sqrt{k/w}\log k)$。在RAM模型(包括$AC^0$和字RAM)中,如果使用$\ceil{\log σ}$位对$T$的字符进行编码,则可以在恒定时间内读取多达$\floor{w / \log σ}$的字符。唯一的解决方案$k$ -不匹配的包装文本工程在$O((n \logσ/\log n)\ceil{m \log (k + \log n / \logσ) / w} + n^{\varepsilon})$的时间,任何$\varepsilon > 0$。我们提出了一个算法,运行在时间$O(\frac{n}{\floor{w/(m\logσ)}} (1 + \log \min(k,σ) \log m / \logσ))$的$AC^0$模型,如果$m=O(w / \logσ)$和$T$是包装。我们还描述了一个更简单的变体,运行在时间$O(\frac{n}{\floor{w/(m\logσ)}}\log \min(m, \log w / \logσ))$的字RAM模型。该算法改进了现有的界为$w = Ω(\log^{1+ε}n)$,对任何$ε> 0$。基于所介绍的技术,我们提出了其他几个近似匹配问题的算法。

英文摘要:

Given strings $P$ of length $m$ and $T$ of length $n$ over an alphabet of size $σ$, the string matching with $k$-mismatches problem is to find the positions of all the substrings in $T$ that are at Hamming distance at most $k$ from $P$. If $T$ can be read only one character at the time the best known bounds are $O(n\sqrt{k\log k})$ and $O(n + n\sqrt{k/w}\log k)$ in the word-RAM model with word length $w$. In the RAM models (including $AC^0$ and word-RAM) it is possible to read up to $\floor{w / \log σ}$ characters in constant time if the characters of $T$ are encoded using $\ceil{\log σ}$ bits. The only solution for $k$-mismatches in packed text works in $O((n \logσ/\log n)\ceil{m \log (k + \log n / \logσ) / w} + n^{\varepsilon})$ time, for any $\varepsilon > 0$. We present an algorithm that runs in time $O(\frac{n}{\floor{w/(m\logσ)}} (1 + \log \min(k,σ) \log m / \logσ))$ in the $AC^0$ model if $m=O(w / \logσ)$ and $T$ is given packed. We also describe a simpler variant that runs in time $O(\frac{n}{\floor{w/(m\logσ)}}\log \min(m, \log w / \logσ))$ in the word-RAM model. The algorithms improve the existing bound for $w = Ω(\log^{1+ε}n)$, for any $ε> 0$. Based on the introduced technique, we present algorithms for several other approximate matching problems.

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

↑