Generating 2-Gray codes for ballot sequences in constant amortized time

Dennis Wong, Fabio Calero, Kushal Sedhai

研究成果: Article同行評審

2 引文 斯高帕斯(Scopus)

摘要

We present a simple algorithm that generates a cyclic 2-Gray code for ballot sequences. The algorithm generates each ballot sequence in constant amortized time using a linear amount of space. This is the first known cyclic 2-Gray code for ballot sequences that achieves this time bound. In addition, the algorithm can be easily modified to output ballot sequences in binary reflected Gray code order in constant amortized time per string using a linear amount of space.

原文English
文章編號113168
期刊Discrete Mathematics
346
發行號1
DOIs
出版狀態Published - 1月 2023

指紋

深入研究「Generating 2-Gray codes for ballot sequences in constant amortized time」主題。共同形成了獨特的指紋。

引用此