SUNY Geneseo Department of Computer Science


Hamming Distance and Error Detection/Correction

CSci 380, Fall 2003

Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Questions?

Error Correction/Detection

Error detection: Are one or more bits in a word read from memory not what were stored?

Error correction: If not, what bits were stored?

Typical cost measure: how many bits of error detection/correction information do you need, as a function of the number of bits protected.

Typical performance measure is how many bit errors are detected/corrected

Theoretical basis for error detection and correction, esp. minimum costs

To detect n bit errors, code needs Hamming distance n+1

[Bits in a Word Changed]

To correct n bit errors code needs Hamming distance 2n + 1

[n Errors Moves Less than Half the 2n+1 Steps in Code Graph to Nearest Code Word]

Claim: to detect n errors (in n-bit word), keep 2 copies of the word

[Duplicated Word with 2 Corresponding Bits Changed]

Error correction (Hamming code)

[Parity Bits by Binary Representation of Bit Positions]


Next Lecture