An algorithm for generating necklaces of beads in two colors
Discrete Mathematics
Journal of Algorithms
Universal cycles for combinatorial structures
Discrete Mathematics
Binary De Bruijn cycles under different equivalence relations
Discrete Mathematics
The Art of Computer Programming, Volume 4, Fascicle 2: Generating All Tuples and Permutations (Art of Computer Programming)
Binary bubble languages and cool-lex order
Journal of Combinatorial Theory Series A
The coolest order of binary strings
FUN'12 Proceedings of the 6th international conference on Fun with Algorithms
Hi-index | 0.00 |
A de Bruijn sequence is a circular binary string of length 2n that contains each binary string of length n exactly once as a substring. A maximum-density de Bruijn sequence is a circular binary string of length n (n 0)+(n 1)+(n 2)+...+(n m) that contains each binary string of length n with density (number of 1s) between 0 and m, inclusively. In this paper we efficiently generate maximum-density de Bruijn sequences for all values of n and m. An interesting special case occurs when n = 2m+1. In this case our result is a "complement-free de Bruijn sequence" since it is a circular binary string of length 2n-1 that contains each binary string of length n or its complement exactly once as a substring.