Skip to main content

A de Bruijn Sequence Construction by Concatenating Cycles of the Complemented Cycling Register

  • Conference paper
  • First Online:
Combinatorics on Words (WORDS 2017)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 10432))

Included in the following conference series:

  • 506 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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

  1. The On-Line Encyclopedia of Integer Sequences (2010). https://oeis.org, sequence A000016

  2. 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

    Article  MathSciNet  MATH  Google Scholar 

  3. Booth, K.S.: Lexicographically least circular substrings. Inf. Process. Lett. 10(4/5), 240–242 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  4. 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)

    Article  MathSciNet  MATH  Google Scholar 

  5. Cooper, J., Heitsch, C.: The discrepancy of the lex-least de Bruijn sequence. Discrete Math. 310, 1152–1159 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  6. 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

    Chapter  Google Scholar 

  7. Eldert, C., Gray, H., Gurk, H., Rubinoff, M.: Shifting counters. AIEE Trans. 77, 70–74 (1958)

    Google Scholar 

  8. Etzion, T., Lempel, A.: Construction of de Bruijn sequences of minimal complexity. IEEE Trans. Inf. Theory 30(5), 705–709 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  9. Etzion, T.: Self-dual sequences. J. Comb. Theory Ser. A 44(2), 288–298 (1987). http://www.sciencedirect.com/science/article/pii/0097316587900355

    Article  MathSciNet  MATH  Google Scholar 

  10. Ford, L.: A cyclic arrangement of \({M}\)-tuples. Report No. P-1071, Rand Corporation, Santa Monica, 23 April 1957

    Google Scholar 

  11. Fredricksen, H., Maiorana, J.: Necklaces of beads in \(k\) colors and \(k\)-ary de Bruijn sequences. Discrete Math. 23, 207–210 (1978)

    Article  MathSciNet  MATH  Google Scholar 

  12. 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

    Article  MathSciNet  MATH  Google Scholar 

  13. 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

    Article  MathSciNet  MATH  Google Scholar 

  14. Golomb, S.W.: Shift Register Sequences. Aegean Park Press, Laguna Hills (1981)

    MATH  Google Scholar 

  15. 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

    Article  MathSciNet  MATH  Google Scholar 

  16. 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

    Article  MathSciNet  MATH  Google Scholar 

  17. Martin, M.H.: A problem in arrangements. Bull. Am. Math. Soc. 40(12), 859–864 (1934)

    Article  MathSciNet  MATH  Google Scholar 

  18. 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

    Article  MathSciNet  MATH  Google Scholar 

  19. Ruskey, F., Savage, C., Wang, T.M.Y.: Generating necklaces. J. Algorithms 13, 414–430 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  20. Sawada, J., Williams, A., Wong, D.: A surprisingly simple de Bruijn sequence construction. Discrete Math. 339, 127–131 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  21. Sawada, J., Williams, A., Wong, D.: Necklaces and Lyndon words in colexicographic and reflected Gray code order (2017). Submitted manuscript

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Joe Sawada .

Editor information

Editors and Affiliations

Appendix - C Code

Appendix - C Code

figure e

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics