The worst case running time to search for an element in a balanced binary search tree with elements is
View worked solution
Answer: C
The worst-case running time to search for an element in a balanced binary search tree (BST) with elements is proportional to its height, which is .
Given that the number of elements is , we can substitute this into the time complexity expression:
Using the properties of logarithms:
Assuming the base of the logarithm is :
As , the term dominates . Therefore:
Thus, the worst-case running time is , which corresponds to option C.
Free practice · Your answers on this page are not saved.
