Flip-swap languages in binary reflected Gray code order

Joe Sawada, Aaron Williams, Dennis Wong

研究成果: Article同行評審

4 引文 斯高帕斯(Scopus)

摘要

A flip-swap language is a set S of binary strings of length n such that S∪{0n} is closed under two operations (when applicable): (1) Flip the leftmost 1; and (2) Swap the leftmost 1 with the bit to its right. Flip-swap languages model many combinatorial objects including necklaces, Lyndon words, prefix normal words, left factors of k-ary Dyck words, lattice paths with at most k flaws, and feasible solutions to 0-1 knapsack problems. We prove that any flip-swap language forms a cyclic 2-Gray code when listed in binary reflected Gray code (BRGC) order. Furthermore, a generic successor rule computes the next string when provided with a membership tester. The rule generates each string in the aforementioned flip-swap languages in O(n)-amortized per string, except for prefix normal words of length n which require O(n1.864)-amortized per string. Our work generalizes results on necklaces and Lyndon words by Vajnovszki (2008) [35].

原文English
頁(從 - 到)138-148
頁數11
期刊Theoretical Computer Science
933
DOIs
出版狀態Published - 14 10月 2022

指紋

深入研究「Flip-swap languages in binary reflected Gray code order」主題。共同形成了獨特的指紋。

引用此