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

生成讲解博客的中文版本

生成AI智能校验的中文版本