Recent questions tagged heap-sort

0 votes
1 answer
1
Worst case time complexity of heap sort for n elementsO(nlogn)O(logn)O^2O(n)
1 votes
2 answers
3
Question The time required to find the 99th smallest element from a min heap of n elements is (given that we have access to the array elements)
1 votes
2 answers
4
0 votes
0 answers
5
0 votes
0 answers
7
1 votes
1 answer
11
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
1 answer
12
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
1 answer
13
1 votes
3 answers
14
How many element comparisons would heap sort use to sort the integers $1$ to $8$ if they wereinitially in sorted order, initially in reverse sorted order?
0 votes
0 answers
15
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...
0 votes
0 answers
17
Give an O(n lgk)-time algorithm to merge k sorted lists into one sorted list, where n is the total number of elements in the input lists. Use a min heap for k-way merging...
2 votes
1 answer
18
0 votes
1 answer
21
Space complexity = input size + extra spaceSo, heap sort also takes input of an 'n' size array.Does this mean that space cost of heap sort algo is O (n).
1 votes
3 answers
22
You are asked to sort 15 randomly generated numbers. One should prefer—(a) Bubble sort (b) Quick sort (c) Merge sort (d) Heap sortI think the answer should be c or d cr...
1 votes
1 answer
24
1) Show that when all elements are distinct, the best case running time of HEAPSORT is Ω(n log n).2) Show that the worst case running time of HEAPSORT is Ω(n log n).
2 votes
1 answer
25
What is the worst case time complexity of finding a element in max heap tree ?Explain.
1 votes
2 answers
26
what is the time complexity of finding a number in a heap sort in worst case & what is the time complexity for deleting the element from heap?
2 votes
1 answer
27
As part of maintenance work, you are entrusted with the work of rearranging the library books in a shelf in proper order, at the end of each day. The ideal choice will be...
0 votes
2 answers
28