Skip to content

Commit 7bd7f9a

Browse files
committed
Add comments to data-structure complexity table.
1 parent f696d02 commit 7bd7f9a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ Below is the list of some of the most used Big O notations and their performance
199199

200200
### Data Structure Operations Complexity
201201
202-
| Data Structure | Access | Search | Insertion | Deletion |
203-
| ----------------------- | :-------: | :-------: | :-------: | :-------: |
204-
| **Array** | 1 | n | n | n |
205-
| **Stack** | n | n | 1 | 1 |
206-
| **Queue** | n | n | 1 | 1 |
207-
| **Linked List** | n | n | 1 | 1 |
208-
| **Hash Table** | - | n | n | n |
209-
| **Binary Search Tree** | n | n | n | n |
210-
| **B-Tree** | log(n) | log(n) | log(n) | log(n) |
211-
| **Red-Black Tree** | log(n) | log(n) | log(n) | log(n) |
212-
| **AVL Tree** | log(n) | log(n) | log(n) | log(n) |
202+
| Data Structure | Access | Search | Insertion | Deletion | Comments |
203+
| ----------------------- | :-------: | :-------: | :-------: | :-------: | :-------- |
204+
| **Array** | 1 | n | n | n | |
205+
| **Stack** | n | n | 1 | 1 | |
206+
| **Queue** | n | n | 1 | 1 | |
207+
| **Linked List** | n | n | 1 | 1 | |
208+
| **Hash Table** | - | n | n | n | In case of perfect hash function costs would be O(1) |
209+
| **Binary Search Tree** | n | n | n | n | |
210+
| **B-Tree** | log(n) | log(n) | log(n) | log(n) | |
211+
| **Red-Black Tree** | log(n) | log(n) | log(n) | log(n) | |
212+
| **AVL Tree** | log(n) | log(n) | log(n) | log(n) | |
213213

214214
### Array Sorting Algorithms Complexity
215215

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy