List of data structures
|
This is a list of data structures. For a wider list of terms, see list of terms relating to algorithms and data structures.
- Linear data structures
- List
- Associative array (a.k.a. dictionary or map)
- Hash table
- Stack (a.k.a LIFO Last in, first out)
- Queue (a.k.a FIFO First in, first out)
- Priority queue - sometimes implemented as a Heap, below
- Deque
- Buffer gap
- Graph data structures
- Adjacency list
- Disjoint-set data structure
- Graph-structured stack
- Scene graph
- Tree data structures
- Other data structures
- Tagged union
- Union
- Frame
- Database and "table"
An attempt to classify some of these based on feature attributes:
Structure | Ordered | Unique | Cells per Node |
---|---|---|---|
Bag | no | no | 1 |
Set | no | yes | 1 |
List | yes | no | 1 |
Map | no | yes | 2 |
"Ordered" does not mean sorted, only that input order is "retained". Other structures such as "linked list" and "stack" cannot easily be defined this way because there are specific operations associated with them.