Study Atlas › Computer Science › Information theory

Error-detecting and error-correcting codes

Adding redundancy so errors in stored or transmitted data can be detected or corrected.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Parity bits detect single errors. Hamming codes (1950) correct single-bit errors. CRCs detect burst errors in networks and files. Reed–Solomon codes (1960) protect CDs, QR codes and deep-space links. LDPC and polar codes approach Shannon's limit and are used in Wi-Fi and 5G.

Example

A QR code still scans with up to about 30% damaged (level H) thanks to Reed–Solomon coding.

How it works, step by step

  1. Encode data with redundant bits
  2. Transmit or store
  3. Receiver computes syndrome or checksum
  4. Detect and, if possible, correct errors

Open the interactive page with diagrams →

People behind it

References

  1. R. W. Hamming, Bell Syst. Tech. J. 1950, 29, 147–160.
  2. I. S. Reed, G. Solomon, J. Soc. Ind. Appl. Math. 1960, 8, 300–304.

Textbooks

Related topics

Algorithms and Big-O complexityHuman–computer interaction and usabilitySorting algorithms (quicksort, mergesort, heapsort)Testing and debuggingData structures: arrays, linked lists, stacks, queuesPython programming essentialsHash tablesClustering and unsupervised learningTrees and binary search treesDecision trees and ensemble methods