0 votes 0 votes 4) The number of elements that can be sorted in Θ(logn) time using heap sort is (A) Θ(1) (B) Θ(sqrt(logn)) (C) Θ(Log n/(Log Log n)) (d) Θ(Log n) Algorithms time-complexity heap-sort + – nikhil1008 asked Mar 28, 2016 • edited Jun 16, 2022 by makhdoom ghaya nikhil1008 643 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes To Sort x Elements Heap Sort takes xlogx time... So Lets us assume we have Log n/Log Log n elements.. Substitute this in place of x and we get Time Complexity as O(logn) So The Correct Answer Is Option C) bad_engineer answered Mar 29, 2016 • selected May 11, 2016 by rude bad_engineer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Search before posting https://gateoverflow.in/1541/gate2013_30 HvnCool answered Mar 29, 2016 HvnCool comment Share Follow See all 0 reply Please log in or register to add a comment.
–1 votes –1 votes A) O(1) is correct. As we can sort constant elements in O(logn). mitesh.iitb answered Mar 28, 2016 mitesh.iitb comment Share Follow See all 0 reply Please log in or register to add a comment.