Question: a) Insert into an initially empty 2-3-4 tree, in the order given, the following values: 12, 13, 17, 10, 4, 6, 9, 15, 30, 25,

a) Insert into an initially empty 2-3-4 tree, in the order given, the following values: 12, 13, 17, 10, 4, 6, 9, 15, 30, 25, 20, 40. Show the intermediate trees after each insertion that causes a split.

b) Insert the values above into an initially empty red-black tree. Show the tree after each insertion that causes any color shifts or rotations.

c) From the tree derived at the end of the previous problem, delete 13 and then 12.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!