Let be a code of length used on a channel with transition probabilities . A decoder is a map from received words to codewords, possibly with an extra output "failure". Its block error probability for a transmitted codeword is the probability that the output differs from .
- A maximum-likelihood (ML) decoder outputs, for each , a codeword maximising over , ties broken by a fixed rule.
- A maximum a posteriori (MAP) decoder maximises for a given prior on codewords. It minimises the average block error probability, and it coincides with the ML decoder when the codewords are equally likely.
- A minimum-distance decoder outputs a codeword nearest to in Hamming distance.
- A bounded-distance decoder of radius outputs the codeword within distance of if there is one and fails otherwise; for that codeword is unique.
For a linear code with parity-check matrix , a syndrome decoder fixes for every syndrome one error with and outputs . When each has minimum weight in its coset it is called a coset leader, and the decoder is a minimum-distance decoder.
These rules are about which codeword to output; they say nothing about how to compute it. On the binary symmetric channel with crossover probability below one half, the ML, minimum-distance and coset-leader syndrome decoders coincide up to the breaking of ties; see the theorem on syndrome decoding.