A comparison of imperative and purely functional suffix tree constructions
A comparison of imperative and purely functional suffix tree constructions
复制标题
DOI:
10.1016/0167-6423(95)00003-8
复制
发表时间:
1995-12-01
影响因子:
1.3
通讯作者:
Kurtz, S
中科院分区:
文献类型:
--
作者:
Giegerich, R;Kurtz, S
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.