A speed-up for the commute between subword trees and DAWGs

被引:2
作者
Apostolico, A
Lonardi, S
机构
[1] Univ Padua, DEI, I-35131 Padua, Italy
[2] Purdue Univ, Dept Comp Sci, W Lafayette, IN 47907 USA
关键词
design and analysis of algorithms; subword tree; DAWG; tree isomorphism test;
D O I
10.1016/S0020-0190(01)00327-1
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
A popular way to describe and build the DAWG or Directed Acyclic Word Graph of a string is by transformation of the corresponding subword tree. This transformation, which is not difficult to reverse, is easy to grasp and almost trivial to implement except for the assumed implication of a standard tree isomorphism algorithm. Here we point out a simple property of subword trees that makes checking tree isomorphism in this context a straightforward process, thereby simplifying the transformation significantly. Subword trees and DAWGs arise rather ubiquitously in applications of string processing, where they often play complementary roles. Efficient conversions are thus especially desirable. (C) 2001 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:159 / 161
页数:3
相关论文
共 8 条
[1]  
Aho A.V., 1974, The Design and Analysis of Computer Algorithms
[2]  
APOSTOLICO A, 1997, PATTERN MATHING ALGO
[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]   COMPLETE INVERTED FILES FOR EFFICIENT TEXT RETRIEVAL AND ANALYSIS [J].
BLUMER, A ;
BLUMER, J ;
HAUSSLER, D ;
MCCONNELL, R ;
EHRENFEUCHT, A .
JOURNAL OF THE ACM, 1987, 34 (03) :578-595
[5]  
Crochemore M., 1994, TEXT ALGORITHMS
[6]  
Hopcroft John E., 1972, IBM RES S SERIES, P131, DOI DOI 10.1007/978-1-4684-2001-2_13
[7]   SPACE-ECONOMICAL SUFFIX TREE CONSTRUCTION ALGORITHM [J].
MCCREIGHT, EM .
JOURNAL OF THE ACM, 1976, 23 (02) :262-272
[8]   ONLINE CONSTRUCTION OF SUFFIX TREES [J].
UKKONEN, E .
ALGORITHMICA, 1995, 14 (03) :249-260