Question: Question 1. (25 points) Suppose that, in the algorithm we explained in class for selecting the kth smallest element in a set of size n,
Question 1. (25 points) Suppose that, in the algorithm we explained in class for selecting the kth smallest element in a set of size n, we had partitioned the input into n/9 chunks of size 9 each (instead of n/5 chunks of size 5 each). Analyze the modified algorithm, and give the recurrence relation governing its running time. What is the order of complexity of the solution to the recurrence ? Briefly justify your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
