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

03/05/2020
by   Péter Burcsi, et al.
0

A prefix normal word is a binary word with the property that no substring has more 1s 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 O(log^2 n) amortized time per word, while the best generation algorithm hitherto has O(n) running time per word. We also present a membership tester for prefix normal words, as well as a novel characterization of bubble languages.

READ FULL TEXT

page 19

page 20

research
12/15/2017

Bubble-Flip---A New Generation Algorithm for Prefix Normal Words

We present a new recursive generation algorithm for prefix normal words....
research
05/08/2021

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

A flip-swap language is a set S of binary strings of length n such that ...
research
05/31/2018

On Prefix Normal Words

We present a new class of binary words: the prefix normal words. They ar...
research
05/16/2022

On the rigidity of Arnoux-Rauzy words

An infinite word generated by a substitution is rigid if all the substit...
research
06/25/2021

Asymptotic bit frequency in Fibonacci words

It is known that binary words containing no k consecutive 1s are enumera...
research
03/06/2017

Word forms - not just their lengths- are optimized for efficient communication

The inverse relationship between the length of a word and the frequency ...
research
05/07/2020

Phonotactic Complexity and its Trade-offs

We present methods for calculating a measure of phonotactic complexity—b...

Please sign up or login with your details

Forgot password? Click here to reset