Inside the Binary Reflected Gray Code: Flip-Swap Languages in 2-Gray Code Order

Joe Sawada, Aaron Williams, Dennis Wong

研究成果: Conference contribution同行評審

5 引文 斯高帕斯(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, 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 Vajnovski [Inf. Process. Lett. 106(3):96−99, 2008].

原文English
主出版物標題Combinatorics on Words - 13th International Conference, WORDS 2021, Proceedings
編輯Thierry Lecroq, Svetlana Puzynina
發行者Springer Science and Business Media Deutschland GmbH
頁面172-184
頁數13
ISBN(列印)9783030850876
DOIs
出版狀態Published - 2021
事件13th International Conference on Combinatorics on Words, WORDS 2021 - Virtual, Online
持續時間: 13 9月 202117 9月 2021

出版系列

名字Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
12847 LNCS
ISSN(列印)0302-9743
ISSN(電子)1611-3349

Conference

Conference13th International Conference on Combinatorics on Words, WORDS 2021
城市Virtual, Online
期間13/09/2117/09/21

指紋

深入研究「Inside the Binary Reflected Gray Code: Flip-Swap Languages in 2-Gray Code Order」主題。共同形成了獨特的指紋。

引用此