TOPICS
Search

Cross-Bifix-Free Code


A cross-bifix-free code of length n is a set of words of length n such that no nonempty proper prefix of any codeword equals a suffix of any codeword, including itself. Such codes can be used to distinguish true codeword boundaries from incidental matches across a boundary (Chee et al. 2013).

For a related two-family problem, let A and B be sets of words of length n>=1 over an alphabet of size q>=1. Require that no nonempty suffix of any word in A equal a prefix of a word in B, including a possible overlap of length n. Zakharov (2026) proved the bound

 |A||B|<=(q^(2n))/n(n/(n+1))^(n+1)<=(q^(2n))/(en).

The last bound is asymptotically sharp when the alphabet size is allowed to vary with n. Yoo (2026) registered a Lean formalization of the last inequality for the product of cardinalities.


See also

Code, Codeword, Prefix-Free Code

Explore with Wolfram|Alpha

References

Chee, Y. M.; Kiah, H. M.; Purkayastha, P.; and Wang, C. "Cross-Bifix-Free Codes Within a Constant Factor of Optimality." IEEE Trans. Inform. Th. 59, 4668-4674, 2013. https://doi.org/10.1109/TIT.2013.2252952.Yoo, E. "The Suffix-Prefix Avoidance Bound." Palomar Registry, 2026. https://data.palomar-registry.org/entries/PALOMAR-2026-11-30-000034-v1.json.Zakharov, D. "An Isoperimetric Inequality for Word Overlap." 23 Feb 2026. https://arxiv.org/abs/2602.20143.

Cite this as:

Weisstein, Eric W. "Cross-Bifix-Free Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Cross-Bifix-FreeCode.html

Subject classifications