0

9.7kviews

Explain different types of data structures with examples

**1 Answer**

0

9.7kviews

Explain different types of data structures with examples

0

358views

written 5.9 years ago by | • modified 5.9 years ago |

- A data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently
Data structure are broadly classified as

`a. Primitive Data Structure b. Non-Primitive Data Structure / Derived Data Structure`

**Primitive data structures**are the basic data structures that can be directly accessed and does not contain any sub-datatype.Examples of Primitive data structures are

`i. Integer ii. Character iii. Float and iv. Pointer`

**Non-Primitive data Structures**are derived from one or more primitive data structures.Examples of Non-primitive data structures are

`i. Arrays ii. Lists iii. Files`

- Lists are further sub divided into Linear and Non Linear Data structure.
**Linear Data Structure**`i. A data structure that maintains a linear relationship between its elements, it is called linear data structure ii. For example, an array,stack and Queue holds the linear relationship between its elements, it is linear data structure`

**Non-Linear Data Structure**`i. In case of non-linear data structure, they do not maintain any linear relationship between their elements ii. For example tree,graph`

ADD COMMENT
EDIT

Please log in to add an answer.