arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.03542cs.DS
收藏

线性时间内空间有效的Lyndon阵列构造

Space Efficient Construction of Lyndon Arrays in Linear Time

Philip Bille, Jonas Ellert, Johannes Fischer, Inge Li Gørtz, Florian Kurpicz, Ian Munro, Eva Rotenberg

摘要:

我们提出了第一个线性时间算法来构造的$2n$位版本的林登阵列的长度$n$的字符串只使用$o(n)$位的工作空间。该算法的一个更简单的变体仅使用额外工作空间的$\mathcal{O}(1)$字来计算Lyndon阵列的普通($n\lg n$ -位)版本。所有以前的算法要么不是线性的,要么使用至少$n\lg n$位的附加工作空间。同样在实践中,我们的新算法在时间和空间方面都比以前的最佳算法好一个数量级。

英文摘要:

We present the first linear time algorithm to construct the $2n$-bit version of the Lyndon array for a string of length $n$ using only $o(n)$ bits of working space. A simpler variant of this algorithm computes the plain ($n\lg n$-bit) version of the Lyndon array using only $\mathcal{O}(1)$ words of additional working space. All previous algorithms are either not linear, or use at least $n\lg n$ bits of additional working space. Also in practice, our new algorithms outperform the previous best ones by an order of magnitude, both in terms of time and space.

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

↑