A Simple Parallel Cartesian Tree Algorithm and its Application to Suffix Tree Construction
Guy E. Blelloch, Julian Shun · Society for Industrial and Applied Mathematics eBooks · 2011
We present a simple linear work and space, and polylogarithmic time parallel algorithm for generating multiway Cartesian trees.As a special case, the algorithm can be used to generate suffix trees from suffix arrays on arbitrary alphabets in the same bounds.In conjunction with parallel suffix array algorithms, such as the skew algorithm, this gives a rather simple linear work parallel algorithm for generating suffix trees over an integer alphabet Σ ⊆ [1, . . ., n], where n is the length of the input string.More generally, given a sorted sequences of strings and the longest common prefix lengths between adjacent elements, the algorithm will generate a pat tree (compacted trie) over the strings.We also present experimental results comparing the performance of the algorithm to existing sequential implementations and a second parallel algorithm.We present comparisons for the Cartesian tree algorithm on its own and for constructing a suffix tree using our algorithm.The results show that on a variety of strings our algorithm is competitive with the sequential version on a single processor and achieves good speedup on multiple processors.
Cited by 10 works. doi:10.1137/1.9781611972917.5 Open-access PDF
Authors
References
- A Space-Economical Suffix Tree Construction Algorithm
- Algorithms on Strings, Trees and Sequences
- PATRICIA—Practical Algorithm To Retrieve Information Coded in Alphanumeric
- An introduction to parallel algorithms
- Reducing the space requirement of suffix trees
- Replacing suffix trees with enhanced suffix arrays
- REPuter: fast computation of maximal repeats in complete genomes.
- Parallel construction of a suffix tree with applications
- A unifying look at data structures
- Suffix arrays: a new method for on-line string searches