Operating-Systems
October 10, 2023
Nielit Scentist-B [02-12-2018]
October 10, 2023
Operating-Systems
October 10, 2023
Nielit Scentist-B [02-12-2018]
October 10, 2023

Algorithms

Question 183
The smallest element that can be found in time___ in a binary max heap
A
O(nlogn)
B
O(logn)
C
O(n)
D
O(n2)
Question 183 Explanation: 
We need to traverse all nodes in order to identify smallest element because it is not following binary search tree properties. Searching time for ‘n’ elements will take O(n) in worst case.
Correct Answer: C
Question 183 Explanation: 
We need to traverse all nodes in order to identify smallest element because it is not following binary search tree properties. Searching time for ‘n’ elements will take O(n) in worst case.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!