how will you represent a max-heap sequentiallymax


How will you represent a max-heap sequentially?

Max heap, also known as the descending heap, of size n is an almost complete binary tree of n nodes such that the content of every node  is less than or equal to the content of its father. If the sequential representation of an almost entire binary tree is used, this condition decreases to the inequality.

           Info[j] <= info[(j-1)/2] for 0 <= ((j-1)/2) < j <= n-1

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: how will you represent a max-heap sequentiallymax
Reference No:- TGS0282493

Expected delivery within 24 Hours