DocumentCode
3328248
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
fYear
1997
fDate
20-22 Oct 1997
Firstpage
144
Lastpage
153
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;
fLanguage
English
Publisher
ieee
Conference_Titel
Foundations of Computer Science, 1997. Proceedings., 38th Annual Symposium on
Conference_Location
Miami Beach, FL
ISSN
0272-5428
Print_ISBN
0-8186-8197-7
Type
conf
DOI
10.1109/SFCS.1997.646103
Filename
646103
Link To Document