Computer Sciences > Gate 2019 > Heap Data Structure
Consider the following statements:

I. The smallest element in a max-heap is always at a leaf node.
II. The second largest element in a max-heap is always a child of the root node.
III. A max-heap can be constructed from a binary search tree in ฮ˜(n) time.
IV. A binary search tree can be constructed from a max-heap in ฮ˜(n) time.


Which of the above statements is/are TRUE?
A
I, II and III
B
I, III and IV
C
I, II and IV
D
II, III and IV

Correct : a

Similar Questions

A complete binary min-heap is made by including each integer in [1, 1023] exactly once. The depth of a node in the heap is the length of the path from the root...
#546 Fill in the Blanks
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

max heap properties max heap smallest element max heap second largest binary search tree construction GATE computer science 2019 time complexity max heap binary search tree max heap max heap leaf node max heap root child binary tree to heap conversion heap to tree conversion

Unique Visitor Count

Total Unique Visitors

Loading......