SlideShare a Scribd company logo
1 of 21
Introduction to Data
Structure
Mrs.V.G.Jyothi Mani
Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Women
PROGRAM: is an implementation of the algorithm.
Algorithm: An algorithm is a well-described procedure for solving
a problem, given in pseudo code format and is independent of
programming language.
Ex.
A good program should run correctly and efficiently and should
be easy to understand and debug.
The efficiency of the program depends on what data structures
and algorithms are selected to solve the problem.
Mrs.V.G.Jyothi Mani
Basic
Terminologies
Mrs.V.G.Jyothi Mani
Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Women
● Data Structure
– Data: are simply a value are set of values
of different type which is called data types
like string, integer, char etc.
– Structure: Way of organizing information, so
that it is easier to use
– In simple words we can define data structures as
● Its a way organizing data in such a
way so that data can be easier to use.
Basic
Terminologies
Mrs.V.G.Jyothi Mani
Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Womeni
●
Data Structure ..
– A data structure is a particular way of
organizing data in a computer so that it
can be used efficiently.
– In computer science, a data structure is
a data organization, management, and
storage format that enables efficient access
and modification.
– A scheme for organizing related pieces of
information.
Why Data Structure
Jyothi Mani
●
●
●
Human requirement with computer are going to
complex day by day. To solve the complex
requirements in efficient way we need this
study.
Provide fastest solution of human requirements.
Provide efficient solution of complex problem.
– Space
– Time
Study in Data
Structure
● Logical or mathematical description of
the
●
structure.
Implementation of structure on a
computer
●
using different computer languages ( C, C++,
JAVA, pl-languages etc.)
Qunatitative analysis of the structure, which
includes determining the amount of memory
needed to store the structure and the time
required to process the structure.
Jyothi Mani
Classification of Data
Structure
Data Structure
Primitive
Simple Data Structure
Non - Primitive
Compound Data Structure
Non-Linear Data Structure
Array Linked List Stack Queue Tree Graph Files
Integer Float Character Pointer
Linear Data Structure
Jyothi Mani
Classification of Data Structure
...
Jyothi Mani
● Simple Data Structure: Simple data structure can be
constructed with the help of primitive data structure. A
primitive data structure used to represent the standard data
types of any one of the computer languages (integer,
Character, float etc.).
● Compound Data Structure: Compound data structure
can be constructed with the help of any one of the primitive data
structure and it is having a specific functionality. It can be
designed by user. It can be classified as Linear and Non-Linear
Data Structure.
.
Classification of Data Structure
...
Jyothi Mani
● Linear Data Structures: A linear data structure
traverses the data elements sequentially, in which only one
data element can directly be reached. Ex: Arrays, Linked Lists
● Non-Linear Data Structures: Every data item is
attached to several other data items in a way that is specific
for reflecting relationships. The data items are not arranged in
a sequential structure. Ex: Trees, Graphs
Operation on Linear/Non-Linear
Data Structure
Jyothi Mani
●
●
●
●
●
Add an element
Delete an element
Traverse / Display
Sort the list of elements
Search for a data
element
Types of Data
Structure
Jyothi Mani
● Array: is commonly used in computer
programming to mean a contiguous block of
memory locations, where each memory location
stores one fixed-length data item. e.g. Array of
Integers int a[10], Array of Character char b[10]
Array of Integers
0 1 2 3 4 5 6 7 8 9
5 6 4 3 7 8 9 2 1 2
Array of Character
0 1 2 3 4 5 6 7 8 9
5 6 4 3 7 8 9 2 1 2
Types of Data Structure
...
Stack: A stack is a data
structure in which items can
be inserted only from one
end and get items back from
the same end. There , the last
item inserted into stack, is
the the first item to be taken
out from the stack. In short
its also called Last in First
out [LIFO]. Jyothi Mani
Types of Data Structure
...
ended data
structure which
itemscan
Queue: A queue
is two
in
be
inserted from one end and
taken out from the other
end. Therefore , the first
item inserted into queue is
the first item to be taken
out from the queue. This
property is called First in
First out [FIFO]. Jyothi Mani
Types of Data Structure
...
Linked List: Could alternately used to store items. In
linked list space to store items is created as is needed
and destroyed when space no longer required to store
items. Hence linked list is a dynamic data structure
space acquire only when need.
Jyothi Mani
Types of Data Structure
...
Tree: is a non-linear data
structure which is
mainly used to represent
data containing a
hierarchical relationship
between elements.
Binary Tree: A binary
tree is a tree such that
every node has at most 2
child and each node is
labeled as either left of
right child.
Jyothi Mani
Types of Data Structure
...
Jyothi Mani
Types of Data Structure
...
Jyothi Mani
Graph: It is a set of items connected by edges.
Each item is called a vertex or node. Trees are
just like a special kinds of graphs. Graphs are
usually represented by G = (V, E), where V is
the set vertices and E is the set of Edges.
Types of Data Structure
...
Undirected Graph: A graph
whose edges are
unordered pair of vertices.
That is each edge connects
two vertices. In an
undirected graph, direction
is not important, if the path
is available, it can be
traversed in any direction.
Jyothi Mani
Types of Data Structure
...
Directed Graph: In directed graph a directional
edge connect two node/vertex. If there is one edge
from one vertex to other then only this path can be
followed.
Jyothi Mani
Types of Data Structure
...
Weighted Graph: A graph having a weight, or
number associated with each edge
Jyothi Mani
Selecting a Data Structure
Jyothi Mani
●
●
●
Analyze the problem to determine the resource
constraints a solution must meet.
Determine the basic operations that must be
supported. Quantify the resource
constraints for each operation.
Select the data structure that best meets these
requirements.

