A data structure in computer science is a system used to store data, keep it organized, and enable easy modification and access. Put simply, a data structure refers to a group of data values, how they relate to each other, and the operations or functions that can be carried out on them. 

Remember it this way:

  • Programs= algorithms+data structures
  • Data structures=related data+allowed operations on that data 

What’s an easy way to understand data structures?

Three examples may help you better understand data structures. 

First, think of a dictionary. In a dictionary, words are organized alphabetically. This enables you to search for and find a word quickly and efficiently.

Next, a city map. Organized into geometries, a city map has scales and directions and it makes it easy to search effectively for a landmark. With a city map, you can also find a route from one place to another.

A business cash-in-cash-out statement. These statements often use tabular schema, or a table. Much like certain data structures, aggregating and extracting data is easy when it’s in organized columns.