Open In App

Concepts of hamming distance

Hamming Distance Problem: In general, it is assumed that it is more likely to have fewer errors than more errors. This “worst-case” approach to coding is intuitively appealing within itself. Nevertheless, it is closely connected to a simple probabilistic model where errors are introduced into the message independently for each symbol and with a fixed probability p < 1/2. In order to talk about the “number of errorshamming distance is introduced.

Definition: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. It is not dependent on the actual values of xi and yi but only if they are equal to each other or not equal.



Proposition: The function d is a metric. That is, for every x, y, z ∈ AN:

Rule for Decoding: Below are the rules:



Formalized Notion:
Let C be a code. The distance of the code, denoted d(C), is defined by:
 d(C) = min{d(c1, c2) | c1, c2 ∈ C, c1 6= c2}

An (N, M)-code of distance d is called an (N, M, d)-code. The values N, M, d are called the parameters of the code. 

Article Tags :