English

The Number of Distinct Subpalindromes in Random Words

Combinatorics 2016-09-13 v1 Formal Languages and Automata Theory

Abstract

We prove that a random word of length nn over a kk-ary fixed alphabet contains, on expectation, Θ(n)\Theta(\sqrt{n}) distinct palindromic factors. We study this number of factors, E(n,k)E(n,k), in detail, showing that the limit limnE(n,k)/n\lim_{n\to\infty}E(n,k)/\sqrt{n} does not exist for any k2k\ge2, lim infnE(n,k)/n=Θ(1)\liminf_{n\to\infty}E(n,k)/\sqrt{n}=\Theta(1), and lim supnE(n,k)/n=Θ(k)\limsup_{n\to\infty}E(n,k)/\sqrt{n}=\Theta(\sqrt{k}). Such a complicated behaviour stems from the asymmetry between the palindromes of even and odd length. We show that a similar, but much simpler, result on the expected number of squares in random words holds. We also provide some experimental data on the number of palindromic factors in random words.

Keywords

Cite

@article{arxiv.1505.08043,
  title  = {The Number of Distinct Subpalindromes in Random Words},
  author = {Mikhail Rubinchik and Arseny M. Shur},
  journal= {arXiv preprint arXiv:1505.08043},
  year   = {2016}
}

Comments

14 pages, 1 figure; submitted to FI (Special issue of RuFiDiM 2014)