You insert the values 5, 2, 8, 1, 3 in that order into an empty binary search tree. Which value becomes the root?
Insert 5, 2, 8, 1, 3 into an empty binary search tree. Which becomes the root?
In that tree, how many comparisons find the value 3, counting every node visited?
Answer: ______________
With that same insert order, what becomes the right child of the node holding 2?
In the tree built by inserting 5, 2, 8, 1, 3 in that order, how many comparisons does it take to find the value 3, counting the comparison at every node you visit?
Answer: ______________
Using the same insert order, 5, 2, 8, 1, 3, what becomes the right child of the node holding 2?
Insert 1, 2, 3, 4, 5, 6, 7 in order. What shape results?
In that tree, where does the value 1 land?
A student inserts 9 as the left child of 5. Which rule breaks?
How does search cost in that chain compare with a bushy tree of seven?