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 characters in constant time if the characters of are encoded using bits. The only solution for -mismatches in packed text works in time, for any . We present an algorithm that runs in time in the model if and 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 , for any . Based on the introduced technique, we present algorithms for several other approximate matching problems.
Cite
@article{arxiv.1211.5433,
title = {Approximate pattern matching with k-mismatches in packed text},
author = {Emanuele Giaquinta and Szymon Grabowski and Kimmo Fredriksson},
journal= {arXiv preprint arXiv:1211.5433},
year = {2013}
}
Comments
This paper is an extended version of the article that appeared in Information Processing Letters 113(19-21):693-697 (2013), http://dx.doi.org/10.1016/j.ipl.2013.07.002