SlideShare a Scribd company logo
1 of 28
Introduction
Amar Jukuntla, Assistant Professor, CSE
VFSTR University
Index
• Definition
• Introduction
• Classification of Data Structures
• Data Type
• Linear Data Structure
• Non-Linear Data Structure
• Storage Structures
• ADT
Background . . .
• Data Structure is the most fundamental and building
blocks in computer science and good knowledge of
data structure is a must, to design and develop
efficient software systems.
Continue…
• Different kinds of structures are needed to organize different
kinds of data, now computers work with all kinds of data,
computers work with text, images, videos, audios, rational data,
geospatial data and pretty much any kind of data that we have on
this planet, how we store, organize and group data in a
computers matters, because computer deal with really really
large data even with the computational power of machines if we
do not use right kind of data structures, the right kind of logical
structures then our software systems will not be efficient.
Continue…
•A Data Structure is a way to store and
organize data in a computer so that, it
can be used efficiently.
•Data Structure
• Mathematical /Logical Models or Abstract Data Type
• Implementation
Definition
•Data Structures is representation of the logical
relationship existing between individual
elements of data.
•In other words, a data structure is a way of
organizing all data items that considers a not
only the elements stored but also their
relationship to each other.
Introduction
•Data Structure affects the design of both
structural and functional aspects of a program.
Program=algorithm + Data Structure
•Algorithm is a step by step procedure to solve a
particular function.
Continue…
• That means, algorithm is a set of instruction written
to carry out certain tasks & the data structure is the
way of organizing the data with their logical
relationship retained.
• To develop a program of an algorithm, we should
select an appropriate data structure for that algorithm.
• Therefore algorithm and its associated data structures
from a program.
Classification of Data Structure
•Data structure are normally divided into two
broad categories:
•Primitive Data Structure
•Non-Primitive Data Structure
Data structure
Primitive DS
Character PointerInteger Float
Non-Primitive DS
Linear List Non-Linear List
Array
Link List Stack
Queue Graph Trees
Data Type
•A particular kind of data item, as defined by the
values it can take, the programming language
used, or the operations that can be performed.
Primitive Data Structure
• Primitive Data Structures are basic structures and
directly operated upon by machine instructions.
• Primitive data structures have different representations
on different computers.
• Integers, floats, character and pointers are examples of
primitive data structures.
Continue…
• Theses data types are available in most programming
languages as built in type.
• Integer: It is a data type which allows all values without fraction
part.
• Float: It is a data type which use for sorting fractional numbers.
• Character: Used for character values.
• Pointer: A variable that holds memory address of another
variable are called pointer.
Non-Primitive Data Structure
• These are more sophisticated data structures.
• These are derived from primitive data structures.
• The non-primitive data structures emphasize on
structuring of a group of homogeneous or
heterogeneous data items.
• Examples of Non-primitive data type are Array, List
and Files etc.
Continue…
• A Non-primitive data structure is further divided into
Linear and Non Linear Data structure.
• Array: An array is a fixed-size sequenced collection of
elements of the same data type.
• List: An ordered set containing variable number of
elements is called as Lists.
• File: A file is a collection of logically related information.
It can be viewed as a large list of records consisting of
various fields.
Linear Data Structure
• A data structure is said to be Linear, if its elements are connected
in linear fashion by means of logically or in sequence memory
locations.
• There are two ways to represent a linear data structure in
memory,
• Static memory allocation
• Dynamic memory allocation
• The possible operations on linear data structure are : Traversal,
Insertion, Deletion, Searching, Sorting and Merging.
• Examples; Stack and Queue
Non-Linear Data Structure
• Non-linear data structures are those data structure in
which data items are not arranged in a sequence.
• Example: Tree and Graph
• Tree: A tree is a data structure made up of nodes or
vertices and edges without having any cycle.
• Graph: A set of items connected by edges. Each
item is called a vertex or node.
Continue…
Continue…
Linear Data Structure
• Every item is related to its
previous and next time.
• Data is arranged in Linear
sequence.
• Data items can be traversed in
single run.
• Example: Array, Stack, Linked
list, Queue.
• Implementation is easy.
Non-Linear Data Structure
• Every item is attached with many
other items.
• Data is not arranged in sequence.
• Data cannot be traversed in a
single run.
• Examples; Tree, Graph.
• Implementation is difficult.
Storage Structures
•Categories of storage Structures
•Sequential Storage Data Structures
•Linked Storage Data Structures
•Sequential Access Data Structures
•Random Access Data Structures
Continue…
•Sequential Storage Data Structures
• Elements are stored sequentially in the next memory locations.
• Example: Arrays
Continue…
•Linked Storage Data Structures
• Elements may not be stored in consecutive
memory locations. There will be a link between
consecutive elements in the data structure though.
• Example: Linked List When it comes to accessing a data
structure
Continue…
•Sequential Access Data Structures
• In order to access a particular location, if we have to pass all
locations sequentially to reach a location, we call
it sequential access.
• Example: Linked list, stacks, queues.
Continue…
•Random Access Data Structures
• Can accessed from any location at any point of
time in this type of data structure.
• Example: Arrays
ADT
• An abstract data type (ADT) is a mathematical model for a
certain class of data structures that have similar behavior.
• Abstract Data Types (ADT's) are a model used to understand the
design of a data structure.
• 'Abstract ' implies that we give an implementation-independent view
of the data structure.
• ADTs specify the type of data stored and the operations that support
the data.
• Viewing a data structure as an ADT allows a programmer to focus on
an idealized model of the data and its operations.
Array
• An array is an aggregate data structure that is designed to store a
group of objects of the same or different types.
• Arrays can hold primitives as well as references. The array is the
most efficient data structure for storing and accessing a sequence of
objects.
• An array is a data structure consisting of data items of the same type
data items of the same type.
• Arrays are static data structures that stay the same size throughout the
program.
Continue…
• An Array is:
• A collection of contiguous memory locations.
• Same name
• Same type
• Locations (elements) in the array are Locations (elements) in
the array are referenced by
• array name
• position within the array
• index notation: a[0] refers to the first element of array a, a[1] refers
to the second element of array a, etc.
Continue…

More Related Content

What's hot

Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisationMuzamil Hussain
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structureadeel hamid
 
introduction to Data Structure and classification
 introduction to Data Structure and classification introduction to Data Structure and classification
introduction to Data Structure and classificationchauhankapil
 
Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and AlogarithimsVictor Palmar
 
Unit 1 Basic concepts to DS
Unit 1 Basic concepts to DSUnit 1 Basic concepts to DS
Unit 1 Basic concepts to DSLavanyaJ28
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structureZaid Shabbir
 
Basics of data structure
Basics of data structureBasics of data structure
Basics of data structureRajendran
 
Introduction To Data Structures.
Introduction To Data Structures.Introduction To Data Structures.
Introduction To Data Structures.Education Front
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURERohit Rai
 
Data structures Lecture no.3
Data structures Lecture no.3Data structures Lecture no.3
Data structures Lecture no.3AzharIqbal710687
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1AzharIqbal710687
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2AzharIqbal710687
 
1.introduction to data_structures
1.introduction to data_structures1.introduction to data_structures
1.introduction to data_structurespcnmtutorials
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data StructureMandavi Classes
 

What's hot (20)

Data structures
Data structuresData structures
Data structures
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
introduction to Data Structure and classification
 introduction to Data Structure and classification introduction to Data Structure and classification
introduction to Data Structure and classification
 
Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Unit 1 Basic concepts to DS
Unit 1 Basic concepts to DSUnit 1 Basic concepts to DS
Unit 1 Basic concepts to DS
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Basics of data structure
Basics of data structureBasics of data structure
Basics of data structure
 
Introduction To Data Structures.
Introduction To Data Structures.Introduction To Data Structures.
Introduction To Data Structures.
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
 
Data structures Lecture no.3
Data structures Lecture no.3Data structures Lecture no.3
Data structures Lecture no.3
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2
 
Types of datastructures
Types of datastructuresTypes of datastructures
Types of datastructures
 
1.introduction to data_structures
1.introduction to data_structures1.introduction to data_structures
1.introduction to data_structures
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data Structure
 
Data structure
Data  structureData  structure
Data structure
 

Similar to Introduction to Data Structures

Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionAbirami A
 
CHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxCHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxOnkarModhave
 
Data Structure Introduction chapter 1
Data Structure Introduction chapter 1Data Structure Introduction chapter 1
Data Structure Introduction chapter 1vasantiDutta1
 
data structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxdata structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxVicky Singh
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxajajkhan16
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxRuchiNagar3
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxDCABCA
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxssuser031f35
 
Data structure chapter 1.pptx
Data structure chapter 1.pptxData structure chapter 1.pptx
Data structure chapter 1.pptxKami503928
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxArifKamal36
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresresamplopsurat
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSANurjahan Nipa
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptxRahikAhmed
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptxpoonamsngr
 
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHIBCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHISowmya Jyothi
 
PPT Format prashant .pptx
PPT Format prashant .pptxPPT Format prashant .pptx
PPT Format prashant .pptxSafdarAli435862
 
DOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxDOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxssusercab735
 

Similar to Introduction to Data Structures (20)

Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure Introduction
 
CHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxCHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptx
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
Data Structure Introduction chapter 1
Data Structure Introduction chapter 1Data Structure Introduction chapter 1
Data Structure Introduction chapter 1
 
Data structures slideshare
Data structures slideshareData structures slideshare
Data structures slideshare
 
data structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxdata structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptx
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptx
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Data structure chapter 1.pptx
Data structure chapter 1.pptxData structure chapter 1.pptx
Data structure chapter 1.pptx
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
 
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHIBCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
 
PPT Format prashant .pptx
PPT Format prashant .pptxPPT Format prashant .pptx
PPT Format prashant .pptx
 
DOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxDOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptx
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 

More from Amar Jukuntla (19)

Singly linked list
Singly linked listSingly linked list
Singly linked list
 
Types of files
Types of filesTypes of files
Types of files
 
Hashing
HashingHashing
Hashing
 
Planning
Planning Planning
Planning
 
Unit 2
Unit 2Unit 2
Unit 2
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Intelligent Agents
Intelligent Agents Intelligent Agents
Intelligent Agents
 
Introduction
IntroductionIntroduction
Introduction
 
DFS
DFSDFS
DFS
 
Sorting
SortingSorting
Sorting
 
Sorting
SortingSorting
Sorting
 
Nature of open source
Nature of open sourceNature of open source
Nature of open source
 
Linux Directory System: Introduction
Linux Directory System: IntroductionLinux Directory System: Introduction
Linux Directory System: Introduction
 
Learning
LearningLearning
Learning
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolution
 
First Order Logic
First Order LogicFirst Order Logic
First Order Logic
 
A*
A*A*
A*
 
Agents1
Agents1Agents1
Agents1
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

Introduction to Data Structures

  • 1. Introduction Amar Jukuntla, Assistant Professor, CSE VFSTR University
  • 2. Index • Definition • Introduction • Classification of Data Structures • Data Type • Linear Data Structure • Non-Linear Data Structure • Storage Structures • ADT
  • 3. Background . . . • Data Structure is the most fundamental and building blocks in computer science and good knowledge of data structure is a must, to design and develop efficient software systems.
  • 4. Continue… • Different kinds of structures are needed to organize different kinds of data, now computers work with all kinds of data, computers work with text, images, videos, audios, rational data, geospatial data and pretty much any kind of data that we have on this planet, how we store, organize and group data in a computers matters, because computer deal with really really large data even with the computational power of machines if we do not use right kind of data structures, the right kind of logical structures then our software systems will not be efficient.
  • 5. Continue… •A Data Structure is a way to store and organize data in a computer so that, it can be used efficiently. •Data Structure • Mathematical /Logical Models or Abstract Data Type • Implementation
  • 6. Definition •Data Structures is representation of the logical relationship existing between individual elements of data. •In other words, a data structure is a way of organizing all data items that considers a not only the elements stored but also their relationship to each other.
  • 7. Introduction •Data Structure affects the design of both structural and functional aspects of a program. Program=algorithm + Data Structure •Algorithm is a step by step procedure to solve a particular function.
  • 8. Continue… • That means, algorithm is a set of instruction written to carry out certain tasks & the data structure is the way of organizing the data with their logical relationship retained. • To develop a program of an algorithm, we should select an appropriate data structure for that algorithm. • Therefore algorithm and its associated data structures from a program.
  • 9. Classification of Data Structure •Data structure are normally divided into two broad categories: •Primitive Data Structure •Non-Primitive Data Structure
  • 10. Data structure Primitive DS Character PointerInteger Float Non-Primitive DS Linear List Non-Linear List Array Link List Stack Queue Graph Trees
  • 11. Data Type •A particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed.
  • 12. Primitive Data Structure • Primitive Data Structures are basic structures and directly operated upon by machine instructions. • Primitive data structures have different representations on different computers. • Integers, floats, character and pointers are examples of primitive data structures.
  • 13. Continue… • Theses data types are available in most programming languages as built in type. • Integer: It is a data type which allows all values without fraction part. • Float: It is a data type which use for sorting fractional numbers. • Character: Used for character values. • Pointer: A variable that holds memory address of another variable are called pointer.
  • 14. Non-Primitive Data Structure • These are more sophisticated data structures. • These are derived from primitive data structures. • The non-primitive data structures emphasize on structuring of a group of homogeneous or heterogeneous data items. • Examples of Non-primitive data type are Array, List and Files etc.
  • 15. Continue… • A Non-primitive data structure is further divided into Linear and Non Linear Data structure. • Array: An array is a fixed-size sequenced collection of elements of the same data type. • List: An ordered set containing variable number of elements is called as Lists. • File: A file is a collection of logically related information. It can be viewed as a large list of records consisting of various fields.
  • 16. Linear Data Structure • A data structure is said to be Linear, if its elements are connected in linear fashion by means of logically or in sequence memory locations. • There are two ways to represent a linear data structure in memory, • Static memory allocation • Dynamic memory allocation • The possible operations on linear data structure are : Traversal, Insertion, Deletion, Searching, Sorting and Merging. • Examples; Stack and Queue
  • 17. Non-Linear Data Structure • Non-linear data structures are those data structure in which data items are not arranged in a sequence. • Example: Tree and Graph • Tree: A tree is a data structure made up of nodes or vertices and edges without having any cycle. • Graph: A set of items connected by edges. Each item is called a vertex or node.
  • 19. Continue… Linear Data Structure • Every item is related to its previous and next time. • Data is arranged in Linear sequence. • Data items can be traversed in single run. • Example: Array, Stack, Linked list, Queue. • Implementation is easy. Non-Linear Data Structure • Every item is attached with many other items. • Data is not arranged in sequence. • Data cannot be traversed in a single run. • Examples; Tree, Graph. • Implementation is difficult.
  • 20. Storage Structures •Categories of storage Structures •Sequential Storage Data Structures •Linked Storage Data Structures •Sequential Access Data Structures •Random Access Data Structures
  • 21. Continue… •Sequential Storage Data Structures • Elements are stored sequentially in the next memory locations. • Example: Arrays
  • 22. Continue… •Linked Storage Data Structures • Elements may not be stored in consecutive memory locations. There will be a link between consecutive elements in the data structure though. • Example: Linked List When it comes to accessing a data structure
  • 23. Continue… •Sequential Access Data Structures • In order to access a particular location, if we have to pass all locations sequentially to reach a location, we call it sequential access. • Example: Linked list, stacks, queues.
  • 24. Continue… •Random Access Data Structures • Can accessed from any location at any point of time in this type of data structure. • Example: Arrays
  • 25. ADT • An abstract data type (ADT) is a mathematical model for a certain class of data structures that have similar behavior. • Abstract Data Types (ADT's) are a model used to understand the design of a data structure. • 'Abstract ' implies that we give an implementation-independent view of the data structure. • ADTs specify the type of data stored and the operations that support the data. • Viewing a data structure as an ADT allows a programmer to focus on an idealized model of the data and its operations.
  • 26. Array • An array is an aggregate data structure that is designed to store a group of objects of the same or different types. • Arrays can hold primitives as well as references. The array is the most efficient data structure for storing and accessing a sequence of objects. • An array is a data structure consisting of data items of the same type data items of the same type. • Arrays are static data structures that stay the same size throughout the program.
  • 27. Continue… • An Array is: • A collection of contiguous memory locations. • Same name • Same type • Locations (elements) in the array are Locations (elements) in the array are referenced by • array name • position within the array • index notation: a[0] refers to the first element of array a, a[1] refers to the second element of array a, etc.