arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1307.1417cs.DS
收藏

一种构造后缀数组的优美算法

An Elegant Algorithm for the Construction of Suffix Arrays

Sanguthevar Rajasekaran, Marius Nicolae

摘要:

后缀数组是一种数据结构,在语言文本和生物数据的字符串处理问题中有许多应用。它已被引入作为后缀树的内存有效的替代品。后缀数组由字符串的已排序后缀组成。在文献中已知有几种线性时间后缀阵列构造算法(SACA)。然而,实际上最快的算法之一在最坏情况下的运行时间为$O(n^2)$。设计实际上和理论上有效的技术的问题仍然是开放的。在本文中,我们提出了一个优雅的算法后缀数组的建设,需要线性时间与高概率,概率是在所有可能的输入空间。我们的算法是已知的SACAs中最简单的一个,它开辟了一个新的维度的后缀数组的建设,还没有探索到现在。我们的算法是很容易并行化。我们提供各种并行计算模型的并行实现。我们证明了一个引理的$\ell$-聚体的随机字符串,可能会发现独立的应用。我们还提出了另一种算法,利用上述算法。该算法称为RadixSA,最差情况下的运行时间为$O(n\log{n})$。RadixSA引入了一个想法,可以找到独立的应用程序作为其他SACA的加速技术。RadixSA与其他算法在各种数据集上的实证比较表明,我们的算法是迄今为止最快的算法之一。C++源代码可在www.example.com上免费获得

英文摘要:

The suffix array is a data structure that finds numerous applications in string processing problems for both linguistic texts and biological data. It has been introduced as a memory efficient alternative for suffix trees. The suffix array consists of the sorted suffixes of a string. There are several linear time suffix array construction algorithms (SACAs) known in the literature. However, one of the fastest algorithms in practice has a worst case run time of $O(n^2)$. The problem of designing practically and theoretically efficient techniques remains open. In this paper we present an elegant algorithm for suffix array construction which takes linear time with high probability; the probability is on the space of all possible inputs. Our algorithm is one of the simplest of the known SACAs and it opens up a new dimension of suffix array construction that has not been explored until now. Our algorithm is easily parallelizable. We offer parallel implementations on various parallel models of computing. We prove a lemma on the $\ell$-mers of a random string which might find independent applications. We also present another algorithm that utilizes the above algorithm. This algorithm is called RadixSA and has a worst case run time of $O(n\log{n})$. RadixSA introduces an idea that may find independent applications as a speedup technique for other SACAs. An empirical comparison of RadixSA with other algorithms on various datasets reveals that our algorithm is one of the fastest algorithms to date. The C++ source code is freely available at http://www.engr.uconn.edu/~man09004/radixSA.zip

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