Basic Concept of Data Structure
The data structure name indicates itself that organizing the data in computer memory. We all know about array, it's a collection of memory elements stored sequentially one by one. Just like an array, there are also several ways to organize the data in memory.
Primitive Data Structure
Primitive Data Structure simply means that, which have primitive data types. i.e
The most important part of this data structure is it can hold a single value.
Non Primitive Data structure has 2 types
- Linear Data structure
- Non-Linear Data structure
Linear Data structure
Arrangement of data in sequential manners and purpose of this used for
Queue. In this structure, one element is connected to only one another element in linear form.
Non-Linear Data structure
When one element is connected to multiple numbers of elements is called a non-linear data structure. In this data structure elements are arranged in a random manner.
Example: Tree, Graphs