More Related Content

Similar to Data structure

Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data StructuresAmar Jukuntla
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfMaryJacob24
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresresamplopsurat
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2RajSingh734307
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxmexiuro901
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation Anil Kumar Prajapati
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)ShrushtiGole
 
Summer Training Project On Data Structure & Algorithms
Summer Training Project On Data Structure & AlgorithmsSummer Training Project On Data Structure & Algorithms
Summer Training Project On Data Structure & AlgorithmsKAUSHAL KUMAR JHA
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structureadeel hamid
 
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
 
Introduction to data structures
Introduction to data structuresIntroduction to data structures
Introduction to data structuresDhanashriAmbre
 
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxchapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxAmrutaNavale2
 

Similar to Data structure (20)

Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdf
 
Cs8391 notes rejinpaul
Cs8391 notes rejinpaulCs8391 notes rejinpaul
Cs8391 notes rejinpaul
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptx
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)
 
Summer Training Project On Data Structure & Algorithms
Summer Training Project On Data Structure & AlgorithmsSummer Training Project On Data Structure & Algorithms
Summer Training Project On Data Structure & Algorithms
 
CSE 443 (1).pptx
CSE 443 (1).pptxCSE 443 (1).pptx
CSE 443 (1).pptx
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
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
 
Data structure
Data structureData structure
Data structure
 
Introduction to data structures
Introduction to data structuresIntroduction to data structures
Introduction to data structures
 
Types of datastructures
Types of datastructuresTypes of datastructures
Types of datastructures
 
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxchapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
“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
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
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
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
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
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
“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...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
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
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
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
 
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🔝
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 

