高效的计算在trie上运行
Efficiently computing runs on a trie
摘要:
一个最大的重复,或运行,在一个字符串中,是一个最大的周期子串,其最小的周期是最多一半的长度。在本文中,我们考虑运行,对应于一个trie上的路径,或者换句话说,在一个有根的边标记树的路径的端点必须是一个后代/祖先的其他。对于一个trie与$n$边缘,我们表明,运行的数量小于$n$。我们还显示了一个渐近下界上的最大密度的运行尝试:$\lim_{n\rightarrow\infty}ρ_\mathcal{T}(n)/n \geq 0.993238$其中$ρ_{\mathcal{T}}(n)$是运行的最大数量在一个trie与$n$边缘。此外,我们还显示了一个$O(n\log \log n)$时间和$O(n)$空间算法,找到所有运行。
英文摘要:
A maximal repetition, or run, in a string, is a maximal periodic substring whose smallest period is at most half the length of the substring. In this paper, we consider runs that correspond to a path on a trie, or in other words, on a rooted edge-labeled tree where the endpoints of the path must be a descendant/ancestor of the other. For a trie with $n$ edges, we show that the number of runs is less than $n$. We also show an asymptotic lower bound on the maximum density of runs in tries: $\lim_{n\rightarrow\infty}ρ_\mathcal{T}(n)/n \geq 0.993238$ where $ρ_{\mathcal{T}}(n)$ is the maximum number of runs in a trie with $n$ edges. Furthermore, we also show an $O(n\log \log n)$ time and $O(n)$ space algorithm for finding all runs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。