Recursive and iterative approaches to generate rotation Gray codes for stamp foldings and semi-meanders

研究成果: Article同行評審

摘要

We first present a simple recursive algorithm that generates cyclic rotation Gray codes for stamp foldings and semi-meanders, where consecutive strings differ by a stamp rotation. These are the first known Gray codes for stamp foldings and semi-meanders, and we thus solve an open problem posted by Sawada and Li (2012) [17]. We then introduce an iterative algorithm that generates the same rotation Gray codes for stamp foldings and semi-meanders. Both the recursive and iterative algorithms generate stamp foldings and semi-meanders in constant amortized time and O(n)-amortized time per string respectively, using a linear amount of memory.

原文English
文章編號115053
期刊Theoretical Computer Science
1031
DOIs
出版狀態Published - 21 3月 2025

指紋

深入研究「Recursive and iterative approaches to generate rotation Gray codes for stamp foldings and semi-meanders」主題。共同形成了獨特的指紋。

引用此