English

On Prefix Normal Words and Prefix Normal Forms

Discrete Mathematics 2017-01-02 v1 Formal Languages and Automata Theory Combinatorics

Abstract

A 11-prefix normal word is a binary word with the property that no factor has more 11s than the prefix of the same length; a 00-prefix normal word is defined analogously. These words arise in the context of indexed binary jumbled pattern matching, where the aim is to decide whether a word has a factor with a given number of 11s and 00s (a given Parikh vector). Each binary word has an associated set of Parikh vectors of the factors of the word. Using prefix normal words, we provide a characterization of the equivalence class of binary words having the same set of Parikh vectors of their factors. We prove that the language of prefix normal words is not context-free and is strictly contained in the language of pre-necklaces, which are prefixes of powers of Lyndon words. We give enumeration results on pnw(n)\textit{pnw}(n), the number of prefix normal words of length nn, showing that, for sufficiently large nn, 2n4nlgnpnw(n)2nlgn+1. 2^{n-4 \sqrt{n \lg n}} \le \textit{pnw}(n) \le 2^{n - \lg n + 1}. For fixed density (number of 11s), we show that the ordinary generating function of the number of prefix normal words of length nn and density dd is a rational function. Finally, we give experimental results on pnw(n)\textit{pnw}(n), discuss further properties, and state open problems.

Cite

@article{arxiv.1611.09017,
  title  = {On Prefix Normal Words and Prefix Normal Forms},
  author = {Péter Burcsi and Gabriele Fici and Zsuzsanna Lipták and Frank Ruskey and Joe Sawada},
  journal= {arXiv preprint arXiv:1611.09017},
  year   = {2017}
}

Comments

To appear in Theoretical Computer Science

R2 v1 2026-06-22T17:06:00.908Z