首页 | 本学科首页   官方微博 | 高级检索  
     


Pattern Matching with Swaps
Authors:Amihood Amir   Yonatan Aumann   Gad M. Landau   Moshe Lewenstein  Noa Lewenstein  
Affiliation:Department of Mathematics and Computer Science, Bar-Ilan University, 52900, Ramat-Gan, Israelf1;b Georgia Tech, Atlanta, Georgia, 30332;Department of Mathematics and Computer Science, Bar-Ilan University, 52900, Ramat-Gan, Israel, f2;Department of Computer and Information Science, Polytechnic University, Six MetroTech Center, Brooklyn, New York, 11201-3840, , f3;e Department of Computer Science, Haifa University, Haifa, 31905, Israel;f Department of Mathematics and Computer Science, Bar-Ilan University, 52900, Ramat-Gan, Israel
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 ← tℓ + 1 and tℓ + 1 ← t), 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 with 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(nm) time. In this paper we show the first algorithm that solves the pattern matching with swaps problem in time o(nm). We present an algorithm whose time complexity is O(nm1/3 log m log σ) for a general alphabet Σ, where σ = min(m,midΣmid).
Keywords:design and analysis of algorithms   combinatorial algorithms on words   pattern matching   pattern matching with swaps   nonstandard pattern matching
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号