|
|
|
|
|
by orionblastar
4788 days ago
|
|
From my limited understanding a list is a data structure that contains an ordered number of items. For example a linked list that has a pointer to the next item in the data structure that keeps the list in order. A tree data structure has sub-sets of linked nodes starting at a 'root' node, much like a tree. 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.