Definition (Uniquely Decodable Fixed Length Code)
A D-ary block code for the source is called uniquely decodable or lossless if the encoder: is an invertible map (i.e. is bijective) and (i.e. the decoder is the inverted map of the encoder).
Definition (Probability of Decoding error)
Given a D-ary block code , with encoder/decoder functions , the reliability is measured via its probability of decoding error : we ideally want this to be as close to zero as possible.
Remark
For a UD code, since is invertible, we have that hence the code rate is: For such a code, the probability of decoding error or that the code is lossless!
Definition (Uniquely Decodable VLC)
A VLC is uniquely decodable (UD), (or lossless), if all finite sequences of source -tuples are mapped onto distinct sequences of codewords or that f is a injective map on all finite sequences of source -tuples. In other words, any concatenation of codewords can be uniquely decoded.