Pattern matching with swaps for short patterns in linear time

15Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The Pattern Matching problem with Swaps consists in finding all occurrences of a pattern P in a text T, when disjoint local swaps in the pattern are allowed. In the Approximate Pattern Matching problem with Swaps one seeks, for every text location with a swapped match of P, the number of swaps necessary to obtain a match at the location. In this paper, we present a new approach for solving both the Swap Matching problem and the Approximate Swap Matching problem in linear time, in the case of short patterns. In particular, we devise a O(nm) general algorithm, named Cross-Sampling, and show an efficient implementation of it, based on bit-parallelism, which achieves O(n) worst-case time and O(s)-space complexity, with patterns whose length is comparable to the word-size of the target machine. © Springer-Verlag Berlin Heidelberg 2009.

Cite

CITATION STYLE

APA

Cantone, D., & Faro, S. (2009). Pattern matching with swaps for short patterns in linear time. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 5404 LNCS, pp. 255–266). https://doi.org/10.1007/978-3-540-95891-8_25

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free