Repetition and Hamming Codes
Repetition and Hamming Codes
AND
REPETITION CODES
Reporter:
CHRISTINE LOVE S. GUMISAD BSCRIM-1A
What is a Hamming code?
Satellites
Computer Memory
Modems
PlasmaCAM
Open connectors
Process of Encoding a message using Hamming Code
It should cover all the bit positions whose binary representation should include a
1 in the 1st position excluding the position of p1.
P1 is the parity bit for every data bits in positions whose binary representation
includes a 1 in the less important position not including 1 Like (3, 5, 7, 9, …. )
P2 is the parity bit for every data bits in positions whose binary representation
include 1 in the position 2 from right, not including 2 Like (3, 6, 7, 10, 11,…)
P3 is the parity bit for every bit in positions whose binary representation
includes a 1 in the position 3 from right not include 4 Like (5-7, 12-15,… )
Process of Decrypting a Message in Hamming code
You can use the same formula for encoding, the number of redundant bits
2p ≥ n + p + 1
Here, the number of data bits and p is the number of redundant bits.
p1 = parity(1, 3, 5, 7, 9, 11…)
FORMULA: 2r + 1
Example: