Variable-length code

guillefix 4th November 2016 at 2:43pm
Coding theory

aka symbol code

In a variable-length code, one assigns a codeword to each letter in an alphabet. Formally, a variable-length code is a function C:XAC: \mathcal{X} \rightarrow A^*, where X\mathcal{X} is the source alphabet, and AA is the code alphabet, and \cdot^* is the Kleene star.

The extension of CC is the natural expension of CC to X\mathcal{X} ^*

The codewords are all the elements of the codomain of CC.

CC is uniquely decodable if CC^* is one-to-one.

Prefix code


(IC 2.2) Symbol codes - terminology and notation

An example is Morse code

Non-commutative Symbolic Coding