
1
1
Rectangular Codes
• Triplication codes:
m1 m2m3 ••••
m1m1m1 m2m2m2 m3m3m3 ••••
Repeated 3 times
At receiving end, a majority vote is taken.
2
Error detection and correction
Slides based on unknown ous
contributor on the web…
3
•Rectangular codes:
Redundancy:
o o o • • • o x
o o o • • • o x
o o o • • • o x
••• •
••• •
••• •
o o o • • • o x
x x x x x
m-1
n-1
o = message p osition
x = check position
It’d better use even-parity
checking to av oid contradiction
sum mod 2
)1)(1(
1
)1(
1
)1(
1
1−−
+
−
+
−
+nmnm
)
)1)(1(
1)1()1()1)(1(
)1)(1(
(−−
+−+−+−−
=
−− nm
nmnm
nm
mn
∵
4
• For a given size mn, the redu ndancy will be
smaller the more t he rectangle appr oaches a square.
• For square codes of size n,we have (n -1)2
bits of information. An d 2n-1 bits of checking along
the sides.
• Note that: Rectang ular codes also can c orrect
bursty error.
•(k2+1)x(k1+1) array code
If k2≥2(k1-1) ⇒we can correct k1 size of bursty
errors
5
3.4 Hamming Error-correcting codes
• Find the bes t encoding schem e for single-error
correction for white nois e.
• Suppose the re are mindependent parity checks.
→It means no sum of a ny combination of th e
checks is any other check.
• Exa mple: check 1 : 1 2 5 7 --- (1)
check 2 : 5 7 8 9 --- (2)
check 3 : 1 2 8 9 --- (3)
It is not independent, because (1)+(2)=(3)
• So third par ity check provides no new
information over that of the first two, and is
simply wasted effort.
6
• The syndro me which results f rom writing a 0 for
each of the mparity checks that is correct and 1
for each failure ca n be viewed as an m-bit
number and can repr esent at most 2mthi ngs.
•For nbits of the mess age,
2m≥n + 1
It is optimal when m eets the equality co ndition.
( Hamming Codes )
• Using Syndro me to find out the positio n of errors.
The ideal situation is to use the value of
Syndrome to point out the positi on of errors.