Professional Documents
Culture Documents
Module 1 - Part 2
Module 1 - Part 2
Codewovd
Set ofbinavy seguences that are assgneel to alphebets
Example
cocdewovel
Lettevs
Alphabet
a3
a4
Defintion
he conversion of the output of a ousCYete memovyless
binay4
Discvete Source
memoryless encooleY
SouYce Coms) Seouence
noal (o objectiue
DRecduce equived. banokwicdth
Reckundank bits ave extva binary ligits thak are generatecd and
Data so m
Source k3
Destinakion
Compresston
is bouncdeol as L H(x)
codecworol lenqth L pev symbol
H )
x e d leneth coles:-
is fxcel
Example
code code 2
O0
J J is not a fiacecl
dength coole
(Vaviable Length
Coode
coclecoovels
distinquishable from other
Fzample:
code code 2 code 3
(Oo oo
OO
wovd. Codles thak satis fy this condition ave calleck pre fix -free
codes.
Sn a prefioc- fvee cocle, no coclecoorel is s preix f
another.
Example
code code 2 cole 3 code
oo
Dot a
ve fix Pre fic ot a
Jeve oo Coceuoovc th
is Yepeakecd
suth
reisc an e Dangling
cocles aned b
Consilev two
a
of "
The remaininq term is calledl elana ling suff.
Heve
b: 01o
Pre feac
Example
agO1 Find UDc (or) not ?
O Constvuct a list of all codeuwovcls
o,1,o
Check any prefx founel (ov) not.
Heve 'o is the prefic of oi. So cwe qo to
3r step
Adol dangling suffix to ourlist.
o,1o1,0
Heve dangling suffic (Ds) is same as the one of the coclecoov!
So it is not UDC
Example
0 2 Fincd uDc (or) not2
O Constvuct a list of all cocle worcls
10,1,
Check any preli found ov not
(
Heve is the prelix o So e go to
3 step
suffix to ouv list ?
ndd dangling
1o, u,11,0J
o,1, 111 OO
6)Jnstantaneous Cocdes
The instantaneous codes, no
cocleuworcl is a prefix
anyother cocdetwordd
pre fix of
Example
O1
$3
instantaneous. 3 c o d e doesnot
and 2set o codes ane
not instantaneous
O1 Hence the 3 Code is
(odewovd
the 9ymbos
pvobabilitu assiqnmert for
source
covvesponcing to X is n
K 2
Problem
Consicdev a DmS x with symbols i , t : , 2,3,4 . Table
O O
12 O
the cocdes except
cocde salisy the Kva f
)Show that all
ne guality
decocdable but codes
Shocw that codes A anol D ave uniguel
guely odecodable
and Cave not
Answev
Fov code A; n na 3 n4 2
K 2
2 2 - 2
K 2 2 +2 +2 +2
K I
Sakis Kralt ineguality
)Fov code n , n2 2, ns 2 , n4 3
K:
- 2
n 3
K 2 2+2 2 2
25 O. 125
0 S t0 25 + O. +
K 125
Uot
Dot satis ty the Kvatt
ineguaity
fov c o c n22 3 43
2 3
K
2+2 2 +2
O.5+ O 25+ O 125 t 0.125
-3 - 3
K 2 22 2
0.5+ 0-125+o.125+O.125
K 0 3 75
ampltng
ntoduction
Adigital siqnal is supevior to an analog sig na
Conuerter ADC)
Samplina process
t is a basic opevation in the dqital commuunAc at ion. fA
Sample
3tis a piece of data taken vom the cohole clata
Sampled
Sig na
Ts
Samplima Yate;
To sample a continuous time signal x(t) is to
To
repvesent at discrete numbe of points, t n Ts wheve
Ts
is the sampling perioc ano m integev
To dis CYetize the signals, the gap betcueen the
be termecl a
should be fixecd. Tha can as
qap
Samples
Samping peviodl T
Samplinqequenc t
Ts
s
(Sampling vate)
Sanplinq peviocl Ts
rake tov the pevfect veconstvuction of the continuous time sia nal
from samples
when the sampling vae becomes exactly egual to 2w
fov Ifl w
-w +W
)when s 2w
Wow we willconsiclev cuhen sampling fveguengy
veguend
fs 2 W
- fs -W O W
vate
Hence, this is a
gooo samplinq
2 When fs > 2W
is move
nDo we will consicler when samplinq freguency
W W
Cnaps no
chance of
aliasing
-
LV
Wfs
3) When ts < 2w
fs
W
O +W
A.asing
Ts is the spectvum of sampled vevsio of «(t) cwith ts 2W
Distovtion
be recouereod
lost ano it cannot
The data is
To avoid aliasing
- w
W
Heve is
shavp change response ak
cut off equency, that is
amplitude responsebecomes sudcenly zevo ak cut off fveguency
which is not
possible practically. is means that an ideal LPF
is not physically
realizable. Jn place of coleal LPF, we use
practical iltev.
Ampitucle
-W W
Tis is the
fveguency vesponse of practical LPf.
Amplitude
vesponse decveases slowly to become 2evo.
o miimi 2e the
sstem samplinq rate,cwe
desive that the
iler
antialiasinq ilter have a small tranSitton
bandwide. Thck is from W to Cfs -w H2 a
tvrans it ion
banc is Yequired.
AxCf)
-W W
-w W
)3leal Sampling
E is also knotn as instan taneous Sampling Cor) impulse
x(t)
3(t)
the owtpub q(t) of the civcut will contain only instan to neous
instan.
xlt) message Signa
input Siq nal
@signal to be
Samplecd
Sampling function
111111 t
Cov) impulse tvan
Sampleol signal
@)Resultant
Sgnal
2) DakuYal Sampling
oliqital in natuve
C( n.
(0
when c(E) o
9C) cc).«(0