DYNAMIC DICTIONARY MATCHING

被引:50
作者
AMIR, A
FARACH, M
GALIL, Z
GIANCARLO, R
PARK, K
机构
[1] RUTGERS STATE UNIV,DIMACS,PISCATAWAY,NJ 08855
[2] COLUMBIA UNIV,DEPT COMP SCI,NEW YORK,NY 10027
[3] TEL AVIV UNIV,IL-69978 TEL AVIV,ISRAEL
[4] AT&T BELL LABS,MURRAY HILL,NJ 07974
[5] UNIV LONDON KINGS COLL,DEPT COMP,LONDON WC2R 2LS,ENGLAND
基金
美国国家科学基金会;
关键词
D O I
10.1016/S0022-0000(05)80047-9
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We consider the dynamic dictionary matching problem. We are given a set of pattern strings (the dictionary) that can change over time; that is, we can insert a new pattern into the dictionary or delete a pattern from it. Moreover, given a text string, we must be able to find all occurrences of any pattern of the dictionary in the text. Let D0 be the empty dictionary. We present an algorithm that performs any sequence of the following operations in the given time bounds: (1) insert (p, D(i-1). Insert pattern p[1, m] into the dictionary D(i-1). D(i) is the dictionary after the operation. The time complexity is O(m log \D(i)\). (2) delete(p, D(i-1)). Delete pattern p[1, m] from the dictionary D(i-1). D(i) is the dictionary after the operation. The time complexity is O(m log \D(i-1)\). (3) search(t, D(i)). Search text t[1, n] for all occurrences of the patterns of dictionary D(i). The time complexity is O(n + tocc) log \D(i)\), where tocc is the total number of occurrences of patterns in the text. (C) 1994 Academic Press, Inc.
引用
收藏
页码:208 / 222
页数:15
相关论文
共 17 条
[1]  
Aho A. V., 1986, COMPILERS PRINCIPLES
[2]   EFFICIENT STRING MATCHING - AID TO BIBLIOGRAPHIC SEARCH [J].
AHO, AV ;
CORASICK, MJ .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :333-340
[3]   FAST STRING SEARCHING ALGORITHM [J].
BOYER, RS ;
MOORE, JS .
COMMUNICATIONS OF THE ACM, 1977, 20 (10) :762-772
[4]  
CHEN MT, 1984, NATO ASI SERIES F, V12, P97
[5]  
COMMENTZWALTER B, 1979, 6TH P INT C AUT LANG, P118
[6]  
DELISI C, 1988, SCIENCE, V24, P47
[7]  
GALIL Z, 1991, FULLY DYNAMIC DICT M
[8]  
HUME A, 1990, KEYWORD MATCHING
[9]  
Knuth D. E., 1977, SIAM Journal on Computing, V6, P323, DOI 10.1137/0206024
[10]  
Knuth D.E., 1973, SORTING SEARCHING, V3