edited by
5,411 views
2 votes
2 votes

The worst case time complexity of AVL is tree is better in comparison to binary search tree for

  1. Search and Insert Operations
  2. Search and Delete Operations
  3. Insert and Delete Operations
  4. Search, Insert and Delete Operations
edited by

1 Answer

Best answer
7 votes
7 votes

Correct Answer would be D) Search, Insert and Deletion operation
 

Because Search is $O(\log N)$ since AVL trees are always balanced. Insertion and deletions are also $O(\log n)$ Where as in case of BST it is $O(n)$.

selected by
Answer:

Related questions

3 votes
3 votes
2 answers
1
go_editor asked Jul 8, 2016
6,726 views
In which tree, for every node the height of its left subtree and right subtree differ almost by 1?Binary Search TreeAVL TreeThreaded Binary TreeComplete Binary Tree
0 votes
0 votes
2 answers
2
go_editor asked Jul 11, 2016
4,930 views
Given an empty stack, after performing push(1), push(2), pop, push(3), push(4), pop, pop, push(5), pop, what is the value of the top of the stack?4321
0 votes
0 votes
1 answer
3
go_editor asked Jul 10, 2016
8,076 views
A hash function $f$ defined as $f (key) = key \mod 13$, with linear probing is used to insert keys 55, 58, 68, 91, 27, 145. What will be the location of 79?1234
6 votes
6 votes
2 answers
4
go_editor asked Dec 19, 2016
2,094 views
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.