Nepedia
Back to Discover
Independent Reader
💻

Hamming code

technology Maturity 7-9 Next article →

Computers use bits to store data. Sometimes, a bit flips to the wrong value. This is called an error. In 1950, Richard Hamming made a way to fix this. He wanted to stop computers from stopping when errors happened.

Hamming(7,4)
Hamming(7,4)

Before his work, people used a simple parity code. This code adds one extra bit to check for mistakes. It can tell if an error happened. But it cannot fix the mistake. It also cannot tell which bit is wrong. The computer must start the whole job over. This takes a lot of time.

Hamming codes are much better. They are error-correcting codes. This means they can find and fix a wrong bit. They do this by adding special bits called parity bits. These bits overlap. Each data bit is checked by many different parity bits.

Hamming(7,4)
Hamming(7,4)

If one bit changes, the code finds its exact spot. Then, it fixes it. This is very useful for computer memory. We call this ECC memory. It helps keep data safe and keeps the computer running fast.

173 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Hamming(7,4).svg
Hamming(7,4).svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.