DS Problem Solutions
DS Problem Solutions
step 3)
Design
skep1)
&teps)
Agaiseletn Step No
4) (m,i) tep)
T,1 of
SHTRA
AHARA
inimumSeleet thei
(s,i)Arrange M=
waite
T=1R2
S1 A
=4 tHuffom
Tnee
T19S, freguen
S,2
reamanga any syubol
( (T, te
amd
two 1)(H, symbol's Y
cieg
Jaw its
symaothe sy 2) thefor
mbols in
(R,), frequeney
as
tnee.
freues
whose o
toee (A,4) ceningrder wd
ohscefre4.
A,
te.
whoee
symbols
Sy
mbo|
tree
a
su
lut A4 A4
i a
steps rsymbl (n:, (H2
3)
(TMs,
above anymumn
in
considere
fs T,) (TMS,3
the
2) Selet
Repeat R,
Rearrnge
(1,2)
)step 7)step 8)
step
tep 1) TMSHR,7)
TMS,
(4t,2
Step 1) A4
(HHR,4
oms 2
A =0
A,4 TM sHR,)
(Ms,3 HR,4)
ms,2
Hu ffman ee
2)
Desgn Binary Search ee for the foll wing
elements:
Taeert0
Torert 50
Iaset (o
Lofet 30
190
(DBHE I) (FIca)
steps fi| fas t nie is
Step2) Repeat abme
Congidered.
DBHET
HET
Step g) gtt
(H
ropery,