341 views
1 votes
1 votes
It is known that every comparison based algorithm makes O(nlogn) comparisons in worst case.What implication does it have on complexity of intializing  binary search tree with n elements?

1 Answer

1 votes
1 votes
We know that in order traversal of a binary tree can be done in $O(n)$. And if tree is BST, in order traversal gives sorted list. So...

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
0 answers
2
Rohit Gupta 8 asked Dec 25, 2017
1,142 views
If the average depth of a node in an $n$-node binary search tree is $O(\log{n})$, then the height of the tree is$O(n\log{n})$$O(n)$$O(\log{n})$$O(\sqrt(n\log{n}))$