Professional Documents
Culture Documents
Dr D D Karunaratna
Spheres defined in (Fq)n
Definition : For any vector u in (Fq)n and any integer r ≥ 0,
the sphere of radius r and centre u, denoted by S(u,r), is the
set {v (Fq)n | d(u,v) ≤ r}
(Fq)n
u
r
Spheres defined in (Fq)n
Now consider a code C such (Fq)n
that d(C ) ≥ 2t + 1 for some
positive integer t. v
u
Question: Can the spheres with
radius t of the code words of C
be overlapping?
Spheres defined in (Fq)n
Assume that spheres of two (Fq)n
code words u and v overlaps.
Let a vector y in the y v
overlapping area. u
(Fq)n
u t v t
m t n t
Spheres defined in (Fq)n
1) Can we correct any vector received in a transmission if it lies inside a sphere of a
code word? For example the vector x
2) To which codeword should we convert that vector?
3)Can we correct any vector received in a transmission if it lies outside a sphere of a
code word? For example the vector y.
4) Up to how many errors in a received vector can be corrected?
(Fq)n
x
u t v t
y
m t n t
Spheres defined in (Fq)n
1) Can we correct any vector received in a transmission if it lies inside a sphere of a
code word? For example the vector x - Yes
2) To which codeword should we convert that vector? To the vector u
3)Can we correct any vector received in a transmission if it lies outside a sphere of a
code word? For example the vector y. No
4) Up to how many errors in a received vector can be corrected? t errors
(Fq)n
x
u t v t A code C can correct up to t errors in any
y codeword if d(C ) ≥ 2t + 1
m t n t
Vectors having a specific distance from
a given vector.
Let q = {0,1,2}. How many vectors in (Fq)3 have distance
exactly 2 from the vector 111?
Vectors having a specific distance from
a given vector.
Let q = {0,1,2}. How many vectors in (Fq)3 have distance
exactly 2 from the vector 111?
1. Select any 2 position of 111. (This can be done in 3C2 ways.)
2. Fill each of these positions from a value in q other than 1.
Number of vectors having
111 111 111 distance exactly 2 from 111
=3x2x2
001 = 3C2 x (3-1)2
021
201
221
2 x 2 ways
Number of vectors in a spear.
Let u be a vector in (Fq)n
Let m be an integer such that m ≤ r.
How many vectors have distance exactly m from u?
(Fq)n
m
u
r
Number of vectors in a spear.
How many vectors have distance exactly m from u?
n
Select m position from n positions in u. This can be
m
= | (Fq)n |
Sphere-packing (Hamming) Bound
We have seen that the spheres or radius t of M code words of a q-
array(n,M,2t+1)-code are disjoint.
This value should be less than or equal to the total number of vectors in
(Fq)n = q n
Sphere-packing (Hamming) Bound
Theorem (sphere-packing or Hamming bound):
A q-array(n,M,2t+1)-code satisfies
M*(nC0 + nC1 * (q-1) +…….+ nCt * (q-1)t ) ≤ q n
However, we have seen that binary(5,5,3) code does not exists and A2(5,3) = 4
00000
01101
10110
11011
Sphere-packing (Hamming) Bound ..
Example :
What should be A2(7,3)?
Sphere-packing (Hamming) Bound ..
Example :
What should be A2(7,3)?
000…..0
111…...1