The hamming distance function, a fundamental concept in error correcting codes used to find the distance between binary codewords in digital communications. The function is calculated by xoring two binary strings and then determining the number of 1's in the resulting string.
Download Importance of Hamming Distance in Error Correction: Calculation in Binary Strings and more Slides Discrete Structures and Graph Theory in PDF only on Docsity!
Functions on Binary Strings
Let Σ = {0,1} represent the binary alphabet. We consider the following functions involving binary strings:
Length: L:Σ* → N defined as L( s ) = length of s.
Density: d:Σ* → N defined as d( s ) = # 1’s in s.
Hamming Distance Function: H:Σ n^ x Σ n^ → N defined as H( s,t ) = # places where s and t disagree.
For example, L(101100) = 6, d(101100) = 3, and H(101100,100110) = 2.
7.1.
Docsity.com
Hamming Distance Function
The Hamming Distance function is of fundamental importance in the world of Error Correcting Codes, to find the distance between binary codewords in digital communications.