What is a data structure in computer science?
A data structure is a specialized way of organizing, storing, and formatting data in a computer to ensure efficient access and manipulation. It serves as the physical implementation of an abstract data type, defining both how data is represented in memory and the operations that can be performed on it. Data structures are fundamentally intertwined with algorithms, jointly forming the core foundation of computer programming and software engineering.
What we know
- A data structure is a particular way of storing and organizing data in a computer, typically chosen to allow efficient access. [1, 2]
- A data structure acts as the physical implementation of a data type, including storage specifications and operations for working with the data. [2]
- The data structure describes memory representation and operation execution, whereas an abstract data type describes the logical form and allowed operations without implementation details. [2]
- Algorithms and data structures are inherently related, as demonstrated by the choice of an optimal search algorithm depending on whether a list is sorted. [4]
Where to go next
- compared withHow do abstract data types relate to data structures?
- how it workedWhy are algorithms and data structures considered inseparable?
- a case in pointWhat is persistence in computer science?
- the bigger pictureWhat terms make up the glossary of computer science?
- whoHow did Niklaus Wirth influence system engineering?
- an unexpected connectionHow did a 1976 programming book inspire famous software compilers?Niklaus Wirth's classic book directly inspired the Tiny Pascal compiler, which subsequently led to the creation of the widely used Turbo Pascal compiler by Anders Hejlsberg.
Sources
- [1]data structure (Wikidata Q175263) · CC0 1.0
- [2]Data structure · CC BY-SA 4.0
- [3]Glossary of computer science · CC BY-SA 4.0
- [4]Algorithms + Data Structures = Programs · CC BY-SA 4.0
- [5]Persistence (computer science) · CC BY-SA 4.0