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(n1.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 Θ(n1.5) for the maximum palindromic complexity of trees. For standard strings, i.e., for paths, the palindromic complexity is n + 1.
CITATION STYLE
Gawrychowski, P., Kociumaka, T., Rytter, W., & Waleń, T. (2015). Tight bound for the number of distinct palindromes in a tree. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9309, pp. 270–276). Springer Verlag. https://doi.org/10.1007/978-3-319-23826-5_26
Mendeley helps you to discover research relevant for your work.