Simple Linear Work Suffix Array Construction
Simple Linear Work Suffix Array Construction
复制标题
DOI:
10.1007/3-540-45061-0_73
复制
发表时间:
2003-06
期刊:
影响因子:
--
通讯作者:
Juha Kärkkäinen;P. Sanders
中科院分区:
文献类型:
--
作者:
Juha Kärkkäinen;P. Sanders
A suffix array represents the suffixes of a string in sorted order. Being a simpler and more compact alternative to suffix trees, it is an important tool for full text indexing and other string processing tasks. We introduce theskew algorithmfor suffix array construction over integer alphabets that can be implemented to run in linear time using integer sorting as its only nontrivial subroutine:1.recursively sort suffixes beginning at positionsimod 3 ≠ 0.2.sort the remaining suffixes using the information obtained in step one.3.merge the two sorted sequences obtained in steps one and two.The algorithm is much simpler than previous linear time algorithms that are all based on the more complicated suffix tree data structure. Since sorting is a well studied problem, we obtain optimal algorithms for several other models of computation, e.g. external memory with parallel disks, cache oblivious, and parallel. The adaptations for BSP and EREW-PRAM are asymptotically faster than the best previously known algorithms.