Source: wikibot/prefix-code

= Prefix code
{wiki=Prefix_code}

A **prefix code** is a type of code used in coding theory and data compression. It is a set of codes where no code in the set is a prefix of any other code in the set. In simpler terms, this means that no complete codeword can be formed by concatenating one or more shorter codewords from the same set. The significance of prefix codes lies in their ability to facilitate unique decoding.