Question: Suppose we insert the following numbers into an initially empty 2-3 tree, in the given order: 9, 15, 4, 3:6, 13, 2, 11; 7,
Suppose we insert the following numbers into an initially empty 2-3 tree, in the given order: 9, 15, 4, 3:6, 13, 2, 11; 7, 1, 16, 12; 14, 8, 10, 5. (a) Draw a picture of the 2-3 tree after each insertion: you do not have to write down the "guides" at each node - just draw the tree structure and the keys at the leaves. (b) Suppose that now a split operation is performed, which splits the tree into two trees: one containing those numbers < 8, and the other containing those numbers > 8. Show the resulting trees (again, please omit the "guides").
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
