A comparison of imperative and purely functional suffix tree constructions

被引:19
作者
Giegerich, R
Kurtz, S
机构
[1] Universität Bielefeld, Technische Fakultät, 33501 Bielefeld
关键词
D O I
10.1016/0167-6423(95)00003-8
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We explore the design space of implementing suffix tree algorithms in the functional paradigm. We review the linear time and space algorithms of McCreight and Ukkonen. Based on a new terminology of nested suffixes and nested prefixes, we give a simpler and more declarative explanation of these algorithms than was previously known. We design two ''naive'' versions of these algorithms which are not linear time, but use simpler data structures, and can be implemented in a purely functional style. Furthermore, we present a new, ''lazy'' suffix tree construction which is even simpler. We evaluate both imperative and functional implementations of these algorithms. Our results show that the naive algorithms perform very favourably, and in particular, the lazy construction compares very well to all the others.
引用
收藏
页码:187 / 218
页数:32
相关论文
共 30 条
  • [1] Aho A. V., 1974, DESIGN ANAL COMPUTER
  • [2] PARALLEL CONSTRUCTION OF A SUFFIX TREE WITH APPLICATIONS
    APOSTOLICO, A
    ILIOPOULOS, C
    LANDAU, GM
    SCHIEBER, B
    VISHKIN, U
    [J]. ALGORITHMICA, 1988, 3 (03) : 347 - 365
  • [3] SELF-ALIGNMENTS IN WORDS AND THEIR APPLICATIONS
    APOSTOLICO, A
    SZPANKOWSKI, W
    [J]. JOURNAL OF ALGORITHMS, 1992, 13 (03) : 446 - 467
  • [4] THE SMALLEST AUTOMATION RECOGNIZING THE SUBWORDS OF A TEXT
    BLUMER, A
    BLUMER, J
    HAUSSLER, D
    EHRENFEUCHT, A
    CHEN, MT
    SEIFERAS, J
    [J]. THEORETICAL COMPUTER SCIENCE, 1985, 40 (01) : 31 - 55
  • [5] CHANG WI, 1990, ANN IEEE SYMP FOUND, P116
  • [6] CROCHEMORE M, 1988, LECT NOTES COMPUT SC, V324, P44, DOI 10.1007/BFb0017130
  • [7] TIME OPTIMAL LEFT-TO-RIGHT CONSTRUCTION OF POSITION TREES
    KEMPF, M
    BAYER, R
    GUNTZER, U
    [J]. ACTA INFORMATICA, 1987, 24 (04) : 461 - 474
  • [8] EFFICIENT ONLINE CONSTRUCTION AND CORRECTION OF POSITION TREES
    MAJSTER, ME
    REISER, A
    [J]. SIAM JOURNAL ON COMPUTING, 1980, 9 (04) : 785 - 807
  • [9] SUFFIX ARRAYS - A NEW METHOD FOR ONLINE STRING SEARCHES
    MANBER, U
    MYERS, G
    [J]. SIAM JOURNAL ON COMPUTING, 1993, 22 (05) : 935 - 948
  • [10] Manber U, 1990, 1ST P ANN ACM SIAM S, P319