Data Structure
|
Time Complexity
|
Space Complexity
| |||||||
Average
|
Worst
|
Worst
| |||||||
Access
|
Search
|
Insertion
|
Deletion
|
Access
|
Search
|
Insertion
|
Deletion
| ||
Θ(1)
|
Θ(n)
|
Θ(n)
|
Θ(n)
|
O(1)
|
O(n)
|
O(n)
|
O(n)
|
O(n)
| |
Θ(n)
|
Θ(n)
|
Θ(1)
|
Θ(1)
|
O(n)
|
O(n)
|
O(1)
|
O(1)
|
O(n)
| |
Θ(n)
|
Θ(n)
|
Θ(1)
|
Θ(1)
|
O(n)
|
O(n)
|
O(1)
|
O(1)
|
O(n)
| |
Θ(n)
|
Θ(n)
|
Θ(1)
|
Θ(1)
|
O(n)
|
O(n)
|
O(1)
|
O(1)
|
O(n)
| |
Θ(n)
|
Θ(n)
|
Θ(1)
|
Θ(1)
|
O(n)
|
O(n)
|
O(1)
|
O(1)
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(n)
|
O(n)
|
O(n)
|
O(n)
|
O(n log(n))
| |
N/A
|
Θ(1)
|
Θ(1)
|
Θ(1)
|
N/A
|
O(n)
|
O(n)
|
O(n)
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(n)
|
O(n)
|
O(n)
|
O(n)
|
O(n)
| |
N/A
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
N/A
|
O(n)
|
O(n)
|
O(n)
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(n)
| |
N/A
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
N/A
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(log(n))
|
O(n)
| |
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
Θ(log(n))
|
O(n)
|
O(n)
|
O(n)
|
O(n)
|
O(n)
|
Sunday, 16 October 2016
Common Data Structure Operations with their complexity
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment