1. Data Structure
Data Structure = Data + Structure
Data Structure means organizing data in such a way that it becomes easy to store, access, and process.
If data is properly structured, it becomes easier to search, update, and manage.
Example:
Problem (Messy Wardrobe)
-
Clothes are scattered everywhere.
-
It becomes difficult to find things.
-
It takes more time.
Solution (Organized Wardrobe)
-
Clothes are arranged properly.
-
Shirts in one place, pants in another place.
-
Things become easy to find.
Similarly, in computers we organize data in memory so that it can be processed easily and efficiently. This organized way is called Data Structure.
Definition:
A mathematical or logical model of a particular organization of data in memory is called a Data Structure.
Data Structure provides the knowledge of how data should be organized in memory so that programs become efficient and less complex.
