112 views
1 votes
1 votes
Given an array of elements $5,7,9,1,3,10,8,4,$ which of the following is not a possible array implementation of min-heap of these elements?
  1. $1,3,4,7,5,8,9,10$
  2. $1,4,3,8,9,5,7,10$
  3. $1,3,4,5,8,7,9,10$
  4. All are min-heaps

1 Answer

2 votes
2 votes
By making a complete binary tree of the given choices we can see that all are min-heaps.
Answer:

Related questions

1 votes
1 votes
1 answer
1
gatecse asked Aug 9, 2020
309 views
What is the location of parent node for any arbitrary node $i$ in an array implementation of a complete binary tree in C language?floor$(i /2)$floor$(i+1) /2$floor$((i-1)...
3 votes
3 votes
1 answer
3
gatecse asked Aug 9, 2020
227 views
The cut vertices in the given graph areE and FA, C and DC, E and FB and C
1 votes
1 votes
1 answer
4