| A_xoored tree Te cated ary tnee
[86 evawy Tevemol veer hos no wove tron
Chivdver , the tee 7. Gg Full m- ary tree
eyen friewwal veder bas evacl ow
ard ™: avy tere with m= fe Cate
AE PB
Lie Orr) bE Oech avec te
Tnomy Seach tree ,
Snory tree fh wh
each child of O verter _dowiy nod oct 94 4
Faint Ox fert chtid 2 er
NO vertex poe More than ane gh child
“Oe owe Meow one feet chill,
Aud Cach vertex fe Sabove jot Fey
Er heresy leal venice “One as
Hane Aa) OR OE EXE ers
| weye oF al) vertices
aod smaex than te
ne ko
_venhees
e+ Righs cub hee mech hove
Anas soot a
aed Ley cua pree rncr hore fecces values (ke
fran youk.| Canstonct iva J seanch dyce CR the onde
TAATH, PRY Chem
ISH, comp
Always 18 dome Tem yar now.
Compare ALC 10 alpphaberray oy de
[eee Traversal.
WWhoys
Pre oxdey L Root Lert chil Rignecat fd.
In order 3 lee Root Rg he
Post oxdey lent Regnt Root
C= JA -
AOE H
( Peosdet 3 1 - 2-4-8- 366-7 =
- 6-3-7
anodes 2: Fe 27Se la 6-3
© posta sdes ‘ey Ape Se Be Sere Bo) -@h A nie
ey € i” .~
ere
@ Z
Pre odes. A- 3-0-H-2-f ~ CF - GT
an-6 i -
Ibn orev : Hepo-T- B-E-A-f-C-G@-7
Reptosdex . W-T-0-F-R- F-@T-G-c- A
RCE Be Boe & FOS LK ERO, |
Leve)
She Seve) of a vertex Ina YOcted tree &
the dength of the Unique path from dre oot fy
tHe vera.
=} The fawel of the vot fs derined to be zero.
x ’
Hergnt
= _The_hetgnt OF He mooted tree fs a meaimum of
the Levets ‘of vertices,
In otnex words, the hety dr of fhe ~wooterl tree
fs the fenyth of the Aon gest Cot erm the
xeoaot to oy VIET RIE t
End tre Jewel of each verter in He vooted He
Shao. jw He fellousny tree t
filiso Bind He neigut oF tre tee,tt] Bete NOTE :+ M= ON Integer no-
| A soted m-ary oF Aeafght bh fs batenced
fe all feat nodes Gre Gt Sevel Hh ox hey"
| Prepix Code.
A eext message Can he converted fnto q Sequence
OF O and 1 wy replacing ach character OF the
rnessage with Th Code,
| Prctin code cun be wepresented by a binary tree
clata_onty at teat node cade of €Ath Character
can be Found Starting Adm the vag} Sf the tvee
Gnd recording the Poth.
© = Lert pranth.
a = Aight branch.cts WO o> A Ced=
Ips (110 ASkC o> 4
Huff man Code.
Use Hutfman codéng to encode the Follows ny Symba)
with the Frequenctes fisted \
A 9-0¢ EE, 0-20
Boo & 2 OSS
: ONz
Pp ols
What fs the Average Ao + Obits Gred to Antode-
& Chaxttk en» =
Crtven (CO) Arcvarge In Oucarelity order xs
O-0R Hote OF OT 9-20 O8F>
AS c ° & F r
consider tuo symbats with Lowe tren. ‘ae
aed wee Har +
ote
COR Foxge O18. SY BD
ek Fors Oh tree tT
Raght side =| > Gee dota of loves! megs a
left side +0 : give dots of not. aPreGx Coe fer:
&s 4211) Ley =3
B=u0 fm: >
ce ou) iccd= & ~
Bee (Coye%
= =10 {Ce)= a
e = 00 tceD a OT .
FNEKAgEe NO- OF
Codfag is =
5
ylar Frew i
oeto enede uatth eyybs ls wlth
he oy fo oh bis
wen freq ure
| eq yrivech te _extade 0 ei vel.
_|&10_0- 2s" _o-0s~
Ae i
O05 6-07 OY 0-10 ols O2g 0:30roo |
i |
=] O-98
4 "
—| €\, OXI
=] & SOR
X
41 Pek AG
tL Ee
ft 4
PRT Cocke For:
=i) (@.s F£ = %0 Qceys 2
ga [0 AIBe 2? F-20710 + OCPe 4b
(oe = oO Wee Ge liig Loe &
[eo . «op De 3 @
_ tbe 2
No" OF bite useddto ented? a symbol wiry
tego, 0S s
AEE Or) deching St
(ax_o-lo) + 2x 0-25) + Gx o-os) + Gx oS).
St (ax sodt (ax 0-07) + (30008)
i a:s7t.asp bk OTS @ Spoon’
ere
f vestos )
mcightes
Sur of &
PTAs eiiepethen
eel etep ie > en
cay ae PY Ms algerths . begin by cheesing 7
Any edge with smallest welyht . putbing Ht inte
the Spanning Hee nae
—s |step 2” : Fat 7
leuceessively cle) 8 he_tvee__eciges al minimum
weight thar ave incident fo a verter actveady
| the hee and not fonntny gq simple civentt ithper oun
=a] aa 2, a
|_Canstct minim Spanning tee OC the my given be lows
gt SUH. :
a He we 1
ae No-+ of Edges of Tree
ex )
T Vig
z
ST ae
ae Ne
= Att
=
Hex , ae
No. of digs of Tee = Iv| = 7
-TENo + of Edges oF Spanning tree ~ sv) —)
=7=1 = 6
SD » = Sv-No. Edges Cost
Gl a A@ We en ey to
=| Ox 16 2 66,57 ES
© a & és,4? es
Se ae Gy |
Ss <% 927 ls
6 42575 ta
TOtal Cost = JO
ex s =
ZK al =>
SS
S
{ati K te
=| nor oF vestheec ee
| novot Edges = 1g 12>|
2
AN
q
~voP e
> nLo. of vethes 5 12
Edges = dh [2-!
o
Q ?we
ot U8
*
jsFre_ culgarribye _
Ls stals lye: cismomar Qer_eatqes
Choose an Echge wit minimun Weight
ea ep? * > —— =
__ sitecessively act eclgeas with arinimum weight thot
__ cle net fowm ef reutt auth these edlges alreacly cho sen.
> step 3
st
[step aber mt eclges have teen -selected
— ~<
3 Construct mio eight! =iening_tes using Krsteal'S algo.
Sy.
2S
Sq
a
oe
: i
ee
INL: 7 aa edges = 7-1 = 6.
ovens. Edge tly - yO
D) 2l-6 Lo &
2 =a 2 } we Be
3) 1-2 \¢ as | & sD
a) 2-> (6 by —
€ &
ca S-g ampe> = :
) SO. eos => Edges re AGH be
1. --& 2s Conneated.
bees te
—_f ota: $43
hy,
h. | Finck tin Biponning fe using RUSHALS alge
a a aS ¥ }
2/ 1 Iz Y
ea Is :
pe :
t Te
fuss 28 Jaq >
fk nh c- at ! t Te
E a- t t ;
ee b-Ff I :
= = 2 : |
= boy 7. f
ee a-b a
a ie 3
ick 3
i inf. 3
> Ota StS pt
= 4
- dyeong GE . Jvous |
ct teu:
Partition all vetces Into ue disjoint Ate,
also s cantain onty tre Sranch and xect
fhe -eolges gre Chores.
ch TS an edge assecioted with fhe spanning ter.
an eclge asscdated with the qvaph.
hen a Gv fs formed by Adding chord to tne
nning tree 7S Qed fundamental ci auit-
Gelunys congsidex Chocd set
a
G=aph Spanning tree of~bul graph,
Srarces shoe dad
orig. = A bye, BAF
Edges faunclouvente |
S Aa br ch 2 if 5 edae is attached res
e fac. 94 Th Wat) beteme “bruit
£ fevdigh Y Opatrdabrce %
h Kordigth }
Eanlamental Grav =3 Considey Chords
Fundamental «= CUtse# ss Consiclew Branches
LG solu contain singie branch ancl vest are chords
_ oo. es
+7 ipleet Not tontoin mulAple be Anchés -Geouit ood Fuydarey
5G: giod _furdemant
for toe geoph gord tree iver bers
s T rae —
a Branches =X bi, weak te J 7
____@ theeds = 4% Od, 6,9, 4
GQ) edges Pundamertal _
7 wa O.¢.b a
a1 Gye J
—_ + 7 Fie eb
fis OP 9 ghia k _
TR - _ : _
@, Edge Fundamental cultse) 3 Consider branches
b Repkbray i
c KC, 4, d | => When C ie Omitted wer Cun e
e ke, oF Jomit Gard d te fetta
FB; Rye g iF ¥ NG) bu we canner ort
j % A t.y4 b ibis q_ branch
fe Com ony Orntt
\ ( branch Ond etre
yeas ds)
hy exe, ! j
se cannot, owt & fe
ts a _6. Algebat SUCH Anol Cocking E—| {
Theory 2
Alyebreie_etrustuse OFF a
AIF ser A wrt ony binow opexadov
ae
K satisfy
Closure prdperty then ft Te Cauecd as a Aigeb rare
eal Stott chune i
P xd pevtiess BE B= any binow operatin sy: bos)
i Chosuy Property CAilgepraic SHH)
[set Awa perotor # is sata to satichy Cogn
property ae ro lb eA then Ot b EA
teers | Lif ony Qpexation fe doneon Gand b -hotser A
Asso ci ative peperty . a en cet ee
A_biroy Speration 4 on the gb A sath Fo
assocative if (Ax baA dec = a-* Cbke)
sf *O4 bs C EA
> eee
Tent ty (Moanoid?
An element ‘e badonge fe Cer A is card te be an
fclentity element fx the apexokion GF
4
Owe > CxOEGQ , WaEew. Q= ary no.
= identity ekemaurct a
P| Inverse | propery (Group.
or each edement aecA FB Chere erists’) an element
BEA such thot ak bs e& 1 = iclensity element.
eh grens Commutative propery (Abestan’ group -)
HT Binoy operation ck on tre ser Ais satktebe
Committentiv el iP Ok b= bRG at A, beA.?
atk] pos ex. iF we wonrte check Mey Geoup ies pupa
Fhen, we here to heck Or! upper 3 popperties
[aie n Check _T'* pryperty 29 cemi gop blgebesicst_sabihiny
Gl Morsid > semigaup coketyin jcleviy propot =e PerOt rer A= £0.14 ep gosed = Sosuxe propery
Ts A Cosed Sunder
© murtipsrcotion
@® Addition
S| Pe _ctoswe property se | =
| Here B= ibid 4 _ c E
| Or b eA. | : E
(2 Fo< mH phicobion 7 ; f
a* = oxlz 0 i
and OA
Liat campers choswe prop.
QD) fx Achd Hor
a tbh: 6 4
Qnd Ten
soe it cohehee cho dy pp.
e
o
arn feof
from this fahi jt is observed. 4hab
set A ie choved Undew PAW AH pb cabion.
+) 6 1 ue
iid = ne bales a
“yvoe
Fyowe Mis fab. Tt is obsowed thor _Z_ Not belongs p-
set A AB Hens, Ais Mot Closed Unapx aoldifion: =Consider Gi be the seb of atl
“an HON-zex Veal Ntrobers
ond A* b> ab
—T Pa i
pt
| Show ares, (Gut) is an A behian group.
=| (TO chet Obelion QOVp ude hove to checle atl i
(tne oppex PEOpentes |
Step |* Ch. € chi ny Closure property .
Bs pes pap, 1 NObEA. then Geb CA
uthere herve Gi is te sot afinon-zere veal note
Hence,
++ Skb = ab €G,
2
sos Ft s@tisties — odssure property
>
Sicp 2 TO checte Gssochohre property
ie |KO = atbao) aie en
eve
Get Sep oF all non-zexe seal no's,
Hence
Onb= ab —€ G,
z
- = orpscctot
-'. tt sonsfies Glsswre property
"
2
io
BRL qe CR ecEcbewat i) Ske.
ean Orb) Ae ET An CEKOD
Luts Fenn) ®C
we fav\ «(CY
Ce
- 7 gb #C
2
ae 6 &| Hence
FO Cchece
Talent, etamver
one. efG = a
> 2EG,
eo -Ft eatshes identhy Property
JO checle tyverse_prerparh
Qkb se
aaq ize.
e
curk Qe 4 eG,
Sots fies
inverse peperty.
Te
— Oe
=| Steps - eae § Maxis
DI construct A adi Hon Rociale tobe roy te)
ro er Tbs
+6 Sof foweata 5 =
ome ea aS jus y 6 =o
1 te eg 3B € S yore,
z 2 2 4 F oF
3 % 4 Ss oO \ =Propet.
“ALL the erties Trthe reap te
ow £052,345 4
He catistics hosure propery.
cchecte Cheswe
axe Hee €Lemerts:
checn GQessciahve property ,
faadacs Ga(hRO) — As pex_deFinonon
LC (Ote eC = ate Co +6 ©) —iniews @ £6
Qed Ad by CES ZG
Roe the fable i4 is gbeewed thal | if scisies
GQesocighye pseperty
arct
eee Tdentihy element
|
|
From fhe table » O is the ident element -
To chece Inverse Property [to eed Thviewe elemet |
=> Taverne fv
Ati Tyvene of |
SE) Tyverse of
D> =) =
Pe gtto a I~
S# ato SB Ne——F
go axle
F Since )
st E
te Sohstes ot! | pees he.
yg 2
chosux?, Gesocative , jelertit jeve
— oe :
£ a
B Show thot Gedi2:304553 ts not
“|_anaer Adaiion meaute 6. Cie 46) T=
Corstucting Addition medufo fone Fer (C40.
@ Conshua + 6 fab Pex cet G, =
+6 1,2 3 a.¢
- 1) 2@use 4.5.0
2(o 4 #6 O | -
2p “a Se 0 {4.2 i
4g e 8 ' 2 3
Slo ti 2 34 hte phe
QD Checwicg Glonuse Preparhy
Thom tre tanle — Vt ie Observed thats,
: elb slemert=
Oo ¢ G .
Lt. Le docs not P8ld choswa Property
6 Te is ast a Algebra’c Strectuw.
ce Te por a group.tft fy eS
1 en Show tat, (GQ, x) ferr G& grove. :
~~ ZL — =
? CO} construct te te _ ian Nae
F |x pt ww? ftw wee
= Py ow we
I st wf ww? wd w fw wh |
We ow? we wt wefwt 1 ow
Ss: ' r
He www ce lxwew. "
nw €) 10 chem chosare prop.
Grom table it fs obsecved tod.”
a Gl eleven € Set GQ.
Ft _satsties closure propery
@pte Checte Aseociatith .
oe (o af Acd= Ot GAC)
fee (a xbY xc = OX Cb x) = in tewrs/dF ¥,
ard + Oc BEG er
1s "2 Tt sokety ascacigtive
pool: 2
ae’ ~
te ehets Frere Tdermty element ,
Cee per a=a
# axe serarq
os ez)
|
®
iS the idenhhy elenenbs
_ 40h. Find Thverce . esses os
\Lark ath aw! € @.
Sere.
Consider (Gre) aca © al ove. fwO Groups theo
+ sohstics atl 4
_ Tt isa qwop.
Home morphism ond Aormal _SUb- group.
ied Pine operator eather biNOY operat!
€ Ts mapping ber ve _groppe G ard G@€ G2al
f_= hemo morphicm ber® fhe we groups
ony Binoy opeohin (F1=, X67)
$+ Cakoy= fara tcp]
7 ;
SFRTe pennies belang
—f_is—ct__g vp =
nis opexahon belorys fo
ie _ Tt holde dhis propeny SOF
knee § is Called oe bomesphicis bet Fhe groups
— > Or
Qi Show tha, f derined by FG)= 20 *
Fe & homomarphism whee G(R. +) ard G'2 CR, ny
om| 2 Bz set of Ol Real no's. os —
Cat sSeror all P tve Ree! no's
Paperty uw Hemosphiem 4M Cg .
£ Cache SEF COA Fe)
€ CO G46) = FO) x FCb)
ST realltip Lites Oo
of OybeGa. Se
- eyez" = by}
A Caye 2% fb 2 _ -
- 4b 7 i
_ Foods 2 2%. 2? = Cad. FC)
LHs = PHS.
a Rs RHS _L
2 Te Feo Domo mer pricPetian WE + Set with one cpeathor — @ ak)
RING. Set with 2 operators (Asa re. mtrwress
Page wo
‘Youva
oat
=
Te RING.
—3 AN Algenraic system CA, +, ) is. cattecl a ring
ie the following conditions ace satletied +
+ _ COMMUTEHIVE prop
a @s#) is an Abetion group
él @.e) fs a sem grup & Aescdarive Pep.
@ “me cperorion “mig dishSbuRve gues the apemton +"
re.
A. Cbte) = ob t ac
(eted-a0 = ba +a
Ol 7e=40,1,2,3) wa ta .%4 tsa
=> exe These is. SuROTEr a cho
Step tl commud +a Gad xq table. dra hy a
+e lo 1 2 3 x¢lo 1 2 3
of @ 1.2 8 alo aoa
1[ro2 3 0 \ O 1ee 8
ts wis a I 4 2 106 Oo.2 -
s[ =< @ 6 2 7 3 Jo 224y | ooh
SS
th wnt. = ——— — hpGeae
py MULH phicatie, —
oleme Se epee
hos ot
E Danen pte called 6
Commutative R109.
vey KO beh aw a, bER then
cattecl
_ex'| sroo trot (2,
ivy with dnity .
Ring with and without zero divisor:
| Ring ut
zen divisor 3
TE abso e+ AbtO Hapen
(Ryt5-) ane zero divisoy and zew fsa iclenty
elawnent wet
ge
) [is
Ring with ero divisor. -
A ring R containing wero olivysor is cated. Be
a crg with zew divsoy Ee
Ring without zero clivisov _
TF abso, @=9 ov b= 0 OY_ both aanlh=o0 J.
ard Ha, b €R heve @ fs cattedd Ring without
| 20 Aivteor. ==HCeaM come theory on the _tapie.
_ eH rr tegxal clomata
Anca Freid
Tntegryal Somain | aa
pb RVing musi settiony: fa Re Sny must Beanery ¢
GEE coamurele (— Commuted ve
[| = Reg ott, anty = Ring otth unity ,
= niithoat zew livisox I Evexy non. zere element
has muihpsitation Trvewe
dren it wit) be Tnieg al of =
corsen then lt will pe a Fietel
Chece (Rye ts + ) we G intequal clowmain oe Field.Ceding theory and Group G@de.
— >| A sequente OF fetes from an alphabel fs called
Las Quad. Arch a Code fg a Coffechon of words
that acc to be Used to vep resent clistine! Message,
—>| A bho cade fs a cece congieving —9F words ther
QR Same fergir.
Consides "A_clenoge the set of a!) ian
sequences ef Length “
Fe) be a binay operotfon on set A SUch thole
x XEN inset A
“tO y ise sequence of Length Wo ther hus
iT xeor,
Ones 'h those posi#ons x & y cFFer, Gnd
Aas zesd’s Tn those posihets x&y ac Same.
F J
Ex-or @ 5 xe input is same oy Olpis zero»
Considey % be a word in @ser A we cleRine
weight oft KGS clensted py wi(x) és
the oo. oF one’s in XC.
eq' % polo SY Wx) t 09+ of meg = 2. al
= i wey) = 2
ae)
XOZ=oTSoT WOOYY= Komming discance
em
4 BL Hamming distonce
Hamming dictonce ie o din. bet x Gy cLencted
by AGL) sed itis the Weiyra oe Oy. eu
t
re. [AGoy) = wi Cx
Df aG} Fed hamming aéstante bet”
tz If 10000
[ys toarl oe n -
YOy= OL 100 - 7
see Ax y') = MOM y) = + a a
HE NOTE + a .
The distance bei two words Ts exact the no. oF a
positions OF onic rthey chittew. _
air Pasty Chee Cue _
< >| The Fotlowiny encoding fun _e: 8 a BI!
fs cated potty Cm mt) check code.
—>| Suppose, be BT WS Le BM
WED Emtsding FU eC b)= bi, ba,-- bm, bt) _
wiher & ~ =
bina = O Tf Ib) ws even _
tote (bi fe odd
and bl = wefght of b.
tee [bl = Wb)
eqs bs O91 0
et): oO 10% => 8 Jbl = 1 = odd
Add |
_ e'eethy = OO1OT _ a
pr. go —s B™ Be _ne-or bit. 7
e(on0) —s e 6000 _ 7
_ @ (oot oot» aed Wowk: Binoy sequence.
neignt ~ ne sor One's presery Tr Heal Wore,
ro. ot bls
. e 7
ey'Plorsider (SA) ponity check code.
for each of the vece?
an error with pe detectdel cle rected.
by (oo)
G\Oolo =7 Yes, ewrox deserted
Sine, utefght oF
oxox is deteded- nha
b> Coo) = NO Err _ _
Poot fs = 2 whl
Giece , wet git oF
Se nor Psese
Ot PR 7 bit OlP
Corcidex CEP potty check carte
a> C11 000° -
BLM 90 Z
oll o888 sy NO exer”
word. eff0000 fs | Which
Wie 2 ovvex
G
+7 berg ht of giver
fs even -*\ ©0 ewov -
> TIT 0000 = Yes semee-
sh a Cwors) = 3 shrew fy 0 bf
~ eyep Vs Aeheeted.
a) oo0ls + qiven ofp went worlds
cote fs =) which i od
J woul cletermine lnebherPage wo
——] vouva
“Ou Corsider (256 encoding fu" e
ecoo) => 9 60000 20 9 00 9)
ecto) = (%1 O10 { Oo 4 oo} o
6620 F oni ort tts
PC) = Ni900 (\ ti 9a 906
(ED Fed minimum hictance oe e.
=@)
How mony eave with
2 detec 2? es
DPID-_dcecood,e(ao)) = 6 2 :
wdlecoy ve Con) = &
Sle Coy eC) = 2
dCecioy , eco \ = S
eiCe(to) ,ec)) = ie
dle) ,ecird) = &
The ainimum — duistowte fe?
a wh ct kk €
O gtoop A code w cles e K ov g few gwrors
Ye ond onty Fe Hs _mietman distane fe at, et)”
since, here the Win. Aistame fs 2 so we howe
FOO te _corce— wil Apr eH = 6 ke)
GO Mane code wil! Aeteck one wo few emo,
|