Indexing, Storage & Query Processing


Answer & solution
Answer: Root [5]; leaves [1,2,3,4] → [5,6,7,8,9]. (no official key was published)
The final tree under the stated overflow-split convention is:
[5]
/ ╲
[1 2 3 4] → [5 6 7 8 9]At the first overflow there is no left sibling, so the first six keys split as usual into [1,2,3] and [4,5,6]. Increasing insertions fill the right leaf through 8. To accommodate 9, that target leaf would contain [4,5,6,7,8,9], but the left sibling has spare capacity. Move its smallest key4 to the left sibling, and keep [5,6,7,8,9] on the right. Moving the smallest, rather than the largest, preserves the global leaf ordering. Update the parent separator from 4 to 5 because the right leaf’s minimum changed. No new leaf is needed. Equivalently one can redistribute4 just before inserting 9 into the full right leaf. Do not split again merely because the right leaf has five entries: five is its legal maximum; the sixth causes overflow. Separator conventions and split timing must be consistent with part(a).