a) Suppose we have an unsorted array of size ‘n’ and we want to find a middle element of the array. Describe an algorithm which will take O(nlogn) time.(just a paragraph of maximum three lines).
b) What will be the upper bound to choose middle element, if array( in part ‘a’) is already sorted.