arXiv · 1604.06707
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.
Explore related subjects
Keep this discovery
Felix Herter, Günter Rote. 2016-04-22. Loopless Gray Code Enumeration and the Tower of Bucharest. https://doi.org/10.1016/j.tcs.2017.11.017
Cite the original work for its findings. Save a collection to share your selection of sources.