Abstract

We prove that a random word of length nn over a kk-ary fixed alphabet contains, on expectation, Θ(n)Θ(\sqrt{n}) distinct palindromic factors. We study this number of factors, E(n,k)E(n,k), in detail, showing that the limit lim⁡n→∞E(n,k)/n\lim_{n\to\infty}E(n,k)/\sqrt{n} does not exist for any k≥2k\ge2, lim inf⁡n→∞E(n,k)/n=Θ(1)\liminf_{n\to\infty}E(n,k)/\sqrt{n}=Θ(1), and lim sup⁡n→∞E(n,k)/n=Θ(k)\limsup_{n\to\infty}E(n,k)/\sqrt{n}=Θ(\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.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.