3. Use the randomized select algorithm based on partition to find the median of A = \{4, 2, 12, 6, 13, 9, 15\}.
4. What is the worst case time complexity for the randomized select algorithm? What is its average case time? Why is its average case time much better than its worst case time?