Affiliation:
1. Università di Catania, Scuola Superiore di Catania, Via San Nullo 5/i, I-95123 Catania, Italy
2. Dipartimento di Matematica e Informatica, Universitàdi Catania, Viale A.Doria n. 6, I-95125 Catania, Italy
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 devise two general algorithms for both Standard and Approximate Pattern Matching with Swaps, named CROSS-SAMPLING and BACKWARD-CROSS-SAMPLING, with a [Formula: see text] and [Formula: see text] worst-case time complexity, respectively. Then we provide efficient implementations of them, based on bit-parallelism, which achieve [Formula: see text] and [Formula: see text] worst-case time complexity, with patterns whose length is comparable to the word-size of the target machine. From an extensive comparison with some of the most effective algorithms for the swap matching problem, it turns out that our algorithms are very flexible and achieve very good results inpractice.
Publisher
World Scientific Pub Co Pte Lt
Subject
Computer Science (miscellaneous)
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献