Heap Tree
Heap Tree
A Heap is a special Tree-based data structure in which the tree is a complete binary tree
and it is implemented in array as sequential representation rather than linked
representation. In sequential representation of complete binary tree, the first element of
array a[0] will be the root. The left and right child of the node a[k] will be a[2k+1] and
a[2k+2].