Back to Search Start Over

Efficient Bit-Parallel Algorithms for (δ,α)-Matching

Authors :
Szymon Grabowski
Kimmo Fredriksson
Source :
Experimental Algorithms ISBN: 9783540345978
Publication Year :
2006
Publisher :
Springer Berlin Heidelberg, 2006.

Abstract

We consider the following string matching problem. Pattern p0p1p2 ... pm−−1 (δ,α)-matches the text substring $t_{i_0} t_{i_1} t_{i_2} \ldots t_{i_{m-1}}$, if $|p_j-t_{i_j}|\leq\delta$ for j ∈ {0,..., m–1}, where 0 < ij+1 – ij ≤ α + 1. The task is then to find all text positions im−−1 that (δ,α)-match the pattern. For a text of length n, the best previously known algorithms for this string matching problem run in time O(nm) and in time O(n⌈mα/w⌉), where the former is based on dynamic programming, and the latter on bit-parallelism with w bits in computer word (32 or 64 typically). We improve these to take O(nδ+⌈n/w⌉m) and O(n ⌈m log(α)/w⌉), respectively, worst case time using bit-parallelism. On average the algorithms run in O(⌈n/w⌉⌈αδ/σ⌉+n)and O(n) time. Our experimental results show that the algorithms work extremely well in practice. Our algorithms handle general gaps as well, having important applications in computational biology.

Details

ISBN :
978-3-540-34597-8
ISBNs :
9783540345978
Database :
OpenAIRE
Journal :
Experimental Algorithms ISBN: 9783540345978
Accession number :
edsair.doi...........a77558cece48c1d0cb5050079943326d
Full Text :
https://doi.org/10.1007/11764298_15