Q1) Using Divide and conquer approach, solve the kth element in
2 sorted arrays problem. Given two sorted arrays both of size n
find the element in k’th position of the combined sorted
array.
1. Mention the steps of Divide, Conquer and Combine (refer to L5-
Divide and Conquer Lecture notes, slide 3, to see an example on
merge sort)
2. Draw the recursive tree.
3. What is the recurrence equation?
4. Guess a solution based on the recursive tree and then use substitution method to prove the upper and lower bound.
Q1) Using Divide and conquer approach, solve the kth element in 2 sorted arrays problem. Given...
Suppose the following is a divide-and-conquer algorithm for some problem. "Make the input of size n into 3 subproblems of sizes n/2 , n/4 , n/8 , respectively with O(n) time; Recursively call on these subproblems; and then combine the results in O(n) time. The recursive call returns when the problems become of size 1 and the time in this case is constant." (a) Let T(n) denote the worst-case running time of this approach on the problem of size n....