0% found this document useful (0 votes)
40 views

Data Structure Types: Structures Has A Different Special Way of Organizing Data So We Choose The

There are different types of data structures that organize and store data in computers in special ways so that data can be accessed and used efficiently. Linear data structures like arrays, linked lists, stacks, and queues store elements that can be accessed sequentially, while non-linear structures like trees and graphs store elements in non-sequential order. We need data structures to properly organize data for efficient access and operations, as well as to improve efficiency of operations like adding, deleting, updating, and searching data compared to simple arrays.

Uploaded by

Cnu Vas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Data Structure Types: Structures Has A Different Special Way of Organizing Data So We Choose The

There are different types of data structures that organize and store data in computers in special ways so that data can be accessed and used efficiently. Linear data structures like arrays, linked lists, stacks, and queues store elements that can be accessed sequentially, while non-linear structures like trees and graphs store elements in non-sequential order. We need data structures to properly organize data for efficient access and operations, as well as to improve efficiency of operations like adding, deleting, updating, and searching data compared to simple arrays.

Uploaded by

Cnu Vas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A data structure is a special way of organizing and storing data in a computer

so that it can be used efficiently. Array, LinkedList, Stack, Queue, Tree, Graph
etc are all data structures that stores the data in a special way so that we
can access and use the data efficiently. Each of these mentioned data
structures has a different special way of organizing data so we choose the
data structure based on the requirement, we will cover each of these data
structures in a separate tutorials.

Data Structure Types


We have two types of data structures:

1. Linear Data Structure


2. Non-linear Data Structure

Linear data structures: Elements of Linear data structure are accessed in a


sequential manner, however the elements can be stored in these data
structure in any order. Examples of linear data structure are: LinkedList,
Stack, Queue and Array

Non-linear data structures: Elements of non-linear data structures are stores


and accessed in non-linear order. Examples of non-linear data structure are:
Tree and Graph

Classification of Data Structure with Diagram


Why we need data structures? – Advantages of DS
We need data structures because there are several advantages of using
them, few of them are as follows:

1. Data Organization: We need a proper way of organizing the data so that it


can accessed efficiently when we need that particular data. DS provides
different ways of data organization so we have options to store the data in
different data structures based on the requirement.

2. Efficiency: The main reason we organize the data is to improve the


efficiency. We can store the data in arrays then why do we need linked lists
and other data structures? because when we need to perform several
operation such as add, delete update and search on arrays , it takes more
time in arrays than some of the other data structures. So the fact that we are
interested in other data structures is because of the efficiency.

You might also like