retagged by
667 views

1 Answer

1 1 vote
In BST, the time complexity of search operation (average case) is taken to be O(log n). But in the worst case, i.e the degenerate trees/skewed trees time complexity of search operation is O(n) which can also be attained using array or linked list. So, in order to remove this problem, balanced binary search tree (AVL tree) was introduced in which the time complexity of search operation remains O(log n).
Position:
Show:

Related questions

0 0 votes
2 2 answers
910
910 views
vijju532 asked Jun 28, 2018
910 views
how does AVL tree requires o(logn) for all the operation i.e search insert and deletewhile other tree (bst,binary) requires o(n) is it due to balancing factor that avl tr...
10 10 votes
1 1 answer
394
394 views
6 6 votes
1 1 answer
229
229 views
6 6 votes
1 1 answer
338
338 views
GO Classes asked Jul 24
338 views
Given the following AVL tree, delete node $\text{A}$.How many rotations are required to rebalance the AVL tree after deleting node $A$?(Count each rotation only once, whe...