Professional Documents
Culture Documents
4VM20IS032
4VM20IS032
File Structures
Module-3
BY
RAJESH.R
6TH SEM ISE
Worst-Case Search Depth
• 1 2
• 2 2 x[m/2]
• 3 2 x[m/2]^2
• 4 2 x[m/2]^3
• d 2 x[m/2]^d-1
The minimum number of descendants at level d is 2 x
[m/2]^d-1
If there are N keys at the leaf level, at depth ‘d’ then,
o N>= 2 x [m/2]^d-1
o N/2>= [m/2]^d-1
Example: Worst-Case Search Depth problem
D<=1+log[m/2] (N/2)
D<=1+log[512/2] (1,000,000)
D<=1+log[256] (5,00000)
D<=3.37
So, depth= 3 - levels
Thank You..