Data structure

  • 1. Introduction to Data Structure Mrs.V.G.Jyothi Mani Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Women
  • 2. PROGRAM: is an implementation of the algorithm. Algorithm: An algorithm is a well-described procedure for solving a problem, given in pseudo code format and is independent of programming language. Ex. A good program should run correctly and efficiently and should be easy to understand and debug. The efficiency of the program depends on what data structures and algorithms are selected to solve the problem. Mrs.V.G.Jyothi Mani
  • 3. Basic Terminologies Mrs.V.G.Jyothi Mani Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Women ● Data Structure – Data: are simply a value are set of values of different type which is called data types like string, integer, char etc. – Structure: Way of organizing information, so that it is easier to use – In simple words we can define data structures as ● Its a way organizing data in such a way so that data can be easier to use.
  • 4. Basic Terminologies Mrs.V.G.Jyothi Mani Assistant Professor in Computer Applications,V.V.Vanniaperumal College for Womeni ● Data Structure .. – A data structure is a particular way of organizing data in a computer so that it can be used efficiently. – In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. – A scheme for organizing related pieces of information.
  • 5. Why Data Structure Jyothi Mani ● ● ● Human requirement with computer are going to complex day by day. To solve the complex requirements in efficient way we need this study. Provide fastest solution of human requirements. Provide efficient solution of complex problem. – Space – Time
  • 6. Study in Data Structure ● Logical or mathematical description of the ● structure. Implementation of structure on a computer ● using different computer languages ( C, C++, JAVA, pl-languages etc.) Qunatitative analysis of the structure, which includes determining the amount of memory needed to store the structure and the time required to process the structure. Jyothi Mani
  • 7. Classification of Data Structure Data Structure Primitive Simple Data Structure Non - Primitive Compound Data Structure Non-Linear Data Structure Array Linked List Stack Queue Tree Graph Files Integer Float Character Pointer Linear Data Structure Jyothi Mani
  • 8. Classification of Data Structure ... Jyothi Mani ● Simple Data Structure: Simple data structure can be constructed with the help of primitive data structure. A primitive data structure used to represent the standard data types of any one of the computer languages (integer, Character, float etc.). ● Compound Data Structure: Compound data structure can be constructed with the help of any one of the primitive data structure and it is having a specific functionality. It can be designed by user. It can be classified as Linear and Non-Linear Data Structure. .
  • 9. Classification of Data Structure ... Jyothi Mani ● Linear Data Structures: A linear data structure traverses the data elements sequentially, in which only one data element can directly be reached. Ex: Arrays, Linked Lists ● Non-Linear Data Structures: Every data item is attached to several other data items in a way that is specific for reflecting relationships. The data items are not arranged in a sequential structure. Ex: Trees, Graphs
  • 10. Operation on Linear/Non-Linear Data Structure Jyothi Mani ● ● ● ● ● Add an element Delete an element Traverse / Display Sort the list of elements Search for a data element
  • 11. Types of Data Structure Jyothi Mani ● Array: is commonly used in computer programming to mean a contiguous block of memory locations, where each memory location stores one fixed-length data item. e.g. Array of Integers int a[10], Array of Character char b[10] Array of Integers 0 1 2 3 4 5 6 7 8 9 5 6 4 3 7 8 9 2 1 2 Array of Character 0 1 2 3 4 5 6 7 8 9 5 6 4 3 7 8 9 2 1 2
  • 12. Types of Data Structure ... Stack: A stack is a data structure in which items can be inserted only from one end and get items back from the same end. There , the last item inserted into stack, is the the first item to be taken out from the stack. In short its also called Last in First out [LIFO]. Jyothi Mani
  • 13. Types of Data Structure ... ended data structure which itemscan Queue: A queue is two in be inserted from one end and taken out from the other end. Therefore , the first item inserted into queue is the first item to be taken out from the queue. This property is called First in First out [FIFO]. Jyothi Mani
  • 14. Types of Data Structure ... Linked List: Could alternately used to store items. In linked list space to store items is created as is needed and destroyed when space no longer required to store items. Hence linked list is a dynamic data structure space acquire only when need. Jyothi Mani
  • 15. Types of Data Structure ... Tree: is a non-linear data structure which is mainly used to represent data containing a hierarchical relationship between elements. Binary Tree: A binary tree is a tree such that every node has at most 2 child and each node is labeled as either left of right child. Jyothi Mani
  • 16. Types of Data Structure ... Jyothi Mani
  • 17. Types of Data Structure ... Jyothi Mani Graph: It is a set of items connected by edges. Each item is called a vertex or node. Trees are just like a special kinds of graphs. Graphs are usually represented by G = (V, E), where V is the set vertices and E is the set of Edges.
  • 18. Types of Data Structure ... Undirected Graph: A graph whose edges are unordered pair of vertices. That is each edge connects two vertices. In an undirected graph, direction is not important, if the path is available, it can be traversed in any direction. Jyothi Mani
  • 19. Types of Data Structure ... Directed Graph: In directed graph a directional edge connect two node/vertex. If there is one edge from one vertex to other then only this path can be followed. Jyothi Mani
  • 20. Types of Data Structure ... Weighted Graph: A graph having a weight, or number associated with each edge Jyothi Mani
  • 21. Selecting a Data Structure Jyothi Mani ● ● ● Analyze the problem to determine the resource constraints a solution must meet. Determine the basic operations that must be supported. Quantify the resource constraints for each operation. Select the data structure that best meets these requirements.