计算机科学 > 离散数学
[提交于 2016年4月22日]
标题:Loopless Gray Code Enumeration and the Tower of Bucharest
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Günter Rote[v1] 2016年4月22日 星期五 15:19:24 UTC