What are the worst-case complexities of insertion and deletion of a key in a…

GATE · 2015 · CS · Set 1 · Computer Science & IT

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

  1. A.

    θ(log n)θ (log \ n) for both insertion and deletion

  2. B.

    θ(n)θ(n) for both insertion and deletion

  3. C.

    θ(n)θ(n) for insertion and θ(log n)θ (log \ n) for deletion

  4. D.

    θ(log n)θ (log \ n) for insertion and θ(n)θ(n) for deletion

Attempted by 1384 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…