Question: *** DRAW THE 3 TREES PLEASE*** Problem 1 (1 pt). Consider the following initial 2-3-4 tree: We will delete keys from the tree by using

 *** DRAW THE 3 TREES PLEASE*** Problem 1 (1 pt). Considerthe following initial 2-3-4 tree: We will delete keys from the tree

*** DRAW THE 3 TREES PLEASE***

Problem 1 (1 pt). Consider the following initial 2-3-4 tree: We will delete keys from the tree by using the following rules: Rule 1: As you go down the tree and the next-node is a minkey node (doesn't have extra keys): - If the next-node has a left sibling with an extra key, right-rotate a key into the next-node from the sibling. - Otherwise, if the next-node has a right sibling with an extra key, left-rotate a key into the next-node from the sibling. - Otherwise, if there is a left sibling (and no extra key), merge the next-node with its left sibling. - Otherwise, merge the next-node with its right sibling (that has no extra key). We can express this rule with a table: Rule 2: Replacement keys are predecessors. Here is an example: What draw the tree after the following deletions: 45,52 , and then 70

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!