All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · September 2022

Consider a B-tree of height h and minimum degree t ≥ 2 that contains n keys, n ≥ 1. Which of the following is correct?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. h ≤ logt((n + 1)/2)

Explanation

The minimum key count is n ≥ 1 + 2(t − 1)(1 + t + … + th−1) = 2th − 1, so h ≤ logt((n + 1)/2).

More Data Structures and Algorithms questions