Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I would think that depends on whether the tree is balanced, and what kind of implementation it is (red/black, 2/3/4, BTree, etc)
In a normal binary search tree i believe it's something like O(log N) best case ( Oin the worst)
Best case is O(1) (root node) worst case is O(degenerate tree). Average case is O(log N)
But what is big O but an approximation of how an algorithm will run? (either approximating runtime or memory usage, or some other resource)Hm, I'm thinking that he's not dealing with big-o notation.
But what is big O but an approximation of how an algorithm will run? (either approximating runtime or memory usage, or some other resource)
Wasn't trying to say that Big O notation wasn't appropriate... was simply trying to say that I don't think he knows what it is.