Hamming bound
In mathematics and computer science, in the field of coding theory, the Hamming bound is a limit on the parameters of an arbitrary block code: it is also known as the sphere-packing bound or the volume bound from an interpretation in terms of packing balls in the Hamming metric into the space of all possible words.[src] It gives an important limitation on the efficiency with which any error-correcting code can utilize the space in which its code words are embedded.[src] A code that attains the Hamming bound is said to be a perfect code.[src]
In mathematics and computer science, in the field of coding theory, the Hamming bound is a limit on the parameters of an arbitrary block code: it is also known as the sphere-packing bound or the volume bound from an interpretation in terms of packing balls in the Hamming metric into the space of all possible words.[src] It gives an important limitation on the efficiency with which any error-correcting code can utilize the space in which its code words are embedded.[src] A code that attains the Hamming bound is said to be a perfect code.[src] ==Background on error-correcting codes== An original message and an encoded version are both composed in an alphabet of q letters.[src] Each code word contains n letters.[src] The original message (of length m) is shorter than n letters.[src] The message is converted into an n-letter codeword by an encoding algorithm, transmitted over a noisy channel, and finally decoded by the receiver.[src] The decoding process interprets a garbled codeword, referred to as simply a word, as the valid codeword "nearest" the n-letter received string.[src] Mathematically, there are exactly q m possible messages of length m, and each message can be regarded as a vector of length m.[src] The encoding scheme converts an m-dimensional vector into an n-dimensional vector.[src] Exactly q m valid codewords are possible, but any one of q n words can be received because the noisy channel might distort one or more of the n letters when a codeword is transmitted.[src] ===Preliminary definitions=== An alphabet set \mathcal{A}_q is a set of symbols with q elements.[src] The set of strings of length n on the alphabet set \mathcal{A}_q are denoted \mathcal{A}_q^n .[src] (There are q^n distinct strings in this set of strings.) A q -ary block code of length n is a subset of the strings of \mathcal{A}_q^n , where the alphabet set \mathcal{A}_q is any alphabet set having q elements.[src] (The choice of alphabet set \mathcal{A}_q makes no difference to the result, provided the alphabet is of size q .) ===Defining the bound=== Let \ A_q(n,d) denote the maximum possible size of a q -ary block code \ C of length n and minimum Hamming distance d between elements of the block code (necessarily positive for q^n > 1 ).[src] Then, the Hamming bound is: \ A_q(n,d) \leq \frac{q^n}{\sum_{k=0}^t \binom{n}{k}(q-1)^k} where t=\left\lfloor\frac{d-1}{2}\right\rfloor.[src] ==Proof== It follows from the definition of d that if at most t = \left\lfloor\frac{1}{2}(d-1)\right\rfloor errors are made during transmission of a codeword then minimum distance decoding will decode it correctly (i.e., it decodes the received word as the codeword that was sent).[src] Thus the code is said to be capable of correcting t errors.[src] For each codeword c \in C , consider a ball of fixed radius t around c .[src] Every pair of these balls (Hamming balls) are non-intersecting by the t -error-correcting property.[src] Let m be the number of words in each ball (in other words, the volume of the ball).[src] A word that is in such a ball can deviate in at most t components from those of the ball's centre, which is a codeword.[src] The number of such words is then obtained by choosing up to t of the n components of a codeword to deviate to one of (q-1) possible other values (recall, the code is q -ary: it takes values in \mathcal{A}_q^n ).[src] Thus, m = \begin{matrix} \sum_{k=0}^t \binom{n}{k}(q-1)^k \end{matrix}.[src] A_q (n,d) is the (maximum) total number of codewords in C , and so, by the definition of t , the greatest number of balls with no two balls having a word in common.[src] Taking the union of the words in these balls centered at codewords, results in a set of words, each counted precisely once, that is a subset of \mathcal{A}_q^n (where |\mathcal{A}_q^n| = q^n words) and so: A_q(n,d) \times m = A_q(n,d) \times \begin{matrix} \sum_{k=0}^t \binom{n}{k}(q-1)^k \end{matrix} \leq q^n.[src] Whence: A_q(n,d) \leq \frac{q^n}{ \begin{matrix} \sum_{k=0}^t \binom{n}{k}(q-1)^k \end{matrix}}.[src] ==Covering radius and packing radius== For an A_q(n,d) code C (a subset of \mathcal{A}_q^n ), the covering radius of C is the smallest value of r such that every element of \mathcal{A}_q^n is contained in at least one ball of radius r centered at each codeword of C.[src] The packing radius of C is the largest value of s such that the set of balls of radius s centered at each codeword of C are mutually disjoint.[src] From the proof of the Hamming bound, it can be seen that for t\,=\,\left\lfloor\frac{1}{2}(d-1)\right\rfloor , we have: s ≤ t and t ≤ r.[src] Therefore, s ≤ r and if equality holds then s = r = t.[src] The case of equality means that the Hamming bound is attained.[src] Codes that attain the Hamming bound are called perfect codes.[src] Examples include codes that have only one codeword, and codes that are the whole of \mathcal{A}_q^n .[src] Another example is given by the repeat codes, where each symbol of the message is repeated an odd fixed number of times to obtain a codeword where q = 2.[src] All of these examples are often called the trivial perfect codes.[src] In 1973, Tietäväinen proved that any non-trivial perfect code over a prime-power alphabet has the parameters of a Hamming code or a Golay code.[src] A perfect code may be interpreted as one in which the balls of Hamming radius t centered on codewords exactly fill out the space (t is the covering radius = packing radius).[src] A quasi-perfect code is one in which the balls of Hamming radius t centered on codewords are disjoint and the balls of radius t+1 cover the space, possibly with some overlaps.[src] Another way to say this is that a code is quasi-perfect if its covering radius is one greater than its packing radius.[src] ==See also== Gilbert-Varshamov bound Griesmer bound Johnson bound Plotkin bound Rate-distortion theory Singleton bound ==Notes==[src]
44 sentences · 44 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Hamming bound." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hamming-bound. Accessed 26 November 2026.
Chicago
"Hamming bound." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/hamming-bound.
APA
encyclopegia.org. (2026). Hamming bound. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/hamming-bound
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON