A data structure is a way of storing and retrieving data efficiently. There are two main objectives to study data structures.