DSA Assignment 4
DSA Assignment 4
M.M.I.T
e No:
Page No: Date:
Assigoment - BG
Bc
Theony
Concept in bdef
xee repre sents te nodes Conneted by edge Boaxy.
Tore:is Specic delto
Shichine wyed by data Soxgs
purpAe A hioa tree hos Specia Conhbrn
thit eacode can hant
ha
CLildhcenA binay tree has te beneAts of both
odeed anay nked at a 3eanch
qck Sonteal aay and inserbbA
deletbn opesahbn.
Bioary Sear th Lce Repegentahen.
Binany geartk tree eshihts a speoial behouey Apade's
let child mut have
Value an the Dde's nqht chld ms bax
Value ce ates than s panent Value.
ST divdes all
Thus,85T uh-treey inh huo 3emetss
the Sub-hee anc th m sub-hee anc
he deAaco
3tnct Node
it data,
stouch node * lecbiol
Shuct node * viqht thid'
Agonth
T ot is NuLL
then cYate boo Dode
geanrth operabon
Algoithm
qoot date 13 eguaj to seorth doata
else
else
qo to e Pr sihtee.
dete und
retuyn ngde
eodutle
BS T.
Deleing a