GATE CS 2015, set 2 · Question 32 · Databases · Numerical answer (NAT) · 1 mark · no negative marks

With reference to the B+ tree index of order 1 shown below, the minimum number of nodes (including the Root node) that must be fetched in order to satisfy the following query: "Get all records with a search key greater than or equal to 7 and less than 15" is ______.

A B+ tree with three levels. Root node has two key slots: the first holds 9 and the second is empty. The root's left pointer goes to an internal node with keys [5 | empty]. The root's right pointer goes to an internal node with keys [13 | 17]. Internal node [5 | empty] has two children: leaf [1 | 3] and leaf [5 | 7]. Internal node [13 | 17] has three children: leaf [9 | 11], leaf [13 | 15] and leaf [17 | empty]. The five leaves, left to right, are [1 | 3], [5 | 7], [9 | 11], [13 | 15], [17 | empty]. Each pair of adjacent leaves is joined by a double-headed arrow, so the leaves form a doubly l…
Answer

Answer 5

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes