Question: When node z in TREE-DELETE has two children, we could choose node y as its predecessor rather than its successor. What other changes to TREE-DELETE
When node z in TREE-DELETE has two children, we could choose node y as its predecessor rather than its successor. What other changes to TREE-DELETE would be necessary if we did so? Some have argued that a fair strategy, giving equal priority to predecessor and successor, yields better empirical performance. How might TREE-DELETE be changed to implement such a fair strategy?
Step by Step Solution
3.30 Rating (162 Votes )
There are 3 Steps involved in it
Update line 5 so that yy is set equal to textTREEMAXIMUMzleftTREEMAXI... View full answer
Get step-by-step solutions from verified subject matter experts
