1,936 views
0 0 votes

time complexit..?

Q1.  to find kth smallest element from a binary heap...

a) O(k log k)    b) O(k log n)     c) O(1)      d)O(nk)       e) a,b both

Q2. Print the biggest K elements in a given heap in O(K*log(K))____________?

Q.3 how to determine if the kth largest element of the heap is greater than x____?

Please log in or register to answer this question.

Position:
Show:

Related questions

1 1 vote
1 1 answer
1.6k
1.6k views
0 0 votes
2 2 answers
4.1k
4.1k views
Na462 asked May 20, 2018
4,124 views
Which one of the following is the recurrence equation for the worst case time complexity of finding Kth smallest element in an array of size ‘n’ using partition function...
11 11 votes
5 answers 5 answers
6.0k
6.0k views
Vikrant Singh asked Dec 28, 2014
5,976 views
What is the complexity of finding $50^{th}$ smallest element in an already constructed binary min-heap?$\Theta(1)$$\Theta (\log n)$$\Theta (n)$$\Theta (n \log n)$
1 1 vote
1 1 answer
2.7k
2.7k views
sushmita asked Feb 2, 2017
2,696 views
Time complexity to compute the sum of k smallest element in the binary search tree??can we do it like this-Start doing the inorder traversal of the binary search tree, it...