Data can be organized in many ways and data structures is one of these ways. It is used to represent data in the memory of the computer so that the processing of data can be done in easier way. In other words, data structures is the logical and mathematical model of a particular organization of data.
The data structures can be of the following types:
1. Linear Data structures
2. Non-Linear Data Structures
1. Linear Data structures- In these data structures the elements form a sequence. Such as Arrays, Linked Lists, Stacks and Queues are linear data structures.
2. Non-Linear Data Structures- In these data structures the elements do not form a sequence. Such as Trees and Graphs are non-linear data structures.