Can you give an example of a real error correction code?
From NCERTAsked by Anonymous from Dallas, United States23 Oct 2026, 7:16 PM ISTUpdated
In one line
A real error correction code is the Hamming code, which can find and fix single-bit errors in data.
Richard Hamming — American mathematician and information theorist (1915–1998) Richard Hamming, who invented the Hamming code in 1950 to fix errors in data transmission. Image: Wikipedia
The rule
Error correction codes add extra bits to data, so mistakes can be found and fixed when the data is received.
For Hamming code (7,4):
4 data bits + 3 parity bits = 7 bits sent.
Each parity bit checks a different set of data bits.
The formula
7 bits = 4 data bits + 3 parity bits
7 bitstotal bits sent
4 data bitsactual information
3 parity bitserror-checking bits
Let's understand it simply
Imagine you are sending a message to your friend using paper chits. But you worry a letter might get smudged. So, you add some extra clues (like hints) at the end of your message. If your friend sees a mistake, they use your clues to guess what the correct letter was.
Hamming code does the same. It adds extra bits (called parity bits) to your data. If one bit gets changed by mistake, the code helps the receiver spot where the error is and fix it.
How it works
Write your 4 data bits (for example: 1 0 1 1).
Add 3 parity bits in certain positions (positions 1, 2, and 4).
Each parity bit checks a different set of data bits (using even or odd count of 1s).
Send all 7 bits together.
If one bit changes during transmission, the receiver checks the parity bits to find which bit is wrong.
The receiver flips that bit back to correct the error.
How Hamming Code Works
Write 4 data bits
Add 3 parity bits in positions 1, 2, 4
Calculate parity bits based on data bits
Send all 7 bits
Receiver checks parity to find any single-bit error
Correct the error if found
The story behind it
Richard Hamming, an American mathematician, invented the Hamming code in 1950. He worked at Bell Labs and wanted to fix errors in data sent over telephone lines. He was frustrated when his computer jobs failed due to tiny mistakes, so he created a way for machines to fix errors automatically.
Where you see it in real life
CDs and DVDs: Hamming codes help fix scratches and dust errors on discs.
RAM in computers: Some memory chips use Hamming code to catch and fix single-bit errors.
Satellite communication: Data sent from satellites uses error correction to survive noise in space.
Mobile phones: When you call someone, error correction helps your voice sound clear even if the signal is weak.
Bank ATMs: Codes help make sure the numbers in your transaction are correct.
Why it matters
Keeps your data safe from small mistakes during transfer.
Used in almost every digital device — phones, computers, satellites.
Helps prevent money loss, miscommunication, and system crashes.
Forms the base for more advanced codes used in internet and mobile networks.