Big O—Popular Data Structures
Table below shows the average time complexities related to different operations for different data structures. Also, it includes corresponding (worst) space complexities.
Data Structure | Access | Search | Insertion | Deletion | Space Complexity |
---|---|---|---|---|---|
Array | |||||
Linked List | |||||
Stack | |||||
Queue | |||||
Hash Table | - | ||||
Disjoint Set or Union-Find | - | Find: ** | Union: ** | - |
***More will be added.
** : Practically, . Here, is known as the inverse Ackermann function.