Approximate pattern matching with k-mismatches in packed text
Abstract: 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 $\floor{w / \log \sigma}$ characters in constant time if the characters of are encoded using $\ceil{\log \sigma}$ 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<sup>{\varepsilon})$ time, for any $\varepsilon > 0$. We present an algorithm that runs in time $O(\frac{n}{\floor{w/(m\log\sigma)}} (1 + \log \min(k,\sigma) \log m / \log\sigma))$ in the model if and is given packed. We also describe a simpler variant that runs in time $O(\frac{n}{\floor{w/(m\log\sigma)}}\log \min(m, \log w / \log\sigma))$ in the word-RAM model. The algorithms improve the existing bound for , for any $\epsilon > 0$. Based on the introduced technique, we present algorithms for several other approximate matching problems.
Paper Prompts
Sign up for free to create and run prompts on this paper.