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 , where is the source alphabet, and is the code alphabet, and is the Kleene star.
The extension of is the natural expension of to
The codewords are all the elements of the codomain of .
is uniquely decodable if is one-to-one.
(IC 2.2) Symbol codes - terminology and notation
An example is Morse code