ONLINE CONSTRUCTION OF SUFFIX TREES

被引:822
作者
UKKONEN, E
机构
关键词
LINEAR-TIME ALGORITHM; SUFFIX TREE; SUFFIX TRIE; SUFFIX AUTOMATON; DAWG;
D O I
10.1007/BF01206331
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
An on-line algorithm is presented for constructing the suffix tree for a given string in time linear in the length of the string. The new algorithm has the desirable property of processing the string symbol by symbol from left to right. It always has the suffix tree for the scanned part of the string ready. The method is developed as a linear-time version of a very simple algorithm for (quadratic size) suffix tries. Regardless of its quadratic worst case this latter algorithm can be a good practical method when the string is not too long. Another variation of this method is shown to give, ina natural way, the well-known algorithms for constructing suffix automata (DAWGs).
引用
收藏
页码:249 / 260
页数:12
相关论文
共 13 条
[1]   EFFICIENT STRING MATCHING - AID TO BIBLIOGRAPHIC SEARCH [J].
AHO, AV ;
CORASICK, MJ .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :333-340
[2]  
Apostolico A., 1985, COMBINATORIAL ALGORI, VF12, P85
[3]   THE SMALLEST AUTOMATION RECOGNIZING THE SUBWORDS OF A TEXT [J].
BLUMER, A ;
BLUMER, J ;
HAUSSLER, D ;
EHRENFEUCHT, A ;
CHEN, MT ;
SEIFERAS, J .
THEORETICAL COMPUTER SCIENCE, 1985, 40 (01) :31-55
[4]   TRANSDUCERS AND REPETITIONS [J].
CROCHEMORE, M .
THEORETICAL COMPUTER SCIENCE, 1986, 45 (01) :63-86
[5]  
CROCHEMORE M, 1988, LECT NOTES COMPUT SC, V324, P44, DOI 10.1007/BFb0017130
[6]  
Galil Z., 1988, Journal of Complexity, V4, P33, DOI 10.1016/0885-064X(88)90008-8
[7]   TIME OPTIMAL LEFT-TO-RIGHT CONSTRUCTION OF POSITION TREES [J].
KEMPF, M ;
BAYER, R ;
GUNTZER, U .
ACTA INFORMATICA, 1987, 24 (04) :461-474
[8]   SPACE-ECONOMICAL SUFFIX TREE CONSTRUCTION ALGORITHM [J].
MCCREIGHT, EM .
JOURNAL OF THE ACM, 1976, 23 (02) :262-272
[9]   APPROXIMATE STRING-MATCHING WITH SUFFIX AUTOMATA [J].
UKKONEN, E ;
WOOD, D .
ALGORITHMICA, 1993, 10 (05) :353-364
[10]  
Weiner P., 1973, 14th Annual Symposium on Switching Automata Theory, P1