1.

Let P be an array containing n integers. Let t be the lowest upper bound on the number of comparisons of the array elements, required to find the minimum and maximum values in an arbitrary array of n elements. Which one of the following choices is correct?(A) t>2n−2(B) t>3⌈n/2⌉ and t≤2n−2(C) t>n and t≤3⌈n/2⌉(D) t>⌈log2(n)⌉ and t≤n

Answer»


Discussion

No Comment Found

Related InterviewSolutions