Gilbert–Varshamov bound for linear codes explained
. This may be translated into a statement about the maximum rate of a code with given length and minimum distance. The Gilbert–Varshamov bound for
linear codes asserts the existence of
q-ary linear codes for any relative minimum distance less than the given bound that simultaneously have high rate. The existence proof uses the
probabilistic method, and thus is not constructive.The Gilbert–Varshamov bound is the best known in terms of relative distance for codes over alphabets of size less than 49. For larger alphabets,
algebraic geometry codes sometimes achieve an asymptotically better rate vs. distance tradeoff than is given by the Gilbert–Varshamov bound.
[1] Gilbert–Varshamov bound theorem
Theorem: Let
. For every
0\leqslant\delta<1-\tfrac{1}{q}
and
0<\varepsilon\leqslant1-Hq(\delta),
there exists a
-ary linear code with rate
R\geqslant1-Hq(\delta)-\varepsilon
and relative distance
Here
is the
q-ary entropy function defined as follows:
Hq(x)=xlogq(q-1)-xlogqx-(1-x)logq(1-x).
The above result was proved by Edgar Gilbert for general codes using the greedy method. Rom Varshamov refined the result to show the existence of a linear code. The proof uses the probabilistic method.
High-level proof:
To show the existence of the linear code that satisfies those constraints, the probabilistic method is used to construct the random linear code. Specifically, the linear code is chosen by picking a generator matrix
whose entries are randomly chosen elements of
. The minimum
Hamming distance of a linear code is equal to the minimum weight of a nonzero codeword, so in order to prove that the code generated by
has minimum distance
, it suffices to show that for any
m\in
\smallsetminus\left\{0\right\},\operatorname{wt}(mG)\ged
. We will prove that the probability that there exists a nonzero codeword of weight less than
is exponentially small in
. Then by the probabilistic method, there exists a linear code satisfying the theorem.
Formal proof:
By using the probabilistic method, to show that there exists a linear code that has a Hamming distance greater than
, we will show that the
probability that the random linear code having the distance less than
is exponentially small in
.
The linear code is defined by its generator matrix, which we choose to be a random
generator matrix; that is, a matrix of
elements which are chosen independently and uniformly over the field
.
Recall that in a linear code, the distance equals the minimum weight of a nonzero codeword. Let
be the weight of the codeword
. So
\begin{align}
P&=\PrrandomG(linearcodegeneratedbyGhasdistance<d)\\[6pt]
&=\PrrandomG(thereexistsanon-zerocodewordyinalinearcodegeneratedbyGsuchthat\operatorname{wt}(y)<d)\\[6pt]
&=\PrrandomG\left(thereexists0 ≠ m\in
suchthat\operatorname{wt}(mG)<d\right)
\end{align}
The last equality follows from the definition: if a codeword
belongs to a linear code generated by
, then
for some vector
.
By Boole's inequality, we have:
P\leqslant
\PrrandomG(\operatorname{wt}(mG)<d)
Now for a given message
we want to compute
W=\PrrandomG(\operatorname{wt}(mG)<d).
Let
be a Hamming distance of two messages
and
. Then for any message
, we have:
\operatorname{wt}(m)=\Delta(0,m)
. Therefore:
W=
\sum | |
| \{y | \in|\Delta(0,y)\leqslantd-1\ |
|
} \Pr_ (mG = y)
Due to the randomness of
,
is a uniformly random vector from
. So
Let
be the volume of a Hamming ball with the radius
. Then:
[2] P\leqslantqkW=qk\left(
| \operatorname{Vol |
q(d-1,n)}{q |
n}\right)\leqslantqk\left(
\right)=qk
By choosing
k=(1-Hq(\delta)-\varepsilon)n
, the above inequality becomes
Finally
, which is exponentially small in n, that is what we want before. Then by the probabilistic method, there exists a linear code
with relative distance
and rate
at least
(1-Hq(\delta)-\varepsilon)
, which completes the proof.
Comments
- The Varshamov construction above is not explicit; that is, it does not specify the deterministic method to construct the linear code that satisfies the Gilbert–Varshamov bound. A naive approach is to search over all generator matrices
of size
over the field
to check if the linear code associated to
achieves the predicted Hamming distance. This exhaustive search requires exponential runtime in the worst case.
- There also exists a Las Vegas construction that takes a random linear code and checks if this code has good Hamming distance, but this construction also has an exponential runtime.
- For sufficiently large non-prime q and for certain ranges of the variable δ, the Gilbert–Varshamov bound is surpassed by the Tsfasman–Vladut–Zink bound.[3]
See also
References
Notes and References
- Tsfasman . M.A. . Vladut . S.G. . Zink . T. . Modular curves, Shimura curves, and Goppa codes better than the Varshamov-Gilbert bound . Mathematische Nachrichten . 1982 . 104.
- The later inequality comes from the upper bound of the Volume of Hamming ball
- Stichtenoth. H.. 2006. Transitive and self-dual codes attaining the Tsfasman-Vla/spl breve/dut$80-Zink bound. IEEE Transactions on Information Theory. 52. 5. 2218–2224. 10.1109/TIT.2006.872986. 11982763 . 0018-9448.