Back to Search Start Over

Generating a Gray code for prefix normal words in amortized polylogarithmic time per word

Authors :
Burcsi, Péter
Fici, Gabriele
Lipták, Zsuzsanna
Raman, Rajeev
Sawada, Joe
Source :
P. Burcsi, G. Fici, Zs. Lipt\'ak, R. Raman, J. Sawada: Generating a Gray code for prefix normal words in amortized polylogarithmic time per word. Theor. Comput. Sci. 842: 86-99 (2020)
Publication Year :
2020

Abstract

A prefix normal word is a binary word with the property that no substring has more $1$s than the prefix of the same length. By proving that the set of prefix normal words is a bubble language, we can exhaustively list all prefix normal words of length $n$ as a combinatorial Gray code, where successive strings differ by at most two swaps or bit flips. This Gray code can be generated in $\Oh(\log^2 n)$ amortized time per word, while the best generation algorithm hitherto has $\Oh(n)$ running time per word. We also present a membership tester for prefix normal words, as well as a novel characterization of bubble languages.<br />Comment: To appear in Theoretical Computer Science. arXiv admin note: text overlap with arXiv:1401.6346

Details

Database :
arXiv
Journal :
P. Burcsi, G. Fici, Zs. Lipt\'ak, R. Raman, J. Sawada: Generating a Gray code for prefix normal words in amortized polylogarithmic time per word. Theor. Comput. Sci. 842: 86-99 (2020)
Publication Type :
Report
Accession number :
edsarx.2003.03222
Document Type :
Working Paper
Full Text :
https://doi.org/10.1016/J.TCS.2020.07.035