Paweł Gawrychowski, Tomasz Kociumaka, Wojciech Rytter, Tomasz Waleń
{"title":"树中不同回文数目的紧界","authors":"Paweł Gawrychowski, Tomasz Kociumaka, Wojciech Rytter, Tomasz Waleń","doi":"10.37236/10842","DOIUrl":null,"url":null,"abstract":"For an undirected tree with edges labeled by single letters, we consider its substrings, which are labels of the simple paths between two nodes. A palindrome is a word $w$ equal to its reverse $w^R$. We prove that the maximum number of distinct palindromic substrings in a tree of $n$ edges satisfies $\\text{pal}(n)=O(n^{1.5})$. This solves an open problem of Brlek, Lafrenière, and Provençal (DLT 2015), who showed that $\\text{pal}(n)=\\Omega(n^{1.5})$. Hence, we settle the tight bound of $\\Theta(n^{1.5})$ for the maximum palindromic complexity of trees. For standard strings, i.e., for trees that are simple paths, the maximum palindromic complexity is exactly $n+1$.
 We also propose an $O(n^{1.5} \\log^{0.5}{n})$-time algorithm reporting all distinct palindromes and an $O(n \\log^2 n)$-time algorithm finding the longest palindrome in a tree.","PeriodicalId":11515,"journal":{"name":"Electronic Journal of Combinatorics","volume":"3 1","pages":"0"},"PeriodicalIF":0.7000,"publicationDate":"2023-04-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Tight Bound for the Number of Distinct Palindromes in a Tree\",\"authors\":\"Paweł Gawrychowski, Tomasz Kociumaka, Wojciech Rytter, Tomasz Waleń\",\"doi\":\"10.37236/10842\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"For an undirected tree with edges labeled by single letters, we consider its substrings, which are labels of the simple paths between two nodes. A palindrome is a word $w$ equal to its reverse $w^R$. We prove that the maximum number of distinct palindromic substrings in a tree of $n$ edges satisfies $\\\\text{pal}(n)=O(n^{1.5})$. This solves an open problem of Brlek, Lafrenière, and Provençal (DLT 2015), who showed that $\\\\text{pal}(n)=\\\\Omega(n^{1.5})$. Hence, we settle the tight bound of $\\\\Theta(n^{1.5})$ for the maximum palindromic complexity of trees. For standard strings, i.e., for trees that are simple paths, the maximum palindromic complexity is exactly $n+1$.
 We also propose an $O(n^{1.5} \\\\log^{0.5}{n})$-time algorithm reporting all distinct palindromes and an $O(n \\\\log^2 n)$-time algorithm finding the longest palindrome in a tree.\",\"PeriodicalId\":11515,\"journal\":{\"name\":\"Electronic Journal of Combinatorics\",\"volume\":\"3 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.7000,\"publicationDate\":\"2023-04-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Electronic Journal of Combinatorics\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.37236/10842\",\"RegionNum\":4,\"RegionCategory\":\"数学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"MATHEMATICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Electronic Journal of Combinatorics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.37236/10842","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MATHEMATICS","Score":null,"Total":0}
Tight Bound for the Number of Distinct Palindromes in a Tree
For an undirected tree with edges labeled by single letters, we consider its substrings, which are labels of the simple paths between two nodes. A palindrome is a word $w$ equal to its reverse $w^R$. We prove that the maximum number of distinct palindromic substrings in a tree of $n$ edges satisfies $\text{pal}(n)=O(n^{1.5})$. This solves an open problem of Brlek, Lafrenière, and Provençal (DLT 2015), who showed that $\text{pal}(n)=\Omega(n^{1.5})$. Hence, we settle the tight bound of $\Theta(n^{1.5})$ for the maximum palindromic complexity of trees. For standard strings, i.e., for trees that are simple paths, the maximum palindromic complexity is exactly $n+1$.
We also propose an $O(n^{1.5} \log^{0.5}{n})$-time algorithm reporting all distinct palindromes and an $O(n \log^2 n)$-time algorithm finding the longest palindrome in a tree.
期刊介绍:
The Electronic Journal of Combinatorics (E-JC) is a fully-refereed electronic journal with very high standards, publishing papers of substantial content and interest in all branches of discrete mathematics, including combinatorics, graph theory, and algorithms for combinatorial problems.