+1 vote
in Data Structures & Algorithms I by (110k points)
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) klogn

The origin of the question is B-Trees topic in portion B-Trees of Data Structures & Algorithms I

This question was addressed to me in my homework.

1 Answer

0 votes
by (672k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.