Abstract
We present the first efficient algorithm to list necklaces, Lyndon words, or pseudo-necklaces of length n in colexicographic order. The algorithm has two interesting properties. First, it can be applied to construct a de Bruijn sequence of order n in O(1)-time per bit. Second, it can easily be modified to efficiently list necklaces, Lyndon words, or pseudo-necklaces of length n in binary reflected Gray code order.
| Original language | English |
|---|---|
| Pages (from-to) | 25-35 |
| Number of pages | 11 |
| Journal | Journal of Discrete Algorithms |
| Volume | 46-47 |
| DOIs | |
| Publication status | Published - Sept 2017 |
Keywords
- De Bruijn sequence
- Gray code
- Lyndon word
- Necklace
- Pseudo-necklace