retagged by
358 views

1 Answer

0 votes
0 votes
If the array is sorted in non-decreasing order, then yes it is a min heap. It follows straight from the definition of a min heap.

Related questions

1 votes
1 votes
0 answers
1
akash.dinkar12 asked Apr 5, 2019
293 views
Show that, with the array representation for storing an $n$-element heap, the leaves are the nodes indexed by $\lfloor n/2\rfloor +1$,$\lfloor n/2\rfloor +2,…,n$
0 votes
0 votes
2 answers
2
3 votes
3 votes
4 answers
3
akash.dinkar12 asked Apr 5, 2019
2,742 views
Where in a max-heap might the smallest element reside, assuming that all elements are distinct ?