• recategorized by
1,219 views
0 0 votes
closed as a duplicate of: GATE CSE 2003 | Question: 23
Position:
Show:

Related questions

10 10 votes
1 1 answer
253
253 views
GO Classes asked Jul 22
253 views
Heaps are usually implemented using arrays.If an element is present at a known array index in a heap of size $N$, what is the time complexity to remove that element and r...
4 4 votes
1 1 answer
196
196 views
GO Classes asked Jul 21
196 views
A max-heap is stored using $0$-based indexing as:$$[60, 30, 45, 15, 5, 10, 20]$$During the first iteration of heap sort:Swap the root with the last element. Reduce the he...
5 5 votes
2 2 answers
188
188 views
GO Classes asked Jul 21
188 views
A min-heap is stored using $1$-based indexing as:$[2, 13, 7, 17, 14, 22, 8, 21]$After one $\texttt{DeleteMin}$ operation, what is the final heap array?$[7, 13, 8, 17, 14,...
5 5 votes
2 2 answers
200
200 views
GO Classes asked Jul 21
200 views
The following max-heap is stored using $1$-based indexing:$[57, 53, 42, 48, 25, 34, 29, 18, 30, 25]$Insert $55$ into this max-heap. What is the final heap array?$[57, 55,...