Root
Left key
(smaller than
root)
Right key
(greater than
root)
L
C
R
C
Drea
m
Slee
p
Drea
m
Slee
p
Let b=“DREAM” and a=“SLEEP” ,
Make c=-1
Apple
null null
-root
Temp
• When root element is already
present
Apple
Root
n Ant Bat
Titanic
new1 
Temp
Apple
Ant Bat
Titanic
Root
new1 
temp
Apple
Ant Bat
Titanic
Ball
Root
Bat
KEYWORD TO SEARCH
W
Ptr
Bat
B A T
Bat Keyword found
Apple
Ant
Ball Titanic
Bat
Ant Apple Ball Bat
Titani
c
2
3
1
LDR
DICTIONARY USING.pptx

DICTIONARY USING.pptx