A Proof of Blackburn's Conjecture on Non-Overlapping Codes
Abstract
A code is non-overlapping if no nonempty proper prefix of a codeword is a suffix of a codeword.
Let $S_n(q)$ be the largest size of a non-overlapping code of length $n$ over an alphabet of size $q$.
Levenshtein proved that $S_n(q)\le c_nq^n$, where $c_n=(1/n)\bigl((n-1)/n\bigr)^{n-1}$.
The codes $I^{n-1}J$, where $I$ and $J$ partition the alphabet, attain this bound when $n$ divides $q$, and Blackburn conjectured that for every $n$ and all sufficiently large $q$, the best such code is a maximum non-overlapping code.
We prove this conjecture.
The proof uses generating functions for the nested partitions that describe maximal non-overlapping codes.
We also show that only the codes $I^{n-1}J$ with $|I|=(n-1)q/n$ and their reversals meet Levenshtein's bound.