Tight Bound for the Number of Distinct Palindromes in a Tree

08/30/2020
by   Paweł Gawrychowski, et al.
0

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.5logn)-time algorithm for reporting all distinct palindromes in an undirected tree with n edges.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/14/2022

Bellman-Ford is optimal for shortest hop-bounded paths

This paper is about the problem of finding a shortest s-t path using at ...
research
02/26/2018

Dimension of CPT posets

A containment model M_P of a poset P=(X,≼) maps every x ∈ X to a set M_x...
research
05/27/2018

Palindromes in starlike trees

In this note, we obtain an upper bound on the maximum number of distinct...
research
06/05/2021

APMF < APSP? Gomory-Hu Tree for Unweighted Graphs in Almost-Quadratic Time

We design an n^2+o(1)-time algorithm that constructs a cut-equivalent (G...
research
11/08/2018

Distributed Exact Weighted All-Pairs Shortest Paths in Near-Linear Time

In the distributed all-pairs shortest paths problem (APSP), every node ...
research
09/21/2022

Tree Methods for Hierarchical Classification in Parallel

We propose methods that enable efficient hierarchical classification in ...
research
01/17/2022

Linear Time Construction of Indexable Elastic Founder Graphs

Pattern matching on graphs has been widely studied lately due to its imp...

Please sign up or login with your details

Forgot password? Click here to reset