Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged heap-sort
1
1 vote
1
1 answer
3.1k
3.1k views
proof
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).
firki lama
3.1k
views
asked
Apr 12, 2017
Algorithms
heap-sort
+
–
2
2 votes
1
answers
1 answer
1.3k
1.3k views
#HeapSort
What is the worst case time complexity of finding a element in max heap tree ?Explain.
S Harika
1.3k
views
asked
Apr 1, 2017
Algorithms
heap-sort
+
–
1
1 vote
2
2 answers
1.5k
1.5k views
Algorithm
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?
itsapoorv94
1.5k
views
asked
Mar 31, 2017
Algorithms
time-complexity
heap-sort
+
–
2
2 votes
1
1 answer
17.5k
17.5k views
WHICH SORTING TO SELECT?
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...
deepak mahapatra
17.5k
views
asked
Jan 19, 2017
Algorithms
sorting
heap-sort
+
–
0
0 votes
2
2 answers
847
847 views
Sorting
Consider the following two statementsP: There exists a comparison sort of 5 numbers that uses at most 6 comparisons in worst case.Q: Heap sort can be used as the auxiliar...
reena_kandari
847
views
asked
Jan 10, 2017
Algorithms
sorting
heap-sort
test-series
+
–
1
1 vote
0
0 answers
935
935 views
Heapsort #Virtualgate
Need approach to solve this ?
Prajwal Bhat
935
views
asked
Dec 20, 2016
Algorithms
heap-sort
algorithms
+
–
0
0 votes
1
1 answer
1.3k
1.3k views
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 ...
sushmita
1.3k
views
asked
Dec 5, 2016
Algorithms
heap-sort
+
–
2
2 votes
2
answers
2 answers
2.6k
2.6k views
Test by Bikram | Data Structures | Test 2 | Question: 30
Meena is working in an IT company as HR manager. She has a large list of potential candidates to be recruited which are all sorted by their names. But she found that due ...
Bikram
2.6k
views
asked
Nov 26, 2016
Programming in C
tbb-ds-2
data-structures
sorting
algorithm-design
quick-sort
heap-sort
insertion-sort
merge-sort
+
–
7
7 votes
1
1 answer
5.2k
5.2k views
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...
thor
5.2k
views
asked
Nov 23, 2016
Data Structures
heap-sort
+
–
1
1 vote
1
answers
1 answer
2.0k
2.0k views
HeapSort
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
2.0k
views
asked
Nov 21, 2016
Algorithms
heap-sort
+
–
0
0 votes
1
1 answer
652
652 views
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?
Shailendra Patel
652
views
asked
Nov 1, 2016
Algorithms
divide-and-conquer
sorting
heap-sort
time-complexity
+
–
2
2 votes
4
answers
4 answers
1.5k
1.5k views
GATE Overflow | Algorithms | Test 1 | Question: 19
Is an array that is sorted in decreasing order a max-heap?always yesalways nosometimes onlyyes but not in presence of duplicates
Bikram
1.5k
views
asked
Oct 4, 2016
Algorithms
go-alogrithms-1
algorithms
sorting
heap-sort
two-marks
+
–
1
1 vote
1
1 answer
1.2k
1.2k views
heap sort
The number of elements that can be sorted in time using heap sort ?
reena_kandari
1.2k
views
asked
Jul 30, 2016
Algorithms
algorithms
time-complexity
sorting
heap-sort
binary-heap
+
–
1
1 vote
0
0 answers
661
661 views
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 (recursi...
Joon
661
views
asked
Jul 18, 2016
Algorithms
algorithms
time-complexity
heap-sort
descriptive
+
–
2
2 votes
1
answers
1 answer
2.4k
2.4k views
UGC NET CSE | June 2013 | Part 2 | Question: 28
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
2.4k
views
asked
Jun 15, 2016
Data Structures
heap-sort
ugcnetcse-june2013-paper2
data-structures
binary-heap
time-complexity
+
–
1
1 vote
3
3 answers
13.0k
13.0k views
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
13.0k
views
asked
Apr 20, 2016
Algorithms
algorithms
time-complexity
recurrence-relation
heap-sort
binary-heap
+
–
1
1 vote
1
answers
1 answer
2.3k
2.3k views
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
Singhravin11
2.3k
views
asked
Apr 15, 2016
Algorithms
heap-sort
+
–
0
0 votes
3
answers
3 answers
1.1k
1.1k views
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)
nikhil1008
1.1k
views
asked
Mar 28, 2016
Algorithms
time-complexity
heap-sort
+
–
1
1 vote
1
answers
1 answer
1.8k
1.8k views
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)$
Himanshu1
1.8k
views
asked
Jan 20, 2016
Algorithms
algorithms
sorting
binary-heap
heap-sort
+
–
0
0 votes
1
1 answer
770
770 views
Heap Sort
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
770
views
asked
Dec 17, 2015
Algorithms
algorithms
true-false
heap-sort
+
–
159
159 votes
11
answers
11 answers
43.6k
43.6k views
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)...
Arjun
43.6k
views
asked
Sep 24, 2014
Algorithms
gatecse-2013
algorithms
sorting
normal
heap-sort
+
–
Page:
« prev
1
2