Error correction Created 2026-10-25 Updated 2026-11-05
Error correction recovers a transmitted or stored message despite specified corruption. A decoder uses the redundancy of an error-correcting code to select the original codeword, or reports failure if the available information does not determine one reliably.
For the repetition code , , a received is corrected to by choosing the closest word in Hamming distance. This guarantees recovery after at most one bit flip, but two flips can produce a wrong choice. If corrupted positions are known, they are erasure, which are easier to repair: a code of minimum distance can recover from any erasures.
Information reconciliation 2026-10-24
Classical error correction used to make two candidate keys agree. The disclosed information is part of the eavesdropper's side information and must be included when choosing the amount of privacy amplification.
Parity function 2026-11-05
The parity function on bits returns whether an odd number of them are one:For example, , and flipping any single input flips the output. A chain of exclusive or gates computes it with gates and linear depth; a balanced binary tree of such gates has logarithmic depth and still linear size.
Appending a parity bit to make the total even detects every single-bit error in a transmitted binary string. It misses any even number of flipped bits, because their changes cancel modulo two. This simple example separates error detection from error correction: detecting an odd number of changes does not identify which positions changed.