recategorized by
682 views
0 votes
0 votes
You are given a heap containing N elements. Write a procedure which takes as input a parameter k, and outputs the k'th smallest number in the heap. The running time of the procedure must depend on k alone.
recategorized by

1 Answer

Related questions

1 votes
1 votes
1 answer
1
Aboveallplayer asked Dec 1, 2016
902 views
Derive the running time of the binary search algorithm. If I modify binary search to break the interval size into 1/3, 2/3 rather than 1/2, 1/2, then what is the worst ca...