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

检测语法压缩字符串上的错误

Detecting regularities on grammar-compressed strings

Tomohiro I, Wataru Matsubara, Kouji Shimohira, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Kazuyuki Narisawa, Ayumi Shinohara

摘要:

我们解决的问题,检测和计数的各种形式的字符串表示为一个直线程序(SLP)中的字符串。给定一个大小为$n$的SLP,它表示一个长度为$N$的字符串$s$,我们的算法在$O(n^3h)$时间和$O(n^2)$空间中计算$s$中的所有游程和平方,其中$h$是SLP的导出树的高度。我们还展示了一个算法来计算所有的间隙回文在$O(n^3h + gnh\log N)$时间和$O(n^2)$空间,其中$g$是间隙的长度。上述解决方案的关键技术还允许我们分别在$O(n^2 h)$时间和$O(nh(n+\log^2 N))$时间中计算字符串的周期和覆盖。

英文摘要:

We solve the problems of detecting and counting various forms of regularities in a string represented as a Straight Line Program (SLP). Given an SLP of size $n$ that represents a string $s$ of length $N$, our algorithm compute all runs and squares in $s$ in $O(n^3h)$ time and $O(n^2)$ space, where $h$ is the height of the derivation tree of the SLP. We also show an algorithm to compute all gapped-palindromes in $O(n^3h + gnh\log N)$ time and $O(n^2)$ space, where $g$ is the length of the gap. The key technique of the above solution also allows us to compute the periods and covers of the string in $O(n^2 h)$ time and $O(nh(n+\log^2 N))$ time, respectively.

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

↑