What are the types of data structure?



Suraj Said

+0 -0

Data Structure are basically classified into two type:
1.Linear Data Structure
It is a type data structure in which each data is connected to the front and behind to him in sequential manner.
e.g. Array,Linkedlist , Stack, Queue
2.Non Linear Data Structure
It is type of data structure in which element are connected into non-sequential and non-linear order.
e.g Tree,Graph



Ayush Said

+0 -0

Following is the five different types of data structures:
1. Arrays: A collection of elements of the same data type stored in contiguous memory locations.
2. Linked Lists: A collection of elements, each of which points to the next element in the list.
3. Stacks: A data structure that follows the Last In First Out (LIFO) principle.
4. Queues: A data structure that follows the First In First Out (FIFO) principle.
5. Trees: A data structure that consists of nodes, where each node has a value and zero or more child nodes.



Submit Your Response