paper

Generalized de Bruijn words for Primitive words and Powers

arXiv:0904.3997

Abstract

We show that for every and over any finite alphabet, there is a word whose circular factors of length 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 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 -power of length over a -letter alphabet has length between and roughly , for all integers . An algorithm that generates a word which achieves the upper bound is provided.

arXiv commentRevisions made for publication