Contains nodes where each node can point to at most one parent node.
Pros | Cons |
---|---|
Opens a new world of algorithms compared to linear data structures | Operations can be linear time if using an unbalanced tree |
Operations | Worst | Average |
---|---|---|
Delete | O(n) | O(n) |
Insert | O(n) | O(n) |
Search | O(n) | O(n) |