Based on the previous blog post once we have data in variables, we need some mechanism for manipulating that data to solve problems.
a data structure is a particular way of organizing data in a computer so that it can be used efficiently.
The example of the data structure is Array, ArrayList, stacks, trees, graphs and so on.
Types of Data Structure –
About these, we will talk later but now we need to understand about Linear data structure and Non-linear data structure.
a. Linear data structures: Elements are accessed in a sequential order but it is not compulsory to store all elements sequentially (Linked Lists) Examples: Linked List, Stacks, and Queues.
b. Non-Linear data structures: Elements of this data structure are stored/accessed in a non-linear order. Emaples: Tree and graphs.