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 containing n keys, n ≥ 1. Which is correct?

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

Show answer & explanation

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

Explanation

Every node except the root has at least t − 1 keys and t children, so n ≥ 2tʰ − 1, giving h ≤ log_t((n + 1)/2) (CLRS Theorem 18.1).

More Data Structures and Algorithms questions