Abstract
We present a new de Bruijn sequence construction based on co-necklaces and the complemented cycling register (CCR). A co-necklace is the lexicographically smallest string in an equivalence class of strings induced by the CCR. We prove that a concatenation of the cycles of the CCR forms a de Bruijn sequence when the cycles are ordered in colexicographic order with respect to their co-necklace representatives. We also give an algorithm that produces the de Bruijn sequence in O(1)-time per bit. Finally, we prove that our construction has a discrepancy bounded above by 2n.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Because a longest run of the form \(0^*\) or \(1^*\) must be at the start of a co-necklace, the algorithm can be further optimized by keeping track of the longest current run of the form \(1^*\). However, it will not affect the asymptotic analysis.
References
The On-Line Encyclopedia of Integer Sequences (2010). https://oeis.org, sequence A000016
Alhakim, A.: A simple combinatorial algorithm for de Bruijn sequences. Am. Math. Monthly 117(8), 728–732 (2010). http://www.jstor.org/stable/10.4169/000298910x515794
Booth, K.S.: Lexicographically least circular substrings. Inf. Process. Lett. 10(4/5), 240–242 (1980)
Cattell, K., Ruskey, F., Sawada, J., Serra, M., Miers, C.: Fast algorithms to generate necklaces, unlabeled necklaces, and irreducible polynomials over GF(2). J. Algorithms 37(2), 267–282 (2000)
Cooper, J., Heitsch, C.: The discrepancy of the lex-least de Bruijn sequence. Discrete Math. 310, 1152–1159 (2010)
Dragon, P.B., Hernandez, O.I., Williams, A.: The grandmama de Bruijn sequence for binary strings. In: Kranakis, E., Navarro, G., Chávez, E. (eds.) LATIN 2016. LNCS, vol. 9644, pp. 347–361. Springer, Heidelberg (2016). doi:10.1007/978-3-662-49529-2_26
Eldert, C., Gray, H., Gurk, H., Rubinoff, M.: Shifting counters. AIEE Trans. 77, 70–74 (1958)
Etzion, T., Lempel, A.: Construction of de Bruijn sequences of minimal complexity. IEEE Trans. Inf. Theory 30(5), 705–709 (1984)
Etzion, T.: Self-dual sequences. J. Comb. Theory Ser. A 44(2), 288–298 (1987). http://www.sciencedirect.com/science/article/pii/0097316587900355
Ford, L.: A cyclic arrangement of \({M}\)-tuples. Report No. P-1071, Rand Corporation, Santa Monica, 23 April 1957
Fredricksen, H., Maiorana, J.: Necklaces of beads in \(k\) colors and \(k\)-ary de Bruijn sequences. Discrete Math. 23, 207–210 (1978)
Fredricksen, H.: Generation of the Ford sequence of length \(2^n\), \(n\) large. J. Comb. Theory Ser. A 12(1), 153–154 (1972). http://www.sciencedirect.com/science/article/pii/009731657290091X
Fredricksen, H., Kessler, I.: An algorithm for generating necklaces of beads in two colors. Discrete Math. 61(2), 181–188 (1986). http://www.sciencedirect.com/science/article/pii/0012365X86900890
Golomb, S.W.: Shift Register Sequences. Aegean Park Press, Laguna Hills (1981)
Hauge, E.R.: On the cycles and adjacencies in the complementary circulating register. Discrete Math. 145(1), 105–132 (1995). http://www.sciencedirect.com/science/article/pii/0012365X9400057P
Huang, Y.: A new algorithm for the generation of binary de Bruijn sequences. J. Algorithms 11(1), 44–51 (1990). http://www.sciencedirect.com/science/article/pii/019667749090028D
Martin, M.H.: A problem in arrangements. Bull. Am. Math. Soc. 40(12), 859–864 (1934)
Mayhew, G.L., Golomb, S.W.: Characterizations of generators for modified de Bruijn sequences. Adv. Appl. Math. 13(4), 454–461 (1992). http://www.sciencedirect.com/science/article/pii/019688589290021N
Ruskey, F., Savage, C., Wang, T.M.Y.: Generating necklaces. J. Algorithms 13, 414–430 (1992)
Sawada, J., Williams, A., Wong, D.: A surprisingly simple de Bruijn sequence construction. Discrete Math. 339, 127–131 (2016)
Sawada, J., Williams, A., Wong, D.: Necklaces and Lyndon words in colexicographic and reflected Gray code order (2017). Submitted manuscript
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendix - C Code
Appendix - C Code
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Gabric, D., Sawada, J. (2017). A de Bruijn Sequence Construction by Concatenating Cycles of the Complemented Cycling Register. In: Brlek, S., Dolce, F., Reutenauer, C., Vandomme, É. (eds) Combinatorics on Words. WORDS 2017. Lecture Notes in Computer Science(), vol 10432. Springer, Cham. https://doi.org/10.1007/978-3-319-66396-8_6
Download citation
DOI: https://doi.org/10.1007/978-3-319-66396-8_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-66395-1
Online ISBN: 978-3-319-66396-8
eBook Packages: Computer ScienceComputer Science (R0)