TOPICS
Search

Uncompletable Word


Let X be a variable-length code over an alphabet A, and let X^* consist of all finite concatenations of members of X, including the empty word. A word over A is uncompletable for X if it occurs as a contiguous factor of no word in X^*. For example, bb is uncompletable for X={a,ba} over {a,b}, since each b in a concatenation is immediately followed by an a. A code is complete if there are no uncompletable words over its alphabet.

Néraud and Selmi (2001) gave an explicit construction of a short uncompletable word for an incomplete finite code with finite deciphering delay. Finite delay means that a bounded number of following codewords suffices to identify the first codeword from the beginning of a concatenation. Their length bound depends on the delay and the maximum codeword length, giving a partial result on Restivo's question about short uncompletable words for incomplete finite codes.

Chandelkar and Chadha (2026) report the bound 4k^2-3k for every nonempty incomplete finite code of maximum codeword length k, regardless of deciphering delay. Their preprint includes a polynomial-time construction and a Lean formalization.


See also

Code, Concatenation, Sofic Shift, Word

Explore with Wolfram|Alpha

References

Chandelkar, R. and Chadha, S. S. "Quadratic Bounds for Uncompletable Words and Matrix Mortality." 28 Sep 2026. https://arxiv.org/abs/2609.30817.Néraud, J. and Selmi, C. "On Codes with a Finite Deciphering Delay: Constructing Uncompletable Words." Theoret. Comput. Sci. 255, 151-162, 2001. https://doi.org/10.1016/S0304-3975(99)00160-7.

Cite this as:

Weisstein, Eric W. "Uncompletable Word." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/UncompletableWord.html

Subject classifications