B-Trees & Multiway Search Trees



Answer & solution
Answer: O(1+log_(d+1) n); commonly written O(log_d n) for d≥2 and nontrivial trees. (no official key was published)
1. An internal non-root node has at least d+1 children because keys separate child ranges. A root that is internal has at least two children.
2. If the root-to-leaf distance is h≥1, there are at least 2(d+1)h−1 leaves. Rearranging bounds h by 1+logd+1(n/2).
3. Search follows a single child at each internal level and accesses the leaf, for h+1 node accesses. The extra constant handles n=1.
4. For d≥2, changing the logarithm base from d+1 to d changes only a bounded factor; logd n is the conventional blank. When d=1, logd n is undefined, so the d+1 expression is safer.