Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged heap-sort
1
votes
0
answers
31
Heapsort #Virtualgate
Need approach to solve this ?
Need approach to solve this ?
Prajwal Bhat
606
views
Prajwal Bhat
asked
Dec 20, 2016
Algorithms
heap-sort
algorithms
+
–
0
votes
1
answer
32
general doubt
Why is space complexity of heap sort is O(1)? Everytime it calls Heapify() function at the root node of the heap and heapify in the worst case takes O(log n) space. Then why everywhere its written that heapsort is inplace sorting algorithm?? Another ... should be amswered in space complexity of an algorithm? The auxiliary space or the total space which include the input size as well??
Why is space complexity of heap sort is O(1)? Everytime it calls Heapify() function at the root node of the heap and heapify in the worst case takes O(log n) space. Then ...
sushmita
715
views
sushmita
asked
Dec 5, 2016
Algorithms
heap-sort
+
–
6
votes
1
answer
33
Heapsort
Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or minheapify) operations. The array now looks like this: 16 14 15 10 12 27 28 How many heapify operations have been performed on root of heap?
Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or minheapify) operations. The array now looks...
thor
4.2k
views
thor
asked
Nov 23, 2016
DS
heap-sort
+
–
1
votes
1
answer
34
HeapSort
There are 3 D&C basis sorting Algos Quick sort :- T(k)+T(n-k)+ Cn Merge sort :- 2T(n/2) +Cn Heap sort :- ___________ I know how the complexity of heap sort is O(nlogn) but I don't know recurrence relation of Heap sort .
There are 3 D&C basis sorting AlgosQuick sort :- T(k)+T(n-k)+ CnMerge sort :- 2T(n/2) +Cn Heap sort :- ___________I know how the complexity of heap sort is O(nlogn) but ...
Rajesh Pradhan
1.4k
views
Rajesh Pradhan
asked
Nov 21, 2016
Algorithms
heap-sort
+
–
0
votes
1
answer
35
Divide and Conquer
Merging K sorted list each of size n/k into one sorted list of n-elements using Heap Sort will take how much time?
Merging K sorted list each of size n/k into one sorted list of n-elements using Heap Sort will take how much time?
Shailendra Patel
382
views
Shailendra Patel
asked
Nov 1, 2016
Algorithms
divide-and-conquer
sorting
heap-sort
time-complexity
+
–
2
votes
4
answers
36
GATE Overflow | Algorithms | Test 1 | Question: 19
Is an array that is sorted in decreasing order a max-heap? always yes always no sometimes only yes but not in presence of duplicates
Is an array that is sorted in decreasing order a max-heap?always yesalways nosometimes onlyyes but not in presence of duplicates
Bikram
646
views
Bikram
asked
Oct 4, 2016
Algorithms
go-alogrithms-1
algorithms
sorting
heap-sort
+
–
1
votes
1
answer
37
heap sort
The number of elements that can be sorted in time using heap sort ?
The number of elements that can be sorted in time using heap sort ?
reena_kandari
997
views
reena_kandari
asked
Jul 30, 2016
Algorithms
algorithms
time-complexity
sorting
heap-sort
binary-heap
+
–
1
votes
0
answers
38
Heap Sort
Why is the space complexity of heap sort O(1) and not O(log n) even if Heap sort internally calls max_heapify whose space complexity is O(log n) due to the stack (recursion)? And if it is O(log n), it should not be an in-place sorting algorithm.
Why is the space complexity of heap sort O(1) and not O(log n) even if Heap sort internally calls max_heapify whose space complexity is O(log n) due to the stack (recursi...
Joon
538
views
Joon
asked
Jul 18, 2016
Algorithms
algorithms
time-complexity
heap-sort
descriptive
+
–
2
votes
1
answer
39
UGC NET CSE | June 2013 | Part 2 | Question: 28
The time complexity to build a heap with a list of n numbers is O(log n) O(n) O(n logn) O(n$^2$)
The time complexity to build a heap with a list of n numbers isO(log n)O(n)O(n logn)O(n$^2$)
shivani2010
1.9k
views
shivani2010
asked
Jun 15, 2016
DS
heap-sort
ugcnetcse-june2013-paper2
+
–
1
votes
3
answers
40
The recurrence relation for MAX-HEAPIFY function of heapsort algorithm is T(n) <= T(2n/3) + O(1). How is it 2n/3 ?
Vivek Jain
11.3k
views
Vivek Jain
asked
Apr 20, 2016
Algorithms
algorithms
time-complexity
recurrence-relation
heap-sort
binary-heap
+
–
1
votes
1
answer
41
K sorted list,n/k elements what is time complexity?please specifiy ur ans in detail
K sorted lists of n/k elements each. What is time complexity to sort them?please specifiy ur ans in detail
K sorted lists of n/k elements each. What is time complexity to sort them?please specifiy ur ans in detail
Singhravin11
1.5k
views
Singhravin11
asked
Apr 15, 2016
Algorithms
heap-sort
+
–
0
votes
3
answers
42
Heap Sort
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)
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)
nikhil1008
621
views
nikhil1008
asked
Mar 28, 2016
Algorithms
time-complexity
heap-sort
+
–
1
votes
1
answer
43
Heap Sort best case
What is the Best Case run time of Heap Sort ? A. $O(1)$ B. $O(n)$ C. $O(n \log n)$ D. $O(\log n)$
What is the Best Case run time of Heap Sort ?A. $O(1)$B. $O(n)$C. $O(n \log n)$D. $O(\log n)$
Himanshu1
1.3k
views
Himanshu1
asked
Jan 20, 2016
Algorithms
algorithms
sorting
binary-heap
heap-sort
+
–
0
votes
1
answer
44
Heap Sort
statement is true or false Heap sort is inplace algorithm. it is given as true but heapsort uses maxheapify procedure which requires extra stack ., then how it is inplace..?
statement is true or falseHeap sort is inplace algorithm. it is given as truebut heapsort uses maxheapify procedure which requires extra stack ., then how it is inplac...
tiger
549
views
tiger
asked
Dec 17, 2015
Algorithms
algorithms
true-false
heap-sort
+
–
113
votes
9
answers
45
GATE CSE 2013 | Question: 30
The number of elements that can be sorted in $\Theta(\log n)$ time using heap sort is $\Theta(1)$ $\Theta(\sqrt{\log} n)$ $\Theta(\frac{\log n}{\log \log n})$ $\Theta(\log n)$
The number of elements that can be sorted in $\Theta(\log n)$ time using heap sort is$\Theta(1)$$\Theta(\sqrt{\log} n)$$\Theta(\frac{\log n}{\log \log n})$$\Theta(\log n)...
Arjun
28.3k
views
Arjun
asked
Sep 24, 2014
Algorithms
gatecse-2013
algorithms
sorting
normal
heap-sort
+
–
Page:
« prev
1
2
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register