Today we will discuss about the types of datastructure. Datastructure is of two types linear data structure and non linear data structure.
Linear Data Structure
A data structue is linear when all the elements are arranged in a linear (sequential) Order.
Non-Linear Data Structure
A data structure is non linear when all the elements are not arranged in a linear (sequential) order. There is no linearn arrangement of the elements.
Static Data Structure
In these type of data structures, the memory is allocated at compile time. Therefore, maximum size is fixed.
Advantage: Faster Access
Disadvantage: Slower insertion and deletion.
Dynamic Data Structure
In these type of data structures, the memory is allocated at run time. Therefore, maximum size is flexible.
Advantage: Faster insertion and deletion
Disadvantage: Slow Access
