Question: Recall the Select(A,k) from class where we broke the array into chunks of size 5, found the median of each chunk, recursively computed the median

Recall the Select(A,k) from class where we broke the array into chunks of size 5, found the median of each chunk, recursively computed the median of the medians and so on. Let us say that we use a different algorithm where we break the array into chunks of size 13 rather than size 5. Other than that the algorithm is the same. So the algorithm is: 1. Break A into chunks of size 13 2. Compute the median of each chunk 3. Recursively compute the median of the medians (call it m) 4. Partition around m 5. Recurse to one side What is the recurrence formula for this algorithm? That is, with chunks of size 5 we had recurrence formula T(n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
