In coding theory, the Gilbert–Varshamov bound (due to Edgar Gilbert[1] and independently Rom Varshamov[2]) is a bound on the size of a (not necessarily linear) code. It is occasionally known as the Gilbert–Shannon–Varshamov bound (or the GSV bound), but the name "Gilbert–Varshamov bound" is by far the most popular. Varshamov proved this bound by using the probabilistic method for linear codes. For more about that proof, see Gilbert–Varshamov bound for linear codes.
Recall that a code has a minimum distance
d
d
Aq(n,d)
denote the maximum possible size of a q-ary code
C
Fq
Then:
Aq(n,d)\geqslant
qn | |||||||||
|
{j}(q-1)j}.
Let
C
n
d
|C|=Aq(n,d).
Then for all
n | |
x\inF | |
q |
cx\inC
d(x,cx)
x
cx
d(x,cx)\leqslantd-1
since otherwise we could add x to the code whilst maintaining the code's minimum Hamming distance
d
|C|
Hence the whole of
n | |
F | |
q |
d-1
c\inC
n | |
F | |
q |
=cupcB(c,d-1).
Now each ball has size
d-1 | |
\sum | |
j=0 |
\binom{n}{j}(q-1)j
since we may allow (or choose) up to
d-1
n
(q-1)
n | |
F | |
q |
qn=\left
n | |
|F | |
q |
\right|=\left|cupcB(c,d-1)\right|\leqslant\sumc|B(c,d-1)|=
d-1 | |
|C|\sum | |
j=0 |
\binom{n}{j}(q-1)j
That is:
Aq(n,d)=|C|\geqslant
qn | |||||||||
|
{j}(q-1)j}.
For q a prime power, one can improve the bound to
Aq(n,d)\geqk
qk<
qn | |||||||||
|
{j}(q-1)j}.