Question: 1 . Show the red black tree after inserting a node with the key 0 0 4 3 . Use the document on Canvas that

1. Show the redblack tree after inserting a node with the key 0043. Use the document on Canvas that
explains the insertion process succinctly. List the case you applied (i.e.1,2a,3b), and write the steps
you took to fix the tree (also listed in the document).
a) Draw the tree after doing a regular binary search tree insertion of 0043.(3 points)
b) Which RBT property is violated? (3 points)___________________________________________
______________________________________________________________________________
Case seen after the regular binary search tree insertion: (3 points)________________________
Steps taken to fix the tree: (3 points)________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Draw the tree after taking the steps you just described. (3 points)
c) Which property is violated now? (3 points)___________________________________________
______________________________________________________________________________
Case seen after first fixup: (3 points)________________________________________________
Steps taken to fix the tree: (3 points)________________________________________________
______________________________________________________________________________
CS 385, Homework 5: Balanced Trees and TransformandConquer
Draw the tree after taking the steps you just described. (3 points)
2. Draw the 23 tree after inserting each of the following keys. Redraw the whole tree for each part.
a)50(1 point)
b)76(1 point)
c)23(3 points)
d)21(3 points)
e)20(3 points)
f)19(3 points)
g)18(3 points)

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 Programming Questions!