retagged by
209 views

1 Answer

0 votes
0 votes
Heap sort gives the worst case when array elements are sorted in reverse order. so the time complexity should be $O(nlogn)$

Option $(A)$ is correct.

Related questions

1 votes
1 votes
1 answer
1
LavTheRawkstar asked Sep 9, 2018
1,095 views
Sort The Following Sequence of input using Heap sort.{ 10 , 2 , 1 , 5, 3 ,8 ,11,24 ,7 }Please show the output at every pass because i am getting confused.
0 votes
0 votes
1 answer
2
pradeepchaudhary asked Jul 8, 2018
3,343 views
You have to sort 1 GB of data with only 100 MB of available main memory. Which sorting technique will be most appropriate?1)QuickSort2)MergeSort3)HeapSort4)Selection Sort...
0 votes
0 votes
0 answers
3
Rahul Ranjan 1 asked Jun 15, 2018
681 views
You are asked to sort 15 randomly generated numbers. One should prefer - 1. Bubble Sort2. Quick Sort3. Merge Sort4. Heap Sort Please explain why others 3 sorting algorith...