English

Cut-Down de Bruijn Sequences

Data Structures and Algorithms 2023-08-30 v2 Discrete Mathematics Combinatorics

Abstract

A cut-down de Bruijn sequence is a cyclic string of length LL, where 1Lkn1 \leq L \leq k^n, such that every substring of length nn appears at most once. Etzion [Theor. Comp. Sci 44 (1986)] gives an algorithm to construct binary cut-down de Bruijn sequences that requires o(n)o(n) simple nn-bit operations per symbol generated. In this paper, we simplify the algorithm and improve the running time to O(n)\mathcal{O}(n) time per symbol generated using O(n)\mathcal{O}(n) space. We then provide the first successor-rule approach for constructing a binary cut-down de Bruijn sequence by leveraging recent ranking algorithms for fixed-density Lyndon words. Finally, we develop an algorithm to generate cut-down de Bruijn sequences for k>2k>2 that runs in O(n)\mathcal{O}(n) time per symbol using O(n)\mathcal{O}(n) space after some initialization. While our kk-ary algorithm is based on our simplified version of Etzion's binary algorithm, a number of non-trivial adaptations are required to generalize to larger alphabets.

Keywords

Cite

@article{arxiv.2205.02815,
  title  = {Cut-Down de Bruijn Sequences},
  author = {Ben Cameron and Aysu Gündoğan and Joe Sawada},
  journal= {arXiv preprint arXiv:2205.02815},
  year   = {2023}
}
R2 v1 2026-06-24T11:08:33.999Z