Hello Everyone
Today's topic is data structures
Today we shall learn about:
- Data structure
- Types of data structures
Before starting I would like to tell you which book I prefer
DATA STRUCTURES AND APPLICATIONS(a simple and systematic approach)
~A.M. PADMA REDDY, BE, M.TECH, MISTE
Sai Vidya Institute of technology
This is an awesome book, you can understand all the concepts very clearly!
Now I would like to start!
Define data structures?
Definition: It means that the way the values are structured or organized or stored in memory.
Various types of data structures are:
- Primitive data structure
- Non-primitive data structure
The data structures that can be manipulated directly by machine instructions are called primitive data structures. Thus, the primitive data structures are fundamental data types that are supported by a programming language. The primitive data structure are also called simple data structures.
For example, in C, the different primitive data structures are defined using the data types such as int, float, char, double and pointers.
NON PRIMITIVE DATA STRUCTURES
The data structure where its values or elements are stored in a sequence or linear order is called linear data structure. The elements can be accessed sequentially one after the other in a linear order and hence the name. The linear relationship between the elements is maintained.
For example, arrays, queues, stacks, linked lists, etc..., are all linear data structures.