wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following statement are correct?
I. In a max heap tree, the minimum value will always lie in one of the leaf node.
II. Worst case time complexity of searching on element in a binary search tree is O(n)
III. In an AVL Tree, the smallest element can be found in o(log(n)) time.
IV. DFS requires back tracking which is implemented using stack.

A
I & II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
All one correct
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
I, II & III
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
II, III & IV
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B All one correct
I. In a max heap tree, the minimum value amongst the nodes will always lie in one of the leaf node, so this statement is true.
II. Since in the worst case, the BST will be skewed. So problem size will reduce linearly with each step, so the worst case time complexity of searching on element in a binary search tree is o(n), hence this statement is true.
III. Since An AVL Tree never be skewed and it will divide the problem into two equal parts approximately with each step, so the smallest element can be found in o(log(n)) time, hence this statement is true.
IV. Since only stack data structure is used to implement depth first traversal. So this statement is also true.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
AVL Tree
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon