Hamming distance

Joined
Sep 20, 2022
Messages
319
Reaction score
41
I've been thinking about error correcting codes. Reed-Solomon in particular. The wikipedia article is a tough read, but I don't think the math needs to be so complicated.

If I'm using 10 bits, and I want to detect and correct 2 bit errors, I need to find codes that have a Hamming distance >4.

I did some random searches, and the best group of codes had 12 members.

Using that in the simplest way gives me 3 bits of data, and 7 non-data.

I don't know if 12 is the maximum, but my gut tells me there's a simple way to construct the codes. I hope so, because my random approach won't work for more bits.
 
Joined
Sep 20, 2022
Messages
319
Reaction score
41
This is not going well at all. This might be a computationally hard problem.

I'll settle for limiting myself to 10 bits and proving 12 codes is the maximum.

I'm trying a backtracking search, but it is far too slow.
 
Joined
Sep 20, 2022
Messages
319
Reaction score
41
A tricky subject.

Do you ever get the impression that people who write wikipedia articles are just explaining a subject to people who already understand it?

I'll stick to 7 bit Hamming codes, and let university students wrangle with 23 bit binary Golay codes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,417
Messages
2,571,575
Members
48,797
Latest member
shadowoftheunknown

Latest Threads

Top