Parameterized matching with mismatches

被引:29
作者
Apostolico, Alberto [1 ,2 ]
Erdos, Peter L. [3 ]
Lewenstein, Moshe [4 ]
机构
[1] Purdue Univ, Dept Comp Sci, W Lafayette, IN 47907 USA
[2] Univ Padua, Dipartimento Ingn Informaz, Padua, Italy
[3] Hungarian Acad Sci, Renyi Inst Math, H-1364 Budapest, Hungary
[4] Bar Ilan Univ, Dept Comp Sci, IL-52900 Ramat Gan, Israel
关键词
Algorithms; String matching; Pattern matching; Parameterized matching; Pattern matching with mismatches;
D O I
10.1016/j.jda.2006.03.014
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
The problem of approximate parameterized string searching consists of finding, for a given text t = t(1)t(2)...t(n) and pattern p = p(1)p(2) ... p(m) over respective alphabets Sigma(t) and Sigma(p), the injection pi(i) from Sigma(p) to Sigma(t) maximizing the number of matches between pi(i)(p) and t(i)t(i+1) ... t(i+m-1) (i = 1, 2 ,..., n-m + 1). We examine the special case where both strings are run-length encoded, and further restrict to the case where one of the alphabets is binary. For this case, we give a construction working in time O(n + (r(p) x r(t)) alpha (r(t)) log(r(t))), where r(p) and r(t) denote the number of runs in the corresponding encodings for y and x, respectively, and alpha is the inverse of the Ackermann's function. (C) 2006 Elsevier B.V. All rights reserved.
引用
收藏
页码:135 / 140
页数:6
相关论文
共 7 条
[1]  
Apostolico A, 1997, PATTERN MATCHING ALG
[2]   Parameterized duplication in strings: Algorithms and an application to software maintenance [J].
Baker, BS .
SIAM JOURNAL ON COMPUTING, 1997, 26 (05) :1343-1362
[3]   Parameterized pattern matching: Algorithms and applications [J].
Baker, BS .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1996, 52 (01) :28-42
[4]   THE UPPER ENVELOPE OF PIECEWISE LINEAR FUNCTIONS - ALGORITHMS AND APPLICATIONS [J].
EDELSBRUNNER, H ;
GUIBAS, LJ ;
SHARIR, M .
DISCRETE & COMPUTATIONAL GEOMETRY, 1989, 4 (04) :311-336
[5]  
Fischer Michael J., 1974, COMPLEXITY COMPUTATI, V7, P113
[6]   FIBONACCI HEAPS AND THEIR USES IN IMPROVED NETWORK OPTIMIZATION ALGORITHMS [J].
FREDMAN, ML ;
TARJAN, RE .
JOURNAL OF THE ACM, 1987, 34 (03) :596-615
[7]   A decomposition theorem for maximum weight bipartite matchings [J].
Kao, MY ;
Lam, TW ;
Sung, WK ;
Ting, HF .
SIAM JOURNAL ON COMPUTING, 2001, 31 (01) :18-26