Given positive integers n and M, an (n,M) fixed-length code for a discrete channel (X,Y,{PYn∣Xn}n=1∞) with code length n and rate Rn:=n1log2M message bits/channel use consists of: - a message set M={1,⋯,M} intended for transmission - an encoding function f:M→Xnyielding codewords f(1),⋯,f(M)∈Xn of length n. The set of codewords is called the codebook, written as Cn={f(1),⋯,f(M)} - a decoding function g:Yn→M