Slide 15.4: B-tree insertions (cont.) Slide 15.6: B-tree deletions Home |
Therefore, the general pattern of the relation between depth and the minimum number of descendants takes the form on the right: |
|
Solving for d, we arrive at the following expression:N ≥ 2 × ⌈m/2⌉d-1
For example, a tree of 1000000 keys and order of 512, we find thatd ≤ 1 + log⌈m/2⌉(N/2)
That is, the B-tree has a depth of no more than 3 levelsd ≤ 1 + log⌈512/2⌉(1000000/2) = 3.37