chat at /rebuild/chatroom allahuakbar Give a recurrence for the number of possible binary search trees with n keys. You may assume the keys are {1, 2, . . . , n}. Hint: The root of the BST can be any one of the n keys. Consider each of these n possibilities. 2. Consider any two binary search trees T1 and T2 with the same set of keys {1, . . . , n}. We can always transform T1 to T2 using rotations. Sketch a general method for doing this. 3. Give an algorithm rotateRight(x) that performs a right rotation at node x in a BST (assume x has a left child). Update all affected child and parent pointers and return the new root of this subtree. 4. What is the maximum number of nodes in an AVL tree of a given height h? 5. Draw an AVL tree of height 3 that has the minimum number of nodes (among all AVL trees of height 3). Note this tree need not be unique. Then draw an AVL tree of height 4 that has the minimum number of nodes. Think about how you would draw an AVL tree of height h that has the minimum number of nodes. 6. Starting with an empty tree, construct an AVL tree by inserting the following keys in the Base case: T(0) = 1 Recurrence: Suppose the root is key i, where 1 <= i <= n. The left subtree contains keys 1,...,i-1. T(i-1) possibilities. The right subtree contains keys i+1,...n. T(n-i) possibilities. The orderings of the left and right subtrees are independent, so total number of orderings given that i is the root: T(i-1)T(n-i). T(n) = sum i=0...n-1 of T(i-1)T(n-1).