D
D
Dex_Morgan2015-10-09 01:01:30
Algorithms
Dex_Morgan, 2015-10-09 01:01:30

What is Hamming distance?

I started reading the Tanenbaum Computer Architecture, it described a method for correcting errors through the Hamming distance, but I didn’t understand anything, tell me where it is explained in an accessible language how it works?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nadz Goldman, 2015-10-09
@Dex_Morgan

FIG knows how to explain in an accessible way, but I'll try.
For example, there are two vectors A 1 and A 2 .
The length of A 1 is 10 and the length of A 2 is 10.
The distance will be the same because there are no discrepancies.
If you increase the length of one of the vectors, then the difference in lengths will just be the Hamming distance.
But this is a bad example, but a good place to start.
Another example closer to life.
Let's take two strings (in the same place, the length of the compared objects must be the same everywhere).
For example, let it be like this:
$a = "abcdef";
$b = "abcfe";
We have the same string lengths, but they are bit-by-bit different, so you can find the distance.
It will be equal to two: in the first and second line, the last two bytes are different.
That is, having two strings of the same length, we compare them byte by byte and the number of different bytes is the Hamming distance.
I'm not very sure that this is the right explanation, but I hope it gets the point across.

S
Saboteur, 2015-10-09
@saboteur_kiev

https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D1%81%D...
What is not clear here?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question