Answers are grounded in this paper and cite their sources.
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.
No takes yet. Share an insight, caveat, or question.
Herter et al. (2016) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: