...
Software-Engineering
November 5, 2023
Question 881 – Nielit Scentist-B [02-12-2018]
November 5, 2023
Software-Engineering
November 5, 2023
Question 881 – Nielit Scentist-B [02-12-2018]
November 5, 2023

Data-Structures

Question 15

What is the worst case time complexity of inserting n2 elements into an AVL-tree with n elements initially?

A
θ(n4)
B
θ(n2)
C
θ(n3)
D
θ(n2 log n)
Question 15 Explanation: 
AVL Tree all operations(insert, delete and search) will take O(logn) time.
In question they asked about n2 elements.
So, In worst case it will take o(n2 log n) time.
Correct Answer: D
Question 15 Explanation: 
AVL Tree all operations(insert, delete and search) will take O(logn) time.
In question they asked about n2 elements.
So, In worst case it will take o(n2 log n) time.
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!!