Title :
Pattern matching with swaps
Author :
Amir, Amihood ; Aumann, Yonatan ; Landau, Gad M. ; Lewenstein, Moshe ; Lewenstein, Noa
Author_Institution :
Georgia Tech. Res. Inst., Atlanta, GA, USA
Abstract :
Let a text string T of n symbols and a pattern string P of m symbols from alphabet Σ be given. A swapped version T´ of T is a length n string derived from T by a series of local swaps, (i.e. t´ l←tl+1 and t´l+1←tl) where each element can participate in no more than one swap. The Pattern Matching with Swaps problem is that of finding all locations i for which there exists a swapped version T´ of T where there is an exact matching of P in location i of T´. It has been an open problem whether swapped matching can be done in less than O(mn) time. In this paper we show the first algorithm that solves the pattern matching with swaps problem in time O(mn). We present an algorithm whose time complexity is O(nm1/3 log m log2 σ) for a general alphabet Σ, where σ=min(m, |Σ|)
Keywords :
computational complexity; pattern matching; string matching; O(mn) time; pattern matching; swapped matching; text string; time complexity; Art; Computer science; DNA; Discrete Fourier transforms; Dynamic programming; Heuristic algorithms; Mathematics; Pattern matching; Software libraries; Tellurium;
Conference_Titel :
Foundations of Computer Science, 1997. Proceedings., 38th Annual Symposium on
Conference_Location :
Miami Beach, FL
Print_ISBN :
0-8186-8197-7
DOI :
10.1109/SFCS.1997.646103