[Paper Review] Periods and borders of random words
This paper investigates the statistical behavior of periods and border lengths in random words over a fixed alphabet. Using combinatorial enumeration and recurrence relations based on the Fine and Wilf theorem and the structure of FW-words, the authors derive exact recurrence formulas to compute the asymptotic probability that a random word of length $ n $ has a given maximum border length $ r $. The key result is that the expected maximum border length $ \alpha_\ell(n) $ converges to a constant $ \alpha_\ell $ as $ n \to \infty $, with $ \alpha_2 \approx 1.641 $ for binary words.
We investigate the behavior of the periods and border lengths of random words over a fixed alphabet. We show that the asymptotic probability that a random word has a given maximal border length $k$ is a constant, depending only on $k$ and the alphabet size $\ell$. We give a recurrence that allows us to determine these constants with any required precision. This also allows us to evaluate the expected period of a random word. For the binary case, the expected period is asymptotically about $n-1.641$. We also give explicit formulas for the probability that a random word is unbordered or has maximum border length one.
Motivation & Objective
- To quantify the asymptotic probability that a random word of length $ n $ over an $ \ell $-letter alphabet has a given maximum border length $ r $.
- To derive a recurrence relation for computing the expected maximum border length $ \alpha_\ell(n) $ with arbitrary precision.
- To evaluate the expected least period of a random word, showing it is $ n - \alpha_\ell(n) $ with $ \alpha_\ell(n) = \mathcal{O}(1) $.
- To provide explicit formulas for the probability that a random word is unbordered or has maximum border length one.
- To compute the limiting expected border length $ \alpha_\ell $ for various alphabet sizes $ \ell $, including $ \alpha_2 \approx 1.641 $.
Proposed method
- Define $ \mathcal{G}_\ell(P,n) $ as the set of words of length $ n $ with periods in a given set $ P $, and $ \mathcal{F}_\ell(P,n) $ as those with least period exactly $ \min P $, using the FW-word construction.
- Use the formula $ G_\ell(P,n) = \ell^{\mathfrak{c}(P,n)} $, where $ \mathfrak{c}(P,n) $ is the minimal alphabet size for an FW-word with periods $ P $, computed via a recursive algorithm.
- Derive recurrence relations for the number of words with longest border of length $ r $, based on structural decomposition of words and border properties.
- Establish functional equations and generating functions for the sequence $ s(n) $, counting unbordered words, leading to a recurrence for $ \lambda_\ell(1) $ and $ \alpha_\ell $.
- Use the recurrence $ v_n = \ell v_{n-1} - v_{\lfloor n/2 \rfloor} $ for odd $ n $, and $ v_n = \ell^2 v_{n-2} - v_{n/2} $ for even $ n $, to compute border length probabilities.
- Derive the generating function $ L_1(x) $ satisfying $ L_1(x) = \frac{x^2}{\ell(1-x)} + \frac{\ell - 1 - \ell/x}{1 - x} L_1\left(\frac{x^2}{\ell}\right) $, enabling high-precision computation of $ \lambda_\ell(r) $ and $ \alpha_\ell $.
Experimental results
Research questions
- RQ1What is the asymptotic probability that a random word of length $ n $ over an $ \ell $-letter alphabet has a maximum border length $ r $?
- RQ2How does the expected maximum border length $ \alpha_\ell(n) $ behave as $ n \to \infty $, and what is its limiting value $ \alpha_\ell $?
- RQ3What is the exact probability that a random binary word is unbordered or has maximum border length one?
- RQ4Can a recurrence be derived to compute the expected period of a random word with arbitrary precision?
- RQ5What is the expected least period of a random binary word of length $ n $, and how does it compare to $ n $?
Key findings
- The asymptotic probability that a random word of length $ n $ has maximum border length $ r $ converges to a constant $ \lambda_\ell(r) $ depending only on $ r $ and the alphabet size $ \ell $.
- For binary words ($ \ell = 2 $), the expected maximum border length is asymptotically $ \alpha_2 \approx 1.64116491178296695613 $, so the expected least period is $ n - 1.641 $.
- The probability that a random binary word is unbordered is approximately $ 26.78\% $, and the probability of having a longest border of length one is about $ 30.04\% $.
- For larger alphabets, the expected border length $ \alpha_\ell $ decreases: $ \alpha_3 \approx 0.6859 $, $ \alpha_4 \approx 0.4220 $, $ \alpha_5 \approx 0.3020 $, and $ \alpha_{50} \approx 0.0208 $.
- The generating function $ L_1(x) $ satisfies a functional equation that allows high-precision computation of $ \lambda_\ell(1) $, and a series expression is derived: $ L_1(1/\ell) = \sum_{n \geq 1} \frac{(-1)^{n+1}}{\ell^{n+1}} \prod_{i=1}^{n} \frac{\ell^{2^{i-1}} - \ell + 1}{\ell^{2^i - 1} - 1} $.
- The recurrence $ s(2n) = 1/\ell - \sum_{j=1}^{n} s(j) \ell^{-j} $ enables efficient numerical evaluation of $ \alpha_\ell $ for large $ n $, with convergence guaranteed by the bound $ |\lambda_\ell(r,n+1) - \lambda_\ell(r,n)| \leq \ell^{-\lfloor n/2 \rfloor} $.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.