SlideShare a Scribd company logo
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
INTRODUCTION OF DATA STRUCTURE
NAME – BISHAL CHOWDHURY
ROLL NO - 27600121067
YEAR - 2022
SEMESTER - 3RD
SUBJECT CODE - PCC CS-301
 INTRODUCTION
 A data structure is a group of data elements that provides the easiest way to store and perform different
actions on the data of the computer. A data structure is a particular way of organizing data in a
computer so that it can be used effectively.
 Data structures are the building blocks of any program or the software. Choosing the appropriate data
structure for a program is the most difficult task for a programmer. Following terminology is used as far
as data structures are concerned.
• DATA: Data can be defined as an elementary value or the collection of values
• Record: Record can be defined as the collection of various data items
• File: A File is a collection of various records of one type of entity.
• Attribute and Entity: An entity represents the class of certain objects. it contains various attributes. Each
attribute represents the particular property of that entity.
• Field: Field is a single elementary unit of information representing the attribute of an entity.
NEED OF DATA STRUCTURES
• Processor speed: To handle very large amout of data, high speed processing is required, but as the data is
growing day by day to the billions of files per entity, processor may fail to deal with that much amount of data.
• Data Search: Consider an inventory size of 106 items in a store, If our application needs to search for a
particular item, it needs to traverse 106 items every time, results in slowing down the search process.
in order to solve the above problems, data structures are used. Data is organized to form a data structure in
such a way that all items are not required to be searched and required data can be searched instantly.
As applications are getting complexed and amount of data is increasing day by day, there may arrise the following
problems:
 CLASSIFICATION OF DATA STRUCTURE
 PRIMITIVE DATA STRUCTURE
Primitive data structure is a data structure that can hold a single value in a specific location whereas the non-linear
data structure can hold multiple values either in a contiguous location or random locations
The examples of primitive data structure are float, character, integer and pointer. The value to the primitive data
structure is provided by the programmer. The following are the four primitive data structures:
•Integer: The integer data type contains the numeric values. It contains the whole numbers that can be either negative
or positive. When the range of integer data type is not large enough then in that case, we can use long.
•Float: The float is a data type that can hold decimal values. When the precision of decimal value increases then the
Double data type is used.
•Character: It is a data type that can hold a single character value both uppercase and lowercase such as 'A' or 'a’.
 NON-PRIMITIVE DATA STRUCTURE
The non-primitive data structure is a kind of data structure that can hold multiple values either in a contiguous or
random location. The non-primitive data types are defined by the programmer. The non-primitive data structure is
further classified into two categories, i.e., linear and non-linear data structure.
Array: An array is a data structure that can hold the elements of same type. It cannot contain the elements of different
types like integer with character. The commonly used operation in an array is insertion, deletion, traversing, searching
 Linked List: Linked list is a linear data structure which is used to maintain a list in the memory. It can be seen
as the collection of nodes stored at non-contiguous memory locations. Each node of the list contains a pointer to
its adjacent node.
 LINEAR DATA STRUCTURE:
Data structure where data elements are arranged sequentially or linearly where each and every element is
attached to its previous and next adjacent is called a linear data structure.
STACK: Stack is a linear list in which insertion and deletions are allowed only at one end, called top.
A stack is an abstract data type (ADT), can be implemented in most of the programming languages. It is named as
stack because it behaves like a real-world stack, for example: - piles of plates or deck of cards etc.
QUEUE: Queue is a linear list in which elements can be inserted only at one end called rear and deleted only at the
other end called front.
 NON LINEAR DATA STRUCTURES:
