Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Error - Correction
November 15, 2011
A.J. Han Vinck
Error correction is needed in high tech devices
A.J. Han Vinck, rondheim, 2011
2
fundamental limits set by Shannon (1948)
Bell Labs, 1955.
A.J. Han Vinck, rondheim, 2011
!
Fundamental problem: reproducing at the receiver a message selected at the
transmitter
Shannons contribution: - bound on the efficiency (capacity)
- ho to achieve the bound
The Bell System Technical Journal, !ol. "#, pp. $#9%&"$, '"$%'5',
(ctober, 19&).
A.J. Han Vinck 4
"vervie# o$ the %ect&re
' he (osition o$ channe% coding in a comm&nication chain
' )ome channe% mode%s
' *&rst error mode%s
' +etection r&%es
' ,ntro to the coding (rob%em
' (er$ormance
' he c%ass o$ %inear codes
' *o&nds on the minim&m distance
' E-am(%es o$ codes
' .h/ error correction0
A.J. Han Vinck 5
"vervie# o$ the %ect&re
' he (osition o$ channe% coding in a comm&nication chain
' )ome channe% mode%s
' *&rst error mode%s
' +etection r&%es
' ,ntro to the coding (rob%em
' (er$ormance
' he c%ass o$ %inear codes
' *o&nds on the minim&m distance
' E-am(%es o$ codes
' .h/ error correction0
A.J. Han Vinck 6
he comm&nication mode%
so&rce
data
red&ction1
com(ression
data
(rotection
sink
2essage
constr&ction
decoder
k
n
k
34
34
A.J. Han Vinck 7
5oint-to-(oint
transmitter receiver channe%
(h/sica% modem modem
message
bits
)igna%
generator
)igna%
(rocessor
bits
message
A.J. Han Vinck 8
5osition o$ Error Contro% Coding
signal
genera!r
c"annel
#eec!r
k in$%
&is
k !%$%
&is
c"annel
k
c"annel
k in$%
&is
k !%$%
&is
k in$%
&is
signal
genera!r
c!#e# signal genera!r
#eec!r
#eec!r'#ec!#er
n in$%
&is
n
(CC (CC
c!#ing
c!#e# )!#%lai!n
A.J. Han Vinck *
transmission model (OSI)
Data Link
Control
Data Link
Control
Physial Physial
link
6nre%iab%e trans-
mission o$ bits
ransmission o$
re%iab%e (ackets
A.J. Han Vinck +,
)omething to think abo&t
message
bits
bits
message
message
com(ression (rotection o$ bits
correction o$ incorrect bits
decom(ression message
Error correction 25E7, J5E7, etc
Com(ression red&ces bit rate
5rotection increases bit rate
A.J. Han Vinck ++
"vervie# o$ the %ect&re
' he (osition o$ channe% coding in a comm&nication chain
' Some hannel models
' *&rst error mode%s
' +etection r&%es
' ,ntro to the coding (rob%em
' he c%ass o$ %inear codes
' *o&nds on the minim&m distance
' E-am(%es o$ codes
' .h/ error correction0
A.J. Han Vinck +-
2emor/%ess channe%
In$% . /01234 !%$% 5
ransii!n $r!&a&iliies
memor/%ess8
- o&t(&t at time i de(ends on%/ on in(&t at time i
- in(&t and o&t(&t a%(habet $inite
A.J. Han Vinck +6
E-am(%e8 binar/ s/mmetric channe%
9*)C:
(rr!r 7!%rce
8
E
X
O%$%
In$%
E X Y
E is the binar/ error se;&ence s.t. 591: < 1-590: < (
= is the binar/ in$ormation se;&ence
> is the binar/ o&t(&t se;&ence
+9$
, ,
$
:
+
+9$
A.J. Han Vinck +4
$rom A.7N to *)C
{ } E X + '
-
-
-
-
-
+
4 0
n
N
e n p
Home#ork8 ca%c&%ate the ca(acit/ as a $&nction o$ A and
2
(
7a&ssian noise #ith (rob. densit/ $&nction
= < ?1- A > < = ? N
+ecide8 ? or -
-
-
-
-
-
-
+
A
A
e dx e p
x
d
min
W E.
5roo$8
,$ E P d
min
eras&res occ&r, then at %east 1 (osition
is %e$t to disting&ish bet#een an/ t#o code#ords.
Note8 an eras&re is a (osition #here the receiver kno#s that an error occ&red.
d
min
W 2t ?E.
5roo$8
he minim&m distance is red&ced at ma-im&m b/ the va%&e E.
Hence, i$
d
min
- E W 2t
#e can sti%% correct t errors
A.J. Han Vinck 66
Performane for the %ausian hannel
?
-
?
- -
?
E
59eras&re:
59error:
(E
(E
'
Bor an error correcting code8 2t < 2 n 9(
2
?(
!
: error correcting
'
.ith eras&res8 d
min
W n 9(
2
?(
1
: ? 2 n (
!
'
)ince (
2
P (
1
error correction #itho&t eras&res is a%#a/s betterT
(
!
(
!
(
1
(
2
(
!
A.J. Han Vinck 64
"vervie# o$ the %ect&re
' he (osition o$ channe% coding in a comm&nication chain
' )ome channe% mode%s
' *&rst error mode%s
' +etection r&%es
' ,ntro to the coding (rob%em
' (er$ormance
' 1he lass of linear odes
' *o&nds on the minim&m distance
' E-am(%es o$ codes
' .h/ error correction0
A.J. Han Vinck 65
G,NEAE C"+E)
*inar/ codes are ca%%ed %inear i$$
_
,
1
1
1
1
_
1
,
1
<
- < 1 0 1
c < 1 0 1 1 0 1
c H
< 0 0 0
n < 0 1 0 0 0 0
c n < 1 1 1 1 0 1
[c n\ H
< ) < 1 0 1
"bvio&s $ast decoder8 (reca%c&%ate a%% s/ndromes at receiver
$or correctab%e errors
A.J. Han Vinck *5
,n s/stem $orm
c n
Calc%lae
s1n#r!)e
[c n\ H
< )
/recalc%lae#
s1n#r!)es
n_
c n
c n n_
#hen n < n_
then n n_ < 0
H!)e?!rk> c"!!se $ara)eers "a can &e i)$le)ene#
A.J. Han Vinck *6
he (arit/ check matri-
' .e sa# that C < , 7 7 is k - n
,7H
< 0H
is n - n-k
5ro(osition8 "n%/ $or code#ords CH
< 0
5roo$8 take the s/stematic encoder (resentation
- there are 2
n-k
di$$erent s/ndromes
- 2
k
di$$erent vectors ca&se the same s/ndrome
nH
< )H mH
< )H 9n m:H
,
_
+ +
,
_
,
_
k n
- #
, X
+ k n
-
X
+ n
-
<
,
_
,
_
- #
, i
+ n
k
i
+ n
-
-
A.J. Han Vinck **
he (arit/ check matri-
' (ro(ert/
$or a code #ith minim&m distance d
min
< 2t?1,
a%% error events o$ #eight b t give rise to a di$$erent s/ndrome.
Eeason8
,$ not, then the s&m o$ t#o events #ith s&m-#eight %ess than d
min
give the
s/ndrome 0.
his contradicts the ass&m(tion that on%/ code#ords give s/ndrome 0 and
have minim&m #eight d
min
< 2t?1
A.J. Han Vinck +,,
Jee# 7!l!)!n C!#es 0CDD DVD4
:
7r%c%re>
)
k in;!r)ai!n s1)&!ls n9k c"eck s1)&!ls
Properties: )ini)%) #isance < n9k8+ 0s1)&!ls4
leng" -
)
9+
A.J. Han Vinck +,+
7enera% remarks on E) codes
' he genera% (rob%em is the decoding
F E) codes can be decoded &sing
' E&c%ids a%gorithm
' *er%ekam( 2asse/ a%gorithm
A.J. Han Vinck +,-
Eeed-2&%%er based codes 962):
' )tarting code m < 1H C < I 00,01,10,11 J
F has minimum distane *
m&1
F *
m=1
ode 'ords 6 of len0th *
m
' NE. code #ith 2
m?2
code #ords o$ %ength 2
m?1
F 96,6: and 96,6:
distance [ 96,6:, 96,6:\ < 2
m
#h/0 Convince /o&rse%$T
distance [ 96,6:, 9V,V:\ < 2 _ 2
m-1
< 2
m
distance [ 96,6:, 9V,V:\ < 2 _ 2
m-1
< 2
m
9&se com(%.(ro(.:
A.J. Han Vinck +,6
Eeed-2&%%er based codes 962):
)&((ose #e have a generator 7 $or certain m
he constr&ction o$ 7 $or m?1 is sim(%e
E-am(%e8
m < 1 m<2 m < ! etc.
7 < 01 7 < 0 1 0 1 0 1 0 1 0 1 0 1
11 1 1 1 1 1 1 1 1 1 1 1 1
0 0 1 1 0 0 1 1 0 0 1 1
0 0 0 0 1 1 1 1
'
d
min
< 1 2 A c
A.J. Han Vinck +,4
Eeed-2&%%er based codes 962):
' *asis $or constr&ction
' ake 2 %inear code generators 71 and 72
' o$ %ength n
' and minim&m distance +1 and +2, res(ective%/
' hen, 71 71
7 < has d
min
< minI2+1,+2J
0 72
' 5roo$T
A.J. Han Vinck +,5
,)*N n&mbering code
'
$or the ,)*N n&mbers 9a
1
, a
2
, c, a
10
: #e have
#here
'
.e &se a s(ecia% s/mbo% = in case a
10
< 10.
' A sing%e transmission error gives as a res&%t
since 11 is a (rime n&mber.
(ote) check that the code can a%so detect a do&b%e trans(osition 9interchange o$ 2 n&mbers:.
++ )!# , ia
+,
+ i
i
. ++ )!# , a ia a +, ia
+,
*
+ i
i +,
*
+ i
i
+
D ++ )!# , Xe Xe ia
X X
+,
+ i
i
+
4D + n - )!#0 X ' a Xe i3
X
n
+ i
i
+ + +
+ n -
-
2 C 2
n
+
< [* E9E:\ H
< *4 H
-nrollment) -nrollment)
) < * E9E:
random E
Condition8
given ) and Hash9E:
it is hard
to estimate *, E
store )
Hash9E:
E
*
E9E:
12!
*inar/ entro(/
inter(retation8
%et a binary se;&ence contain (n ones, then
#e can s(eci$/ each se;&ence #ith
%og
2
2
nh9(:
< n h9(: bits
0 4
-
nh p
n
pn
_
,
4 $ 0 "
$n
n
l!g
n
+
li)
-
n
,
_
Home#ork8 5rove the a((ro-imation &sing %n NT e N %nN $or N %arge.
6se a%so %og
a
- < / %og
b
- < / %og
b
a
he )tir%ing a((ro-imation
Q -
N N
N NN e
12"
0 0. 1 0. 2 0. 3 0. 4 0.5 0. 6 0.7 0. 8 0. 9 1
0
0. 1
0. 2
0. 3
0. 4
0. 5
0. 6
0. 7
0. 8
0. 9
1
p
h
T+e /inary Entropy> "0$4 < 9$l!g
-
$ = 0+9$4 l!g
-
0+9$4
N!e>
"0$4 < "0+9$4