Beruflich Dokumente
Kultur Dokumente
t
i=0
_
n
i
_
(q 1)
i
.
Remark: Volume does not depend on the center. Denote it by V (t)
Hamming bound (sphere-packing bound): For a code of length n and
distance d, the number of codewords satises
M q
n
/V
__
d1
2
__
= q
n
/
_
d1
2
|
i=0
_
n
i
_
(q 1)
i
_
.
Proof: Let t =
_
d1
2
_
. Let ( = c
1
, , c
M
. Clearly, B (c
i
, t)s are
disjoint, 1 i M. Hence, M V (B (e)) q
n
.
Perfect codes: the codes that attain the Hamming bound.
Hamming code is a perfect code.
Perfect codes are rare (Hamming codes & Golay codes).
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 6
Gilbert-Varshamov Bound
Gilbert-Varshamov (sphere covering) bound: For given code length n
and distance d, there exists a code with number of codewords
q
n
/V (d 1) M.
Proof: Its proved by construction. Let M
0
= ,q
n
/V (d 1)| > 1.
Take an arbitrary c
1
F
n
q
. Since F
n
q
B (c
1
, d 1) ,= , take arbitrary
c
2
F
n
q
B (c
1
, d 1). Clearly, d (c
1
, c
2
) d.
Inductively, suppose that we have obtained codewords c
1
, , c
M
0
1
in this way.
Since Vol
_
M
0
1
i=1
B (c
i
, d 1)
_
(M
0
1) V (d 1) < q
n
,
F
n
q
M
0
1
i=1
B (c
i
, d 1) ,= . Take arbitrary
c
M
0
F
n
q
M
0
1
i=1
B (c
i
, d 1) ,= . Clearly, d (c
M
0
, c
i
) d as
c
M
0
/ B (c
i
, d 1) for all 1 i M
0
1.
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 7
Illustration for Sphere Packing and Covering
Sphere Packing Sphere Covering
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 8
Improved Gilbert-Varshamov Bound for Linear Codes
Improved G-V bound for linear codes: For given n, d, k such that
d2
i=0
_
n1
i
_
(q 1)
i
< q
nk
, there exists an [n, k] linear code over F
q
with minimum distance at least d.
Proof: We shall show that an (n k) n matrix H such that every
d 1 columns of H are linearly independent. We construct H as
follows.
Let h
1
be any nonzero vector in F
nk
q
. Let h
2
be any vector not in
span(c
1
). Let h
3
be any vector not in span([c
1
, c
2
]). .
Inductively, suppose that we have constructed H
of size
(n k) (n 1) such that every d 1 columns of H
are linearly
independent. Note that the number of vectors in the linear span of
d 2 or fewer columns of H
is given by
d2
i=0
_
n1
i
_
(q 1)
i
. Since
d2
i=0
_
n1
i
_
(q 1)
i
< q
nk
, h F
nk
q
such that every d 1 columns
of the resulting H = [H
cC
C
d (c, c
). Since d d (c, c
) for c ,= c
, we
have M (M 1) d T.
2) Let A be the M n matrix whose rows are the codewords. Let n
i,a
denote the number of entries in the i
th
column of A that are equal to a.
Then
aF
n
i,a
= M for all i. We have T =
n
i=1
(
d (c
i
, c
i
)) =
n
i=1
aF
n
i,a
(M n
i,a
) = M
2
n
n
i=1
aF
n
2
i,a
.
3) By Cauchy-Schwarz inequality,
_
aF
n
i,a
_
2
q
aF
n
2
i,a
. Hence,
T M
2
n
n
i=1
q
1
_
aF
n
i,a
_
2
= rM
2
n. Therefore,
M
2
(d rn) Md.
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 10
Cauchy-Schwarz Inequality and Proof
Cauchy-Schwarz Inequality: For real numbers x
1
, , x
n
and
y
1
, , y
n
,
(
m
i=1
x
i
y
i
)
2
(
m
i=1
x
i
)
2
(
m
i=1
y
i
)
2
.
Proof: It hold if either x or y is 0.
Assume that both x and y are nonzero. Dene z = rx +y.
Then 0 |z|
2
2
= r
2
|x|
2
2
+ 2r x, y + |y|
2
2
for all r R.
This implies b
2
4ac = 4 x, y
2
4 |x|
2
2
|y|
2
2
0, i.e.,
x, y
2
|x|
2
2
|y|
2
2
.
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 11
Dual of Binary Hamming Codes
(1
r
)
= o
r
_
2
r
1, r, (n + 1) /2 = 2
r1
is an MDS code.
Proof: It is clear that 12 and 34 as G is the parity-check matrix of
(
is
k + 1.
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 14
Proof of Properties of MDS codes
Suppose that d
with at most
k nonzero entries and at least n k zeros. Since permuting the
coordinates reserves the codeword weights (i.e., the distance), w.l.o.g.,
assume that the last n k coordinates of c are 0.
Write H = [A, H
] where A F
(nk)k
q
and H
F
(nk)(nk)
q
. From
assumption 1 (and hence 2), the columns of H
are linear
independent. Hence, H
= k + 1. Hence, 14.
Hamming codes are not MDS in general.
Dr. Wei Dai (Imperial College) Introduction to Coding Theory Autumn 2011 15
Summary
Examples of linear codes
Hamming codes
Simplex codes
Coding Bounds
Plotkin bound