We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.DM

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Discrete Mathematics

Title: Loopless Gray Code Enumeration and the Tower of Bucharest

Abstract: We give new algorithms for generating all n-tuples over an alphabet of m letters, changing only one letter at a time (Gray codes). These algorithms are based on the connection with variations of the Towers of Hanoi game. Our algorithms are loopless, in the sense that the next change can be determined in a constant number of steps, and they can be implemented in hardware. We also give another family of loopless algorithms that is based on the idea of working ahead and saving the work in a buffer.
Comments: 16 pages plus 8 pages of appendix with Python programs, 6 figures. A Python script to extract the program code from the LaTeX file is attached to the sources
Subjects: Discrete Mathematics (cs.DM); Data Structures and Algorithms (cs.DS)
MSC classes: 97R80
ACM classes: F.2.2
Journal reference: Theoretical Computer Science 748 (2018), 40-54
DOI: 10.1016/j.tcs.2017.11.017
Cite as: arXiv:1604.06707 [cs.DM]
  (or arXiv:1604.06707v1 [cs.DM] for this version)

Submission history

From: Günter Rote [view email]
[v1] Fri, 22 Apr 2016 15:19:24 GMT (314kb,D)

Link back to: arXiv, form interface, contact.