2,168 views
2 votes
2 votes

how many of the following statements is incorrect regarding the time complexity of binary search tree,AVL Tree, min heap, binary tree?

i assumed non existent elements are those which do not exists in a tree,

acc to me only (a) is incorrect!

because to find any element in BST, It takes O(n) time

1 Answer

0 votes
0 votes
Option D is incorrect.

When the element we are searching for is minimum than the root value itself then the comparision can be done in O(1) time complexity. So that is the best case

Related questions

0 votes
0 votes
1 answer
2
KISHALAY DAS asked Nov 15, 2016
319 views
I think none correct..anybody please check
0 votes
0 votes
2 answers
3
KISHALAY DAS asked Nov 7, 2016
274 views
0 votes
0 votes
0 answers
4