0 votes 0 votes Is the array with values $23,17,14; 6,13,10,1,5,7,12$ a max-heap ? Algorithms cormen algorithms binary-heap descriptive + – akash.dinkar12 asked Apr 5, 2019 reshown Apr 14, 2019 by akash.dinkar12 akash.dinkar12 1.4k views answer comment Share Follow See 1 comment See all 1 1 comment reply Kajal Khobragade commented Apr 14, 2019 reply Follow Share No Max-heap property is failing at node no. 8 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes no, max heap is not possible bcoz it is failing the property at node 8 insertion time. but if we are implementing it by array then there is basic fault in question bcoz in array data type should be similar here .6 is given which is float type. royal shubham answered Apr 14, 2019 royal shubham comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes The Node with Value $6$ and $7$ violates the $Max-HEAP$ $Property$, according to which the $Parent[key] >= Child[key]$ noob_coder answered May 13, 2020 noob_coder comment Share Follow See all 0 reply Please log in or register to add a comment.