by orionblastar · 13y ago · 0 comments
How does time complexity fit into that?
The balanced binary tree search operation is an example of something whose cost grows very slowly even as the size of the tree grows rapidly.
There are algorithms that are hard the same way the O(log n) tree is easy: they grow exponentially with the size of input, so very small changes in the input size can drastically increase their cost.