This data structure does not form a sequence i.e. each item or element is connected with two or more other items in
a non-linear arrangement. The data elements are not arranged in sequential structure.
TREES: Trees are multilevel data structures with a hierarchical relationship among its elements known as nodes.
The bottommost nodes in the herierchy are called leaf node while the topmost node is called root node. Each node
contains pointers to point adjacent nodes.
Graphs: Graphs can be defined as the pictorial representation of the set of elements (represented by vertices)
connected by the links known as edges. A graph is different from tree in the sense that a graph can have cycle while
the tree can not have the one.
OPERATIONS ON DATA STRUCTURE:
1) TRAVERSING: Every data structure contains the set of data elements. Traversing the data structure means
visiting each element of the data structure in order to perform some specific operation like searching or sorting.
Example: If we need to calculate the average of the marks obtained by a student in 6 different subject, we need to
traverse the complete array of marks and calculate the total sum, then we will devide that sum by the number of
subjects i.e. 6, in order to find the average.
2) INSERTION: Insertion can be defined as the process of adding the elements to the data structure at any location.
If the size of data structure is n then we can only insert n-1 data elements into it.
3) DELETION: The process of removing an element from the data structure is called Deletion. We can delete an
element from the data structure at any random location.
If we try to delete an element from an empty data structure then underflow occurs.
4) SEARCHING: The process of finding the location of an element within the data structure is called Searching.
There are two algorithms to perform searching, Linear Search and Binary Search. We will discuss each one of them
later in this tutorial.
5) SORTING: The process of arranging the data structure in a specific order is known as Sorting. There are many
algorithms that can be used to perform sorting, for example, insertion sort, selection sort, bubble sort, etc.
6) MERGING: When two lists List A and List B of size M and N respectively, of similar type of elements, clubbed or
joined to produce the third list, List C of size (M+N), then this process is called merging
CONCLUSIONS
DATA STRUCTURE IS USEFULL IN DAY TO DAY LIFE AND ARE USING THEM
MORE FREQUENTLY THAT IS WHY IT IS SO HOT SUBJECT IN INFORMATION
TECHNOLOGY INDUSTRY.
REFERENCE
 DATA STRUCTURES
BY G A VIJAYALAKSHMI PAI
DSA - Copy.pptx

More Related Content

PPTX
DS Module 1.pptx
SaralaT3
 
PPTX
DS Module 1.pptx
sarala9
 
PPT
Ch1
OmarFarukh3
 
PPTX
Which data structure is it? What are the various data structure kinds and wha...
Tutort Academy
 
PPTX
Data Structures and algoithms Unit - 1.pptx
mexiuro901
 
PPTX
sourabhpptsasdfghjkcdfxcvhbycfxv hgvihjubgveminar.pptx
gagaco5776
 
PPTX
DataStructurePpt.pptx
ssuser031f35
 
PPTX
Introduction to data structures (ss)
Madishetty Prathibha
 
DS Module 1.pptx
SaralaT3
 
DS Module 1.pptx
sarala9
 
Which data structure is it? What are the various data structure kinds and wha...
Tutort Academy
 
Data Structures and algoithms Unit - 1.pptx
mexiuro901
 
sourabhpptsasdfghjkcdfxcvhbycfxv hgvihjubgveminar.pptx
gagaco5776
 
DataStructurePpt.pptx
ssuser031f35
 
Introduction to data structures (ss)
Madishetty Prathibha
 

Similar to DSA - Copy.pptx (20)

PPTX
ntroduction of Algorithms, Analysing Algorithms. Arrays: Sparse Matrices - Re...
kalaip3
 
PPTX
DataStructureccvdgddfffdesddsssdssPpt.pptx
bgmi52926
 
PDF
Datastructures Notes
Ranjithkumar C
 
PPTX
Unit-1 DataStructure Intro.pptx
ajajkhan16
 
PPTX
DataStructurePpt-01.pptxEngineering data structure notes
limev72215
 
PPTX
DataStructurePpt.pptx
DCABCA
 
PDF
Data Structure Ppt for our engineering college industrial training.
AnumaiAshish
 
PDF
Unit.1 Introduction to Data Structuresres
amplopsurat
 
PPTX
Data structure
MdArifHossain30
 
PPTX
project on data structures and algorithm
AnujKumar566766
 
PPT
Introduction to data structure
adeel hamid
 
PDF
2. Introduction to Data Structure.pdf
SulabhPawaia
 
PPTX
Introduction to Data Structures and their importance
Bulbul Agrawal
 
PDF
.DATA STRUCTURES
KarthiKeyan462713
 
PPTX
Data structure power point presentation
Anil Kumar Prajapati
 
PPTX
Data Structure and Algorithms by Sabeen Memon03.pptx
msoomar8611
 
PPTX
Data structure (basics)
ShrushtiGole
 
PDF
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
Sowmya Jyothi
 
PPTX
Data structure and its types.
buyinstagramfollowersaustralia
 
