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

常数字母表参数化后缀和LCP数组的直接线性时间构造

Direct Linear Time Construction of Parameterized Suffix and LCP Arrays for Constant Alphabets

Noriki Fujisato, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda

摘要:

我们提出了第一个最坏情况下的线性时间算法,直接计算参数化的后缀和LCP数组恒定大小的字母。以前的算法要么需要二次时间,要么首先建立参数化的后缀树。更正式地说,对于静态字母表$Σ$和参数化字母表$Π$上的字符串,我们的算法在$O(nπ)$时间和空间的$O(n)$字中运行,其中$π$是字符串中$Π$的不同符号的数量。

英文摘要:

We present the first worst-case linear time algorithm that directly computes the parameterized suffix and LCP arrays for constant sized alphabets. Previous algorithms either required quadratic time or the parameterized suffix tree to be built first. More formally, for a string over static alphabet $Σ$ and parameterized alphabet $Π$, our algorithm runs in $O(nπ)$ time and $O(n)$ words of space, where $π$ is the number of distinct symbols of $Π$ in the string.

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

↑