Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum number of pointers in each non-leaf node is 3. Let the content of the B+ Tree be as shown in the figure.
Which of the following options denotes the key value(s) stored in the root node after inserting a key value 3 in the given B+ Tree?
Tap to open full sizeFigure description
A B+ tree. The root (non-leaf) node holds keys 5 and 8 with three child pointers: left, middle and right. The left pointer goes to leaf [1, 5], the middle pointer to leaf [7, 8], the right pointer to leaf [9, 12]. The leaves are chained left to right by sibling pointers (the last leaf's next pointer is NULL). Each key in a leaf has a dashed downward arrow to its record. Following the figure, keys less than or equal to 5 are under the left pointer (leaf [1, 5] contains 5), keys from 6 to 8 under the middle pointer (leaf [7, 8]) and keys above 8 under the right pointer (leaf [9, 12]).
- (A)
5
- (B)
8
- (C)
3 and 5
- (D)
3, 5 and 8