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
- How many rotations are required during the construction of an AVL tree if the elements 35, 50, 40, 25, 30, 60, 78, 20, 28 are added in this…
- For the graph shown, the following depth-first search sequences are given: (A) abcghf (B) abfchg (C) abfhgc (D) afghbc. Which of the follow…
- Match each algorithm with its running time. (A) Breadth-first search, (B) Rabin–Karp algorithm, (C) Depth-first search, (D) Heap sort (wors…
- Statement I: Vertex cover has a polynomial-time 2-approximation algorithm. Statement II: TSP-tour is a polynomial-time 3-approximation algo…
- The postfix form of the expression (A + B) * (C * D - E ) * F /G is _______
- A double‐ended queue (dequeue) supports adding and removing items from both the ends of the queue. The operations supported by dequeue are…