Gate CS-2009 Question Paper With Solutions

Q. 48 Consider a binary max-heap implemented using an array

Which one of the following array represents a binary max-heap?

(A) {25, 12, 16, 13, 10, 8, 14}

(B) {25, 14, 13, 16, 10, 8, 12}

(C) {25, 14, 16, 13, 10, 8, 12}

(D) {25, 14, 12, 13, 10, 8, 16}

Answer: (C)

Explanation:

Gate CS-2009 Question Paper With Solutions

Learn More:   Gate EE-2011 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here