478 views
0 votes
0 votes
Consider the multi selection problem:

Given a set 'S' of n elements and set 'K' of 'r' ranks $K_{1}$, $K_{2}$, ....$K_{r}$. Find the $K_1^{th}$, $K_2^{th}$, ....$K_r^{th}$ smallest elements.

Example K = {3,7,10,50} the problem is to find the $3^{rd}$, $7^{th}$, $10^{th}$, $50^{th}$ smallest elements. The time complexity of the most efficient algorithm to solve this problem is

A. O(n.r)
B. O($n^2$.log r)
C. O(n)
D. O(n.log r)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Neelu Lalchandani asked Nov 2, 2022
337 views
Time Complexity in C will be O(n) right? and big omega (n) is also big omega (n^2), then why is c incorrect?
0 votes
0 votes
0 answers
2
1 votes
1 votes
1 answer
3
phaneendrababu asked Sep 20, 2018
731 views
Can anyone explain me the answer in detail?
2 votes
2 votes
1 answer
4
Souvik33 asked Nov 23, 2022
319 views
If L and $L^{c}$ both are CFL, the L must be DCFL a. TRUE b.FALSE