Question: (a) (5 points) Write the recurrence formula for the following function.1 (b) (5 points) Draw the recursion tree for the following function and show the

(a) (5 points) Write the recurrence formula for the following function.1 (b) (5 points) Draw the recursion tree for the following function and show the running time for each level MINIMUM(A, I,r) 1) if (r - l-0) return Ar 3) 4) lmin- MINIMUM(A, l, L(l+r)/2]) 5) rmin- MINIMUM(A, ( )/2 +1,r) 6) PRINT(rmin, lmin) 7) if rmin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
