Data Structures
CaupolicanDiaz142 total contributions
Published Mar 7, 2023
Contribute to Docs
Data structures are systems for organizing data that dictate how items relate to one another, are accessed, and modified. Many of these systems are found across most programming languages (e.g. dictionaries, arrays, sets). The respective details of how these structures perform in terms of access/search, updating elements, etc., impact how they are used in practice.
Below are some common data structures found in computer programming:
Data Structures
- Array
- Stores elements of various data types in an ordered collection.
- Class
- A class is a piece of code within a program that functions as a template or blueprint for creating multiple instances of a particular object.
- Dictionary
- A dictionary is an unordered set of (key, value) pairs. It provides a way to map pieces of data to each other, and allows for quick access to values associated to keys. The syntax of a dictionary is as follows: pseudo dictionary = { key1: value1, key2: value2, key3: value3
- Hash Table
- A hash table is a data structure that stores an arbitrary number of items, mapping keys to values, and uses a hash function to compute an index.
- Object
- An object is associative data that commonly takes the form of a data structure, function, method, variable, or class.
- Tuple
- A tuple is a data structure consisting of an ordered collection with an arbitrary number of elements.
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.