TOPICS
Search

Complete Bayonet Code


For two distinct letters a and b and a positive integer n, an n-complete bayonet code is a set X of n distinct words of the form a^iba^j with 0<=i,j<n, such that X union {a^n} is uniquely decipherable (Cordero 2024). Unique decipherability means that any word formed by concatenating members of X union {a^n} has only one decomposition into those members. Exponents denote repetition, with a^0 denoting the empty word. For example, X={b,ab} is a 2-complete bayonet code since {aa,b,ab} is a prefix code, meaning that no member is a proper prefix of another.

A factorization of the cyclic group Z/nZ gives a rectangular construction. If each residue has a unique representation as p+q, with p in P and q in Q, take X={a^pba^q:p in P,q in Q} using representatives from 0 to n-1. Between successive occurrences of b, the length of the run of a's modulo n determines the two adjacent exponents. The leading and trailing runs determine the remaining exponents. The multiples of n in those runs then determine the copies of a^n.

Cordero (2024) also proved that multiplying the right exponents j by an integer relatively prime to n and reducing modulo n preserves the n-complete bayonet-code property. The lengths of the words in X are the subject of Cordero's strong triangle conjecture.


See also

Code, Cordero's Strong Triangle Conjecture, Cyclic Group, Word

Explore with Wolfram|Alpha

References

Cordero, C. "Factorizations of Cyclic Groups and Bayonet Codes." J. Automata Lang. Combin. 29, 11-39, 2024. https://doi.org/10.25596/jalc-2024-011.

Cite this as:

Weisstein, Eric W. "Complete Bayonet Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CompleteBayonetCode.html

Subject classifications