Gate CS-2015-1 Question Paper With Solutions

Q. 33 What are the worst-case complexities of insertion and deletion of a key in a binary search tree?

(A) Θ(logn) for both insertion and deletion

(B) Θ(n) for both insertion and deletion

(C) Θ(n) for insertion and Θ(logn) for deletion

(D) Θ(logn) for insertion and Θ(n) for deletion

Answer: (B)

Explanation:

Gate CS-2015-1 Question Paper With Solutions

Learn More:   Gate EE-2016-1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here