1. What is Data Structure
1.1. A data structure is a specialized format for organizing, processing, retrieving and storing data. One of the most basic data structures used in general computer programming is the array.
2. Benefit of Data Structure
2.1. Data structures also aid us in efficiently storing data on circles so that we can recover the data.
2.2. Data structures allow us to reuse data. We can create a few data sets in certain organizations and put them in libraries for use by various clients.
2.3. Data structures provided by various programming languages accompany implicit capabilities (or methods) that let us use the specific database more productively.
3. Types of Data Structure
3.1. Primitive
3.1.1. Data structures can be used to store only a single value. They are the foundation of data manipulation. Ex: int, char, float, double, and pointers.
3.2. Non-Primitive
3.2.1. Complicated data structures that are derived from the primitive data structures. Ex: Array, Linked list, stack.
3.3. Linear
3.3.1. A structure in which the elements are stored sequentially, and the elements are connected to the previous and the next element. Ex: Stacks, Queues, Arrays, and Linked lists.
3.4. Non-Linear
3.4.1. A form of data structure where the data elements don't stay arranged linearly or sequentially. Ex: trees and graphs.
3.5. Static
3.5.1. Size is fixed at compile time, and does not grow or shrink at runtime. Ex: Arrays.
3.6. Dynamic
3.6.1. The size of the structure is not fixed and can be modified during the operations performed on it. Ex: LinkedList, Stack, Vector.