Parameterized searching with mismatches for run-length encoded strings

被引:5
作者
Apostolico, Alberto [3 ,4 ]
Erdos, Peter L. [1 ]
Juettner, Alpar [2 ]
机构
[1] Hungarian Acad Sci, A Renyi Inst Math, H-1364 Budapest, Hungary
[2] Eotvos Univ Sci, Dept Operat Res, H-1117 Budapest, Hungary
[3] Georgia Inst Technol, Coll Comp, Atlanta, GA 30318 USA
[4] Univ Padua, Dipartimento Ingn Informaz, I-35131 Padua, Italy
关键词
String searching; Parameterized matching; Bipartite graphs; Parametric graph matching; ALGORITHMS;
D O I
10.1016/j.tcs.2012.03.018
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Parameterized matching between two strings occurs when it is possible to reduce the first one to the second by a renaming of the alphabet symbols. We present an algorithm for searching for parameterized occurrences of a patten in a textstring when both are given in run-length encoded form. The proposed method extends to alphabets of arbitrary yet constant size with O (vertical bar r(p)vertical bar x vertical bar r(t)vertical bar) time bounds, previously achieved only with binary alphabets. Here r(p) and r(t) denote the number of runs in the corresponding encodings for p and t. For general alphabets, the time bound obtained by the present method exhibits a polynomial dependency on the alphabet size. Such a performance is better than applying convolution to the cleartext, but leaves the problem still open of designing an alphabet independent O (vertical bar r(p)vertical bar x vertical bar r(t)vertical bar) time algorithm for this problem. (C) 2012 Elsevier B.V. All rights reserved.
引用
收藏
页码:23 / 29
页数:7
相关论文
共 8 条
[1]  
Ahuja R., 1993, NETWORK FLOWS THEORY
[2]   ALPHABET DEPENDENCE IN PARAMETERIZED MATCHING [J].
AMIR, A ;
FARACH, M ;
MUTHUKRISHNAN, S .
INFORMATION PROCESSING LETTERS, 1994, 49 (03) :111-115
[3]   Parameterized matching with mismatches [J].
Apostolico, Alberto ;
Erdos, Peter L. ;
Lewenstein, Moshe .
JOURNAL OF DISCRETE ALGORITHMS, 2007, 5 (01) :135-140
[4]   Parameterized duplication in strings: Algorithms and an application to software maintenance [J].
Baker, BS .
SIAM JOURNAL ON COMPUTING, 1997, 26 (05) :1343-1362
[5]   Parameterized pattern matching: Algorithms and applications [J].
Baker, BS .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1996, 52 (01) :28-42
[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]   Approximate Parameterized Matching [J].
Hazay, Carmit ;
Lewenstein, Moshe ;
Sokol, Dina .
ACM TRANSACTIONS ON ALGORITHMS, 2007, 3 (03)
[8]  
Radzik T., 1998, HDB COMBINATORIAL OP, V1