Error Correction Methodshamming Code
Error Correction Methodshamming Code
METHODS
TWO METHODS
Redundancy bits = r
4
HISTORY
In the late 1940’s Richard Hamming recognized that the
further evolution of computers required greater
reliability, in particular the ability to not only detect
errors, but correct them. His search for error-correcting
codes led to the Hamming Codes, perfect 1-error
correcting codes, and the extended Hamming Codes, 1-
error correcting and 2-error detecting codes.
HAMMING CODES
1. One of the most effective codes for error-recovery
2. Used in situations where random errors are likely to occur
3. Error detection and correction increases in proportion to the
number of parity bits (error-checking bits) added to the
end of the information bits
Data compression
Some solutions to the popular puzzle The
Hat Game
Error Correction
HAMMING CODE:
NUMBER OF REDUNDANT BITS
Number of Number of Total
data bits redundancy bits bits
k r k+r
1 2 3
2 3 5
3 3 6
4 3 7
5 4 9
6 4 10
7 4 11
9
Hamming Code
Hamming Code
Hamming Code
Example of Hamming Code
Single-bit error
Error
Detection
THE HAT GAME
A group of n players enter a room whereupon they each
receive a hat. Each player can see everyone else’s hat
but not his own.
The players must each simultaneously guess a hat color,
or pass.
The group loses if any player guesses the wrong hat
color or if every player passes.
Players are not necessarily anonymous, they can be
numbered.
THE HAT GAME
Assignment of hats is assumed to be random.
The players can meet beforehand to devise a strategy.