OFFSET
1,1
COMMENTS
A binary word of length n is prefix normal if for all 1 <= k <= n, no factor of length k has more a's than the prefix of length k. That is, abbabab is not prefix normal because aba has more a's than abb. - Zsuzsanna Liptak, Oct 12 2011
a(n) <= A062692(n): every prefix normal word is a pre-necklace, but the converse is not true, see the Fici/Lipták reference. - Joerg Arndt, Jul 20 2013
LINKS
Zsuzsanna Liptak, Table of n, a(n) for n = 1..50
Paul Balister and Stefanie Gerke, The asymptotic number of prefix normal words, arXiv:1903.07957 [math.CO], 2019.
P. Burcsi, G. Fici, Zs. Lipták, F. Ruskey, and J. Sawada, On Combinatorial Generation of Prefix Normal Words, arXiv:1401.6346 [cs.DS], 2014.
P. Burcsi, G. Fici, Z. Lipták, F. Ruskey, and J. Sawada, Normal, Abby Normal, Prefix Normal, arXiv preprint arXiv:1404.2824 [cs.FL], 2014.
P. Burcsi, G. Fici, Z. Lipták, F. Ruskey, and J. Sawada, On prefix normal words and prefix normal forms, Preprint, 2016.
Péter Burcsi, Gabriele Fici, Zsuzsanna Lipták, Rajeev Raman, and Joe Sawada, Generating a Gray code for prefix normal words in amortized polylogarithmic time per word, arXiv:2003.03222 [cs.DS], 2020.
Péter Burcsi, Gabriele Fici, Zsuzsanna Lipták, Frank Ruskey, and Joe Sawada, On Prefix Normal Words and Prefix Normal Forms, arXiv:1611.09017 [cs.DM], 2016.
Ferdinando Cicalese, Zsuzsanna Lipták, and Massimiliano Rossi, Bubble-Flip—A new generation algorithm for prefix normal words, arXiv:1712.05876 [cs.DS], 2017-2018; Theoretical Computer Science, Volume 743, 26 September 2018, Pages 38-52.
Ferdinando Cicalese, Zsuzsanna Lipták, and Massimiliano Rossi, On Infinite Prefix Normal Words, arXiv:1811.06273 [math.CO], 2018.
G. Fici and Zs. Lipták, On Prefix Normal Words
G. Fici and Zs. Lipták, On Prefix Normal Words, Developments in Language Theory 2011, Lecture Notes in Computer Science 6795, 228-238.
Pamela Fleischmann, On Special k-Spectra, k-Locality, and Collapsing Prefix Normal Words, Ph.D. Dissertation, Kiel University (Germany, 2021).
Pamela Fleischmann, Mitja Kulczynski, and Dirk Nowotka, On Collapsing Prefix Normal Words, arXiv:1905.11847 [cs.FL], 2019.
Pamela Fleischmann, Mitja Kulczynski, Dirk Nowotka, and Danny Bøgsted Poulsen, On Collapsing Prefix Normal Words, Language and Automata Theory and Applications (LATA 2020) LNCS Vol. 12038, Springer, Cham, 412-424.
Zsuzsanna Lipták, Open problems on prefix normal words, also in Dagstuhl Reports (2018) Vol. 8, Issue 7, 59-61.
EXAMPLE
For n=3: aaa, aab, abb, aba, bbb are all prefix normal words. - Zsuzsanna Liptak, Oct 12 2011
PROG
(Python)
from itertools import product
def is_prefix_normal(w):
for k in range(1, len(w)+1):
weight0 = w[:k].count("1")
for j in range(1, len(w)-k+1):
weightj = w[j:j+k].count("1")
if weightj > weight0: return False
return True
def a(n):
return sum(is_prefix_normal(w) for w in product("01", repeat=n))
print([a(n) for n in range(1, 20)]) # Michael S. Branicky, Dec 19 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Gabriele Fici, Sep 04 2011
EXTENSIONS
More terms added by Zsuzsanna Liptak, Oct 12 2011
Further terms added by Zsuzsanna Liptak, Jan 29 2014
STATUS
approved