TOPICS
Search

Non-Overlapping Code


A non-overlapping code is a set of words of one length n over an alphabet Sigma such that no nonempty proper prefix of any codeword is a suffix of any codeword, including itself. For a partition Sigma=I⊔J into two nonempty parts, the words with their first n-1 letters in I and their last letter in J give a non-overlapping code of size |I|^(n-1)|J| (Blackburn 2015).

Chee (2026) proved that for each n>=2 a code of this form is maximum for all sufficiently large alphabet sizes q. When n divides q, the split |I|=(n-1)q/n attains Levenshtein's upper bound q^n(n-1)^(n-1)/n^n. Let q_0(n) be the least threshold for this assertion. Wu and Peng (2026) report q_0(n)=n^2/2+O(n) and q_0(n)<=4n(n-1) for n>=3. They obtain q_0(5)=4 and q_0(6)=10. At length 5 the partition construction falls short only for alphabet sizes 2 and 3, where the maxima are 2 and 17. At length 6 the exceptions are sizes 2, 3, 4, and 9, with maxima 3, 41, 251, and 33872, respectively. The authors credit AI with developing the derivations and report Lean verification of the bounds and the two length classifications.

For fixed alphabet size q>=2, Blackburn (2026) proves that the maximum size S_n(q) satisfies

 S_n(q)<=[(q-1)/(qe)+O(n^(-1/4))](q^n)/n

as n->infty. The leading constant (q-1)/(qe) is attained asymptotically along an infinite sequence of lengths by the Gilbert-Levenshtein construction, so it is the limit superior of nS_n(q)/q^n. Blackburn credits GPT-6.2 Astra with developing the bound's proof and reports independently verifying it.


See also

Alphabet, Codeword, Coding Theory

Explore with Wolfram|Alpha

References

Blackburn, S. R. "Non-Overlapping Codes." IEEE Trans. Inform. Theory 61, 4890-4894, 2015. https://doi.org/10.1109/TIT.2015.2456634.Blackburn, S. R. "A Tight Upper Bound on Non-Overlapping Codes." 21 Nov 2026. https://arxiv.org/abs/2611.21913v2.Chee, Y. M. "A Proof of Blackburn's Conjecture on Non-Overlapping Codes." 2026. https://arxiv.org/abs/2611.28776v2.Wu, P. and Peng, Q. "A Quadratic Alphabet Threshold for Non-Overlapping Codes." Hexagon, 2026. https://hexagonmath.org/2611.01321v1.

Cite this as:

Weisstein, Eric W. "Non-Overlapping Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Non-OverlappingCode.html

Subject classifications