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

树中不同回文数的紧界

Tight Bound for the Number of Distinct Palindromes in a Tree

Paweł Gawrychowski, Tomasz Kociumaka, Wojciech Rytter, Tomasz Waleń

摘要:

对于一个无向树的$n$边缘标记单字母,我们考虑它的子串,这是简单的路径对节点之间的标签。我们证明了存在$O(n^{1.5})$不同的回文子串。这解决了Brlek,Lafrenière和Provençal(DLT 2015)的一个开放问题,他们给出了一个匹配的下界构造。因此,我们解决了$Θ(n^{1.5})$的最大回文复杂度的树的紧界。对于标准字符串,即,对于路径,回文复杂度为$n+1$。我们还提出了$O(n^{1.5} \log{n})$时间算法报告所有不同的回文在一个无向树与$n$边缘。

英文摘要:

For an undirected tree with $n$ edges labelled by single letters, we consider its substrings, which are labels of the simple paths between pairs of nodes. We prove that there are $O(n^{1.5})$ different palindromic substrings. This solves an open problem of Brlek, Lafrenière, and Provençal (DLT 2015), who gave a matching lower-bound construction. Hence, we settle the tight bound of $Θ(n^{1.5})$ for the maximum palindromic complexity of trees. For standard strings, i.e., for paths, the palindromic complexity is $n+1$. We also propose $O(n^{1.5} \log{n})$-time algorithm for reporting all distinct palindromes in an undirected tree with $n$ edges.

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

↑