B-Trees & Multiway Search Trees
![Question 14(a), GATE 1994: Consider the B+ tree: The root has separators [25,38,69,93] and five linked leaves, left to right: [10,15], [25,36], [39,41,47], [69,71,75,83], [95,99,101,105]. Each node holds d to 2d keys, subject to the usual root exception. GFG asks for the tree after inserting 100; GateForum omits the insertion key.](../../assets/questions/CS-1994-Q62-1.webp)
![Question 14(a), GATE 1994: Consider the B+ tree: The root has separators [25,38,69,93] and five linked leaves, left to right: [10,15], [25,36], [39,41,47], [69,71,75,83], [95,99,101,105]. Each node holds d to 2d keys, subject to the usual root exception. GFG asks for the tree after inserting 100; GateForum omits the insertion key.](../../assets/questions/CS-1994-Q62-2.webp)
![Question 14(a), GATE 1994: Consider the B+ tree: The root has separators [25,38,69,93] and five linked leaves, left to right: [10,15], [25,36], [39,41,47], [69,71,75,83], [95,99,101,105]. Each node holds d to 2d keys, subject to the usual root exception. GFG asks for the tree after inserting 100; GateForum omits the insertion key.](../../assets/questions/CS-1994-Q62-3.webp)
Answer & solution
Answer: For insertion of 100 with d=2 and splitting rather than redistribution: new root [69], internal children [25,38] and [93,100], with six leaves listed in the diagram. (no official key was published)
1. The four-key leaf requires 2d≥4, so d≥2. The two-key leaves require d≤2. Together these bounds establish d=2 and capacity 2d=4. Insert 100 into [95,99,101,105] to get five sorted keys [95,99,100,101,105].
2. Choose the legal split [95,99] and [100,101,105]. Copy separator 100 into the parent, which becomes [25,38,69,93,100] with six children.
3. The overflowing internal root splits around its middle separator 69. Promote 69 into a new root, leaving internal nodes [25,38] and [93,100], each with three children.
4. All six leaves remain at equal depth and hold between two and four keys. Keys in internal nodes are routing separators, not additional data records.
5. A 3/2 leaf split with separator 101 is also legal if that split convention is used. The problem does not state a tie-breaking split policy; present the selected valid construction rather than claim uniqueness.
Diagram / structural description
Root [69] Left internal [25,38] → [10,15] | [25,36] | [39,41,47] Right internal [93,100] → [69,71,75,83] | [95,99] | [100,101,105]
All six leaves are linked in the displayed order.
- The source root contains 38 and 93, although the corresponding right leaves start with 39 and 95. These are valid lower routing boundaries under a separator-range convention; an exact-minimum convention would require 39 and 95 instead. Preserve the source and disclose the convention.