Computer Science, asked by superstars1549, 1 year ago

Given an array of element 5,7,9,1,3,10,8,4. Tick all the correct sequences of elements after inserting all the elements in a min-heap.

Answers

Answered by luckiest1
0

\huge\bold\pink{hello!!}

HERE IS UR ANSWER

_____________________❤

✔✔sequence is 5,4,3,2,1

Answered by mariospartan
2

Answer:

1, 3, 4, 7, 8, 9, 10

Explanation:

The collection of array or mini-map is a complete structured binary tree in which the value provided separately in a different internal node is more than or somewhat equal to the values present in the node of their children.

Mapping the element into an array of a heap is easy:

If a node is denoted to an index A, then the child at left is stored at index 2k + 1 and the child at right is stored at 2k + 2.

Similar questions