Single Choice Easy

QWhat is the time complexity of a balanced binary search tree's average-case search operation?

ID: #15260 Time Complexity 180 views
Question Info
#15260Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(1) ✔ ✖
  • B O(log n) ✔ ✖
  • C O(n) ✔ ✖
  • D O(n log n) ✔ ✖
Correct Answer

Explanation

In a balanced binary search tree, such as an AVL tree or a red-black tree, the average-case search operation is efficient. The tree's balanced structure ensures that the height remains logarithmic to the number of elements (n), resulting in a time complexity of O(log n) for search operations.

Share This Question

Challenge a friend or share with your study group.