PPTX
Data structures
KarthiKeyan462713
 
ntroduction of Algorithms, Analysing Algorithms. Arrays: Sparse Matrices - Re...
kalaip3
 
DataStructureccvdgddfffdesddsssdssPpt.pptx
bgmi52926
 
Datastructures Notes
Ranjithkumar C
 
Unit-1 DataStructure Intro.pptx
ajajkhan16
 
DataStructurePpt-01.pptxEngineering data structure notes
limev72215
 
DataStructurePpt.pptx
DCABCA
 
Data Structure Ppt for our engineering college industrial training.
AnumaiAshish
 
Unit.1 Introduction to Data Structuresres
amplopsurat
 
Data structure
MdArifHossain30
 
project on data structures and algorithm
AnujKumar566766
 
Introduction to data structure
adeel hamid
 
2. Introduction to Data Structure.pdf
SulabhPawaia
 
Introduction to Data Structures and their importance
Bulbul Agrawal
 
.DATA STRUCTURES
KarthiKeyan462713
 
Data structure power point presentation
Anil Kumar Prajapati
 
Data Structure and Algorithms by Sabeen Memon03.pptx
msoomar8611
 
Data structure (basics)
ShrushtiGole
 
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
Sowmya Jyothi
 
Data structure and its types.
buyinstagramfollowersaustralia
 
Data structures
KarthiKeyan462713
 
Ad

Recently uploaded (20)

PPTX
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
PDF
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
PDF
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PDF
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
PPTX
batch data Retailer Data management Project.pptx
sumitmundhe77
 
PDF
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
PDF
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PPTX
International-health-agency and it's work.pptx
shreehareeshgs
 
PDF
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
PPTX
Azure Data management Engineer project.pptx
sumitmundhe77
 
PPTX
Lecture 1 Intro in Inferential Statistics.pptx
MiraLamuton
 
PPTX
artificial intelligence deeplearning-200712115616.pptx
revathi148366
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
PDF
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
PDF
Data Analyst Certificate Programs for Beginners | IABAC
Seenivasan
 
PDF
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
PPTX
Complete_STATA_Introduction_Beginner.pptx
mbayekebe
 
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
batch data Retailer Data management Project.pptx
sumitmundhe77
 
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
International-health-agency and it's work.pptx
shreehareeshgs
 
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
Azure Data management Engineer project.pptx
sumitmundhe77
 
Lecture 1 Intro in Inferential Statistics.pptx
MiraLamuton
 
artificial intelligence deeplearning-200712115616.pptx
revathi148366
 
Introduction to Data Analytics and Data Science
KavithaCIT
 
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
Data Analyst Certificate Programs for Beginners | IABAC
Seenivasan
 
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
Complete_STATA_Introduction_Beginner.pptx
mbayekebe
 
Ad

DSA - Copy.pptx

  • 1. BUDGE BUDGE INSTITUTE OF TECHNOLOGY INTRODUCTION OF DATA STRUCTURE NAME – BISHAL CHOWDHURY ROLL NO - 27600121067 YEAR - 2022 SEMESTER - 3RD SUBJECT CODE - PCC CS-301
  • 2.  INTRODUCTION  A data structure is a group of data elements that provides the easiest way to store and perform different actions on the data of the computer. A data structure is a particular way of organizing data in a computer so that it can be used effectively.  Data structures are the building blocks of any program or the software. Choosing the appropriate data structure for a program is the most difficult task for a programmer. Following terminology is used as far as data structures are concerned. • DATA: Data can be defined as an elementary value or the collection of values • Record: Record can be defined as the collection of various data items • File: A File is a collection of various records of one type of entity. • Attribute and Entity: An entity represents the class of certain objects. it contains various attributes. Each attribute represents the particular property of that entity. • Field: Field is a single elementary unit of information representing the attribute of an entity.
  • 3. NEED OF DATA STRUCTURES • Processor speed: To handle very large amout of data, high speed processing is required, but as the data is growing day by day to the billions of files per entity, processor may fail to deal with that much amount of data. • Data Search: Consider an inventory size of 106 items in a store, If our application needs to search for a particular item, it needs to traverse 106 items every time, results in slowing down the search process. in order to solve the above problems, data structures are used. Data is organized to form a data structure in such a way that all items are not required to be searched and required data can be searched instantly. As applications are getting complexed and amount of data is increasing day by day, there may arrise the following problems:  CLASSIFICATION OF DATA STRUCTURE
  • 4.  PRIMITIVE DATA STRUCTURE Primitive data structure is a data structure that can hold a single value in a specific location whereas the non-linear data structure can hold multiple values either in a contiguous location or random locations The examples of primitive data structure are float, character, integer and pointer. The value to the primitive data structure is provided by the programmer. The following are the four primitive data structures: •Integer: The integer data type contains the numeric values. It contains the whole numbers that can be either negative or positive. When the range of integer data type is not large enough then in that case, we can use long. •Float: The float is a data type that can hold decimal values. When the precision of decimal value increases then the Double data type is used. •Character: It is a data type that can hold a single character value both uppercase and lowercase such as 'A' or 'a’.  NON-PRIMITIVE DATA STRUCTURE The non-primitive data structure is a kind of data structure that can hold multiple values either in a contiguous or random location. The non-primitive data types are defined by the programmer. The non-primitive data structure is further classified into two categories, i.e., linear and non-linear data structure. Array: An array is a data structure that can hold the elements of same type. It cannot contain the elements of different types like integer with character. The commonly used operation in an array is insertion, deletion, traversing, searching
  • 5.  Linked List: Linked list is a linear data structure which is used to maintain a list in the memory. It can be seen as the collection of nodes stored at non-contiguous memory locations. Each node of the list contains a pointer to its adjacent node.  LINEAR DATA STRUCTURE: Data structure where data elements are arranged sequentially or linearly where each and every element is attached to its previous and next adjacent is called a linear data structure. STACK: Stack is a linear list in which insertion and deletions are allowed only at one end, called top. A stack is an abstract data type (ADT), can be implemented in most of the programming languages. It is named as stack because it behaves like a real-world stack, for example: - piles of plates or deck of cards etc. QUEUE: Queue is a linear list in which elements can be inserted only at one end called rear and deleted only at the other end called front.  NON LINEAR DATA STRUCTURES: This data structure does not form a sequence i.e. each item or element is connected with two or more other items in a non-linear arrangement. The data elements are not arranged in sequential structure. TREES: Trees are multilevel data structures with a hierarchical relationship among its elements known as nodes. The bottommost nodes in the herierchy are called leaf node while the topmost node is called root node. Each node contains pointers to point adjacent nodes. Graphs: Graphs can be defined as the pictorial representation of the set of elements (represented by vertices) connected by the links known as edges. A graph is different from tree in the sense that a graph can have cycle while the tree can not have the one.
  • 6. OPERATIONS ON DATA STRUCTURE: 1) TRAVERSING: Every data structure contains the set of data elements. Traversing the data structure means visiting each element of the data structure in order to perform some specific operation like searching or sorting. Example: If we need to calculate the average of the marks obtained by a student in 6 different subject, we need to traverse the complete array of marks and calculate the total sum, then we will devide that sum by the number of subjects i.e. 6, in order to find the average. 2) INSERTION: Insertion can be defined as the process of adding the elements to the data structure at any location. If the size of data structure is n then we can only insert n-1 data elements into it. 3) DELETION: The process of removing an element from the data structure is called Deletion. We can delete an element from the data structure at any random location. If we try to delete an element from an empty data structure then underflow occurs. 4) SEARCHING: The process of finding the location of an element within the data structure is called Searching. There are two algorithms to perform searching, Linear Search and Binary Search. We will discuss each one of them later in this tutorial. 5) SORTING: The process of arranging the data structure in a specific order is known as Sorting. There are many algorithms that can be used to perform sorting, for example, insertion sort, selection sort, bubble sort, etc. 6) MERGING: When two lists List A and List B of size M and N respectively, of similar type of elements, clubbed or joined to produce the third list, List C of size (M+N), then this process is called merging
  • 7. CONCLUSIONS DATA STRUCTURE IS USEFULL IN DAY TO DAY LIFE AND ARE USING THEM MORE FREQUENTLY THAT IS WHY IT IS SO HOT SUBJECT IN INFORMATION TECHNOLOGY INDUSTRY.
  • 8. REFERENCE  DATA STRUCTURES BY G A VIJAYALAKSHMI PAI