Data Structures is a specific way to store and organize data in a computer's memory so that the data can be used efficiently later.
We have some data which has, student name and age. Here, student name will be of string data type and age will be of an integer data type. We can organize data as a record like Student record, having both student name and age in it. We can collect and store student's records in a file or database as a data structure.
Data structures should be designed and implemented in such a way that increases efficiency and decreases the complexity of the program designed.
Some of the characteristics of data structures are listed below.
A data structure is designed to order data for a particular purpose so that it can be accessed appropriately. Some of the data processing operations are efficient with respect to both time and space if the data stored is organized.
In a telephone directory, imagine that all the numbers are unorganized. It would be very difficult to search someone’s number. Only if the names are arranged in lexicographical order with the numbers, the process would be easier. Also, the newly registered telephone numbers are saved and a new version of the telephone dictionary is introduced every year with those new numbers.
Thus, a data structure is used to exploit real constraints to optimize certain commonly used operations. Some important uses of data structures are: