Source: wikibot/variable-length-code

= Variable-length code
{wiki=Variable-length_code}

Variable-length code is a coding scheme where the length of each codeword is not fixed; instead, it varies based on the frequency or probability of the symbols being represented. This approach is often used in data compression algorithms to optimize the representation of information. \#\#\# Key Characteristics: 1. **Efficiency**: More frequent symbols are assigned shorter codewords, while less frequent symbols get longer codewords. This reduces the overall size of the encoded data.