1,538 views

4 Answers

Best answer
6 6 votes

Always Yes

Every array which is sorted in ascending order is always a min heap

And Every array which is sorted in descending order is always a max heap .

edited by
1 1 vote
converse of this statement is not always true.

every array which is sorted in descending order is Max heap.

every heap may not be always sorted in descending order array. e-g - 20 18 12 16 15 10 9
0 0 votes

An array sorted in ascending order is can be treated as min- heap" and its complementry statement is "An array sorted in descending order can be treated as max heap".

Answer:
Position:
Show:

Related questions

2 2 votes
2 answers 2 answers
1.4k
1.4k views
Bikram asked Oct 4, 2016
1,407 views
About how many compares will Quicksort() make when sorting an array of N items that are all equal?$\Theta(\lg N)$$\Theta(N\lg N)$$\Theta(\lg \lg N)$$\Theta(N/\lg N)$
1 1 vote
1 answers 1 answer
801
801 views
Bikram asked Oct 4, 2016
801 views
Match the following two columns given in a table:1. Randomized quick sorta. $\Theta(n+k)$2. Insertion sortb. $\Theta\left(n^2\right)$3. selection sortc. $\Theta(n)$4. Buc...
4 4 votes
1 answers 1 answer
1.7k
1.7k views
Bikram asked Oct 4, 2016
1,696 views
You are given a 1 billion numbers. The time require in seconds to sort them provided sorting thousand numbers takes 100 microseconds will be _______10,00051230065536
28 28 votes
3 3 answers
19.3k
19.3k views
Arjun asked Feb 16, 2024
19,258 views
​​​​​An array $[82,101,90,11,111,75,33,131,44,93]$ is heapified. Which one of the following options represents the first three elements in the heapified array?$82,90,101$...