1. (a) Write an equation to describe the average cost for finding the median.
(b) Solve your equation from part (a).
2. (a) Write an equation to describe the average cost for finding the ith-smallest value in an array. This will be a function of both n and i, T(n, i).
(b) Solve your equation from part (a).