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

Explanation

Correct : a

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science