Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Efficient Computation of Middle Levels Gray Codes

  • Conference paper
  • First Online:
Algorithms - ESA 2015

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

  • 2372 Accesses

Abstract

For any integer n ≥ 1 a middle levels Gray code is a cyclic listing of all bitstrings of length 2n + 1 that have either n or n + 1 entries equal to 1 such that any two consecutive bitstrings in the list differ in exactly one bit. The question whether such a Gray code exists for every n ≥ 1 has been the subject of intensive research during the last 30 years, and has been answered affirmatively only recently [T. Mütze. Proof of the middle levels conjecture. arXiv:1404.4442, 2014]. In this work we provide the first efficient algorithm to compute a middle levels Gray code. For a given bitstring, our algorithm computes the next ℓ bitstrings in the Gray code in time \(\mathcal{O}(n\ell(1+\frac{n}{\ell}))\), which is \(\mathcal{O}(n)\) on average per bitstring provided that ℓ = Ω(n).

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Currently. http://www.as.inf.ethz.ch/muetze and http://people.inf.ethz.ch/njerri

  2. Bitner, J., Ehrlich, G., Reingold, E.: Efficient generation of the binary reflected gray code and its applications. Commun. ACM 19(9), 517–521 (1976)

    Article  MathSciNet  MATH  Google Scholar 

  3. Buck, M., Wiedemann, D.: Gray codes with restricted density. Discrete Math. 48(2-3), 163–171 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  4. Chen, Y.: The Chung–Feller theorem revisited. Discrete Math. 308(7), 1328–1329 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  5. Cummins, R.: Hamilton circuits in tree graphs. IEEE Trans. Circuit Theory 13(1), 82–90 (1966)

    Article  MathSciNet  Google Scholar 

  6. Duffus, D., Kierstead, H., Snevily, H.: An explicit 1-factorization in the middle of the Boolean lattice. J. Combin. Theory Ser. A 65(2), 334–342 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  7. Eades, P., McKay, B.: An algorithm for generating subsets of fixed size with a strong minimal change property. Inf. Process. Lett. 19(3), 131–133 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  8. Felsner, S., Trotter, W.: Colorings of diagrams of interval orders and α-sequences of sets. Discrete Math. 144(1–3), 23–31 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  9. Havel, I.: Semipaths in directed cubes. In: Graphs and Other Combinatorial Topics (Prague, 1982). Teubner-Texte Math., vol. 59, pp. 101–108. Teubner, Leipzig (1983)

    Google Scholar 

  10. Johnson, R.: Long cycles in the middle two layers of the discrete cube. J. Combin. Theory Ser. A 105(2), 255–271 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  11. Johnson, S.: Generation of permutations by adjacent transposition. Math. Comp. 17, 282–285 (1963)

    Article  MathSciNet  MATH  Google Scholar 

  12. Kierstead, H., Trotter, W.: Explicit matchings in the middle levels of the Boolean lattice. Order 5(2), 163–171 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  13. Knuth, D.: The Art of Computer Programming, vol. 4A. Addison-Wesley (2011)

    Google Scholar 

  14. Lucas, J., van Baronaigien, D.R., Ruskey, F.: On rotations and the generation of binary trees. J. Algorithms 15(3), 343–366 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  15. Mütze, T.: Proof of the middle levels conjecture, arXiv:1404.4442, August 2014

    Google Scholar 

  16. Mütze, T., Nummenpalo, J.: Efficient computation of middle levels Gray codes, arXiv:1506.07898, June 2015

    Google Scholar 

  17. Mütze, T., Weber, F.: Construction of 2-factors in the middle layer of the discrete cube. J. Combin. Theory Ser. A 119(8), 1832–1855 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  18. Ruskey, F.: Adjacent interchange generation of combinations. J. Algorithms 9(2), 162–180 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  19. Savage, C.: A survey of combinatorial Gray codes. SIAM Rev. 39(4), 605–629 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  20. Savage, C., Winkler, P.: Monotone Gray codes and the middle levels problem. J. Combin. Theory Ser. A 70(2), 230–248 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  21. Shields, I., Shields, B., Savage, C.: An update on the middle levels problem. Discrete Math. 309(17), 5271–5277 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  22. Shimada, M., Amano, K.: A note on the middle levels conjecture, arXiv:0912.4564, September 2011

    Google Scholar 

  23. Trotter, H.: Algorithm 115: Perm. Commun. ACM 5(8), 434–435 (1962)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Torsten Mütze .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Mütze, T., Nummenpalo, J. (2015). Efficient Computation of Middle Levels Gray Codes. In: Bansal, N., Finocchi, I. (eds) Algorithms - ESA 2015. Lecture Notes in Computer Science(), vol 9294. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-48350-3_76

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-48350-3_76

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-48349-7

  • Online ISBN: 978-3-662-48350-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics