Computer Sciences > Gate 2015 Set-1 > Binary Search Tree
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

Explanation

Correct : Binary Search Tree

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science