ALPHABET DEPENDENCE IN PARAMETERIZED MATCHING

被引:77
作者
AMIR, A
FARACH, M
MUTHUKRISHNAN, S
机构
[1] RUTGERS STATE UNIV,DIMACS,PISCATAWAY,NJ 08855
[2] COURANT INST MATH SCI,NEW YORK,NY 10012
关键词
ALGORITHMS; ANALYSIS OF ALGORITHMS; STRING MATCHING; PARAMETERIZED STRING MATCHING; SOFTWARE MAINTENANCE;
D O I
10.1016/0020-0190(94)90086-8
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The classical pattern matching paradigm is that of seeking occurrences of one string in another, where both strings are drawn from an alphabet set Sigma. A recently introduced model is that of parameterized pattern matching. The main motivation for this scheme lies in software maintenance where program fragments are considered ''identical'' even if variables names are different. Besides the fixed symbols from Sigma, strings under this model have additional symbols from a variable set II and occurrences of one string in the other are sought, where renaming of the variables from II is allowed in a match. In this paper we provide an algorithm to find air occurrences of a pattern string of length m in a text string of length n under the parameterized pattern matching model. Our algorithm takes time O(n log pi), where pi = min(m, \II\), independent of \Sigma\. Our algorithm is optimal since we show that this dependence on \II\ is inherent to any algorithm for this problem in the comparison model.
引用
收藏
页码:111 / 115
页数:5
相关论文
共 8 条
[1]   EFFICIENT STRING MATCHING - AID TO BIBLIOGRAPHIC SEARCH [J].
AHO, AV ;
CORASICK, MJ .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :333-340
[2]  
BORODIN A, 1987, SIAM J COMPUT, V116, P97
[3]   FAST STRING SEARCHING ALGORITHM [J].
BOYER, RS ;
MOORE, JS .
COMMUNICATIONS OF THE ACM, 1977, 20 (10) :762-772
[4]   TIME-SPACE-OPTIMAL STRING MATCHING [J].
GALIL, Z ;
SEIFERAS, J .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1983, 26 (03) :280-294
[5]  
IDURY RM, 1993, UNPUB MULTIPLE MATCH
[6]  
Knuth D. E., 1977, SIAM Journal on Computing, V6, P323, DOI 10.1137/0206024
[7]  
Yao A. C.-C., 1988, 29th Annual Symposium on Foundations of Computer Science (IEEE Cat. No.88CH2652-6), P91, DOI 10.1109/SFCS.1988.21925
[8]  
[No title captured]