Data Structures Overview
Time and Space Complexity Overviews
Click on a tab below to see the worst or average case time complexities for access, search, insertion, and deletion operations for common data structures. The worst case tab includes space complexity details for each data structure. The last tab includes details about the best, average, and worst case time complexities for various array sorting algorithms as well as a column with space complexity details.
It is like that, but we need to know mores. Maintaining
- Worst Case
- Average Case
- Array Sorting Algorithms
Data Structure | Access | Search | Insertion | Deletion | Space | Remark |
---|---|---|---|---|---|---|
Array | tbd | |||||
Stack | tbd | |||||
Queue | tbd | |||||
Singly-Linked List | tbd | |||||
Doubly-Linked List | tbd | |||||
Skip List | tbd | |||||
Hash Table | tbd | |||||
Binary Search Tree | tbd | |||||
Cartesian Tree | tbd | |||||
B-Tree | tbd | |||||
Red-Black Tree | tbd | |||||
Splay Tree | tbd | |||||
AVL Tree | tbd | |||||
KD Tree | tbd |
Data Structure | Access | Search | Insertion | Deletion | Remark |
---|---|---|---|---|---|
Array | tbd | ||||
Stack | tbd | ||||
Queue | tbd | ||||
Singly-Linked List | tbd | ||||
Doubly-Linked List | tbd | ||||
Skip List | tbd | ||||
Hash Table | tbd | ||||
Binary Search Tree | tbd | ||||
Cartesian Tree | tbd | ||||
B-Tree | tbd | ||||
Red-Black Tree | tbd | ||||
Splay Tree | tbd | ||||
AVL Tree | tbd | ||||
KD Tree | tbd |
Algorithm | Best | Average | Worst | Space | Remark |
---|---|---|---|---|---|
Quicksort | tbd | ||||
Mergesort | tbd | ||||
Timsort | tbd | ||||
Heapsort | tbd | ||||
Bubble Sort | tbd | ||||
Insertion Sort | tbd | ||||
Selection Sort | tbd | ||||
Tree Sort | tbd | ||||
Shell Sort | tbd | ||||
Bucket Sort | tbd | ||||
Radix Sort | tbd | ||||
Counting Sort | tbd | ||||
Cubesort | tbd |
What is a data structure?
It is like that, but we need to know mores. Maintaining
A data structure, as its name implies, is a way of structuring data. Since we are dealing with computers, we are ultimately talking about a way of specifically structuring data inside random-access memory (RAM). As the Wiki article notes:
In computer science, a data structure is a data organization, management, and storage format that is usually chosen for efficient access to data. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data (i.e., it is an algebraic structure about data).