[Paper Review] Shortest sequences containing primitive words and powers
This paper constructs the shortest possible words containing all primitive words of length $n$ over any finite alphabet, using a greedy algorithm or by concatenating Lyndon words in lexicographic order. It also establishes bounds on the length of words containing all $p$-powers of length $pn$, proving they lie between $pk^n$ and approximately $(p + \frac{1}{k})k^n$, with an algorithm to achieve the upper bound.
We show that for every $n \geq 1$ and over any finite alphabet, there is a word whose circular factors of length $n$ have a one-to-one correspondence with the set of primitive words. In particular, we prove that such a word can be obtained by a greedy algorithm, or by concatenating all Lyndon words of length $n$ in increasing lexicographic order. We also look into connections between de Bruijn graphs of primitive words and Lyndon graphs. Finally, we also show that the shortest word that contains every $p$-power of length $pn$ over a $k$-letter alphabet has length between $pk^n$ and roughly $(p+ \frac{1}{k}) k^n$, for all integers $p \geq 1$. An algorithm that generates a word which achieves the upper bound is provided.
Motivation & Objective
- To construct the shortest word whose circular factors of length $n$ are exactly all primitive words of length $n$ over any finite alphabet.
- To establish tight bounds on the length of words containing all $p$-powers of length $pn$ over a $k$-letter alphabet.
- To explore structural connections between de Bruijn graphs of primitive words and Lyndon graphs.
- To provide an efficient algorithm that generates a word achieving the upper bound for $p$-power containment.
Proposed method
- A greedy algorithm is used to construct words with all primitive words as circular factors of length $n$.
- The construction is shown to be equivalent to concatenating all Lyndon words of length $n$ in lexicographic order.
- The paper analyzes the structure of de Bruijn graphs restricted to primitive words and relates them to Lyndon graphs.
- It derives theoretical bounds on the minimal length of words containing all $p$-powers of length $pn$, using combinatorial and stringology techniques.
- An algorithm is designed to generate a word achieving the upper bound of approximately $(p + \frac{1}{k})k^n$ for $p$-power containment.
- Theoretical analysis leverages properties of Lyndon words and their role in string factorization and de Bruijn graph structures.
Experimental results
Research questions
- RQ1What is the shortest word that contains every primitive word of length $n$ as a circular factor over any finite alphabet?
- RQ2How short can a word be that contains all $p$-powers of length $pn$ over a $k$-letter alphabet?
- RQ3What structural relationships exist between de Bruijn graphs of primitive words and Lyndon graphs?
- RQ4Can a greedy algorithm or Lyndon word concatenation produce the shortest such word for primitive word coverage?
- RQ5Is there an efficient algorithm to generate a word that achieves the upper bound for $p$-power containment?
Key findings
- For every $n \geq 1$ and any finite alphabet, there exists a word whose circular factors of length $n$ are exactly all primitive words of length $n$.
- Such a word can be constructed either greedily or by concatenating all Lyndon words of length $n$ in lexicographic order.
- The shortest word containing all $p$-powers of length $pn$ over a $k$-letter alphabet has length between $pk^n$ and approximately $(p + \frac{1}{k})k^n$.
- The upper bound of $(p + \frac{1}{k})k^n$ is achievable via a provided algorithm for $p$-power containment.
- The paper establishes a structural connection between de Bruijn graphs of primitive words and Lyndon graphs, suggesting deeper combinatorial links.
- The construction via Lyndon word concatenation ensures minimality in the number of circular factors for primitive word coverage.
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.