Computer Science, asked by mohinipurohit80, 11 months ago

Worst case running time for building a binary search tree is

Answers

Answered by lakshmi62
0

Searching in a BST has O(h) worst-case runtime complexity, where h is the height of the tree. Since s binary search tree with n nodes has a minimum of O(log n) levels, it takes at least O(log n) comparisons to find a particular node.

Answered by muskanc918
0

Searching in a BST has O(h) worst-case runtime complexity, where h is the height of the tree. Since s binary search tree with n nodes has a minimum of O(log n) levels, it takes at least O(log n) comparisons to find a particular node.

Similar questions