Saved in:
| Main Authors: | , , |
|---|---|
| Format: | Preprint |
| Published: |
2017
|
| Subjects: | |
| Online Access: | https://arxiv.org/abs/1712.05876 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1866929312527024128 |
|---|---|
| author | Cicalese, Ferdinando Lipták, Zsuzsanna Rossi, Massimiliano |
| author_facet | Cicalese, Ferdinando Lipták, Zsuzsanna Rossi, Massimiliano |
| contents | We present a new recursive generation algorithm for prefix normal words. These are binary strings with the property that no substring has more 1s than the prefix of the same length. The new algorithm uses two operations on binary strings, which exploit certain properties of prefix normal words in a smart way. We introduce infinite prefix normal words and show that one of the operations used by the algorithm, if applied repeatedly to extend the string, produces an ultimately periodic infinite word, which is prefix normal. Moreover, based on the original finite word, we can predict both the length and the density of an ultimate period of this infinite word. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_1712_05876 |
| institution | arXiv |
| publishDate | 2017 |
| record_format | arxiv |
| spellingShingle | Bubble-Flip -- A New Generation Algorithm for Prefix Normal Words Cicalese, Ferdinando Lipták, Zsuzsanna Rossi, Massimiliano Data Structures and Algorithms We present a new recursive generation algorithm for prefix normal words. These are binary strings with the property that no substring has more 1s than the prefix of the same length. The new algorithm uses two operations on binary strings, which exploit certain properties of prefix normal words in a smart way. We introduce infinite prefix normal words and show that one of the operations used by the algorithm, if applied repeatedly to extend the string, produces an ultimately periodic infinite word, which is prefix normal. Moreover, based on the original finite word, we can predict both the length and the density of an ultimate period of this infinite word. |
| title | Bubble-Flip -- A New Generation Algorithm for Prefix Normal Words |
| topic | Data Structures and Algorithms |
| url | https://arxiv.org/abs/1712.05876 |