B-Trees & Multiway Search Trees



Answer & solution
Answer: After 30: leaf [10,30] becomes [10]. After 10: root [80], left internal[70] with [50],[70], right internal[100] with [80,90],[100]. (no official key was published)
Use the exact insertion policy and final tree in part (a). Deletion policy: remove a record, repair an empty leaf by borrowing from an adjacent same-parent sibling if it has spare records; otherwise merge. Repair an underfull internal node by borrowing one child from an adjacent same-parent sibling with spare children; otherwise merge. Update separators to right-subtree minima throughout.
After deleting 30, [10,30] becomes [10]. One record meets the minimum, so no redistribution occurs:
[70]
/ \
[50] [80,100]
/ \ / | \
[10] [50] [70] [80,90] [100]After deleting 10, the leftmost leaf is empty. Its sibling [50] cannot lend because it has the minimum one record. Merge into [50], remove the obsolete separator 50, and the left internal node temporarily has only one child. Its right internal sibling has three children and can lend its first child [70]. Move that child to the left internal node; update the root separator from 70 to 80. The final tree is:
[80]
/ \
[70] [100]
/ \ / \
[50] [70] [80,90] [100]Accessible description: root 80 has left internal node 70 with leaf children [50],[70], and right internal node 100 with leaf children [80,90],[100]. The linked leaf sequence is [50]→[70]→[80,90]→[100]. All capacity, occupancy, ordering and equal-depth invariants hold. A different valid policy in part (a) needs its own consistent deletion trace.