answersLogoWhite

0


Best Answer

The complexity of binary search tree :

Search , Insertion and Deletion is O(h) . and the Height can be of O(n) ( if the tree is a skew tree).

For Balanced Binary Trees , the Order is O(log n).

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is complexity of binary search tree?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

In binary search tree n equals nodes h equals height of tree what is time complexity?

O(h)


what is the complexity of binary search?

Deezzzz Nutzzzz


Does binary tree and binary search tree same?

no they are not same


What is the binary search tree worst case time complexity?

Binary search is a log n type of search, because the number of operations required to find an element is proportional to the log base 2 of the number of elements. This is because binary search is a successive halving operation, where each step cuts the number of choices in half. This is a log base 2 sequence.


How do you print all data in a Binary Search Tree?

By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.


What is the different between a binary search tree and a binary tree?

self depend friend"s............


Complexity of an algorithm in data structure?

* search array => O(1) linked list=> O(n) binary tree=> O(log n) hash=>O(1) * search array => O(1) linked list=> O(n) binary tree=> O(log n) hash=>O(1)


Is sorting a binary search tree simple?

A binary search tree is already ordered. An in order traversal will give you a sorted list of nodes.


What is the use of binary?

Binary trees are commonly used to implement binary search tree and binary heaps.


What is binary search in data structure using c?

a tree which has atmost two nodes is called binary tree binary search tree is a binary tree which satisfies the following 1.every node in tree must be distinct 2.values in right subtree > value at root 3.values in left subtree < value at root 4.left,right subtrees must be binary search trees


What is complexity of insertion in binary search tree?

O(log n)At each step of insertion you are either going to the left child or the right child. In a balanced tree, this will effectively cut the number of possible comparisons in half each time.


Why we don't use m way search tree instead of binary search tree?

Well, you might if you want to.