GATEverse Practice, past papers & mock tests
GATE 2011
Programming & Data StructuresTreeseasyMCQ1 mark
A max-heap is a heap where the value of each parent is greater than or equal to the values of its children. Which of the following binary trees is a max-heap? (a) Complete tree with root 10, left child 8 (children 4, 5 with 5 having child 1), right child 6 (child 2) (b) Complete binary tree with root 10; left child 8 (children 4, 5); right child 6 (children 1, 2) (c) Complete binary tree with root 10; left child 5 (children 4, 8); right child 6 (children 2, 1) (d) Tree with root 5; left child 2 (children 1, 4); right child 8 (children 6, 10)
Save your progress

Related Programming & Data Structures PYQs