Let
be a variable-length code over an alphabet
, and let
consist of all finite concatenations of members of
, including the empty word.
A word over
is uncompletable for
if it occurs as a contiguous factor of no word
in
. For example,
is uncompletable for
over
, since each
in a concatenation is immediately followed by an
. 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 for every nonempty incomplete finite code
of maximum codeword length
, regardless of deciphering delay.
Their preprint includes a polynomial-time construction and a Lean formalization.