Question 19

Computer Awareness Trees Hard

Consider a completely skewed (left / right) binary search tree with n elements. What is the worst case time complexity of searching an element in this tree?

(A) \( \mathrm{O}(\mathrm{n}) \)
(B) \( \mathrm{O}(1) \)
(C) O(log n)
(D) O(n log n)
✓ Correct Answer: Option A Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

In a completely skewed BST (every node has only a left child, or only a right child), the tree is effectively a linked list of height \(n\).

In the worst case, searching visits all \(n\) nodes.

So the worst-case search time is \(O(n)\).

Answer: (A) \(O(n)\)

Practice Similar Trees Questions

Reinforce your conceptual grasp with related questions from CUET-MCA 2024:

Q69 Consider the following tree. This is a
Solve →
Q1 Which one of the following data structures are preferred in database...
Solve →
Q5 \[ |l l| List - I & List - II \\ (A) Asynchronous & (II) The operation is...
Solve →
Q6 Consider a system with 1 K pages and 512 frames and each page is of size 2...
Solve →
Q8 Each node is having a successor node in \( \) :
Solve →
Full-Length Test Series

Prepare for CUET-MCA Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →