InterviewSolution
Saved Bookmarks
| 1. |
What is the best case height of a B-tree of order n and which has k keys?(a) logn (k+1) – 1(b) nk(c) logk (n+1) – 1(d) klognThe origin of the question is B-Trees topic in portion B-Trees of Data Structures & Algorithms IThis question was addressed to me in my homework. |
|
Answer» RIGHT CHOICE is (a) logn (K+1) – 1 Easiest EXPLANATION - B-tree of order n and with HEIGHT k has best case height h, where h = logn (k+1) – 1. The best case occurs when all the nodes are completely filled with keys. |
|