Heaps
Heaps
What is Heaps?
Heaps = data structure to manage information
Sometimes called as:
-binary heaps
-nearly complete binary trees
-Wrapper function
that calls max-heapify
It is an algorithm used to construct a max-heap from
an array of elements. The goal is to rearrange the
elements in the array so that they satisfy the max-heap
property.