CHAPTER 3 Searching
EXERCISES (continued)
Rotation) during the insertion of P for our standard indexing client.
Height is monotonically increasing.
Into an initially empty tree, then describe what happens in general when trees are built by insertion of keys in ascending order (see also the figure in the text).
3.3.15 Answer the previous two questions for the case when the keys are inserted in descending order.
3.3.16 Show the result of inserting n into the red-black BST drawn at right (only the search path is shown, and you need to include only these nodes in your answer).
3.3.17 Generate two random 16-node red-black BSTs. Draw them either by hand or with a program. Compare them with the unbalanced BSTs built with the same keys. To 10 see EXERCISE 3.3.5
n is a power of 2 minus I.
Sequence is possible.