SlideShare a Scribd company logo
Data Structures-Introduction
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
1
Data and Information
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
2
• Data –Set of values
• Example:28/6/2015,jeeva,6
• Information –processed Data
• Example
• name-jeeva
• Dob-28/6/2015
• Age-5
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
3
Difference between data and Information
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
4
Definition
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
5
• Data Structure is a way of storing and organizing data in a
computer so that it can be used efficiently.
• Data structure is representation of the logical relationship
existing between individual elements of data.
Categories of Data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
6
Primitive data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
7
• Primitive data structures are the fundamental data types
which are supported by a programming language.
• Integer, Floating-point number, Character constants,
string constants, pointers etc, fall in this category.
Non-Primitive Data Structures
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
8
• Non prinmitive data structures are those data structures which are created
using primitive data structures.
• The non-primitive data structures emphasize on structuring of a group
of homogeneous (same type) or heterogeneous (different type) data
items.
• Lists, Stack, Queue, Tree, Graph are example of non-primitive data
structures.
• The design of an efficient data structure must take operations to be
performed on the data structure
Non Primitive Data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
9
Linear Data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
10
• If the elements of a data structure are stored in a linear or sequential
order,then it’sa linear data structure
• Example-array,stack,queue
Array
 An array is defined as a set of finite number of homogeneous elements or same data items.
 It means an array can contain one type of data only, either all integer, all float-point
number or all character.
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
11
Linked List
Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020
12
•
Stack
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
13
• LIFO(Last In First Out)
• Stack is an ordered collection of homogeneous data elements where the
insertion and deletion operations take place at one end only…
Queue
• FIFO(First In First Out)
• Queue is open at both its ends. One end is alwaysused to insert data and
the other is used to remove data
Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020
14
Non –Linear Data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
15
• If the elements of a data structure are not stored in a sequential order then
it’sa non linear data structure.all the elements distributed over a plane.
• Example-Tree,graph
Graph
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
16
• Agraph is a group of vertices and edges where an edge connects a pair of
vertices.
• Vertices on the graph are shown as point or circles and edges are drawn
as arcs or line segment.
• Definition: A graph G(V,E) is a set of vertices V and a set of edges E.
Tree
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
17
• Atree is a nonlinear hierarchical data structure that consists of nodes
connected by edges.
• There is a specially designated node called root
• The first node of the tree is called root node.
• If this root node is connected by another node, the root is then parent node,
and the connected node is a child.
Tree
Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020
18
Categories of Data Structure
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
19
Thank you
12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda
20

More Related Content

What's hot

Semantic Information Management using PoolParty 4
Semantic Information Management using PoolParty 4Semantic Information Management using PoolParty 4
Semantic Information Management using PoolParty 4
Martin Kaltenböck
 
Introduction to Data Warehouse
Introduction to Data WarehouseIntroduction to Data Warehouse
Introduction to Data Warehouse
AnwarrChaudary
 
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
StatsCommunications
 
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
StatsCommunications
 
Manual de Access
Manual de AccessManual de Access
Manual de Access
Maria Gomez Gonzalez
 
agINFRA – a multilingual infrastructure for information on agricultural innov...
agINFRA – a multilingual infrastructure for information on agricultural innov...agINFRA – a multilingual infrastructure for information on agricultural innov...
agINFRA – a multilingual infrastructure for information on agricultural innov...
AIMS (Agricultural Information Management Standards)
 
data warehousing and data mining
data warehousing and data mining data warehousing and data mining
data warehousing and data mining
E2MATRIX
 
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
BigData_Europe
 
Hardscape Installation
Hardscape InstallationHardscape Installation
Hardscape Installation
Stone Makers
 
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
StatsCommunications
 
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
LinDa_FP7
 

What's hot (11)

Semantic Information Management using PoolParty 4
Semantic Information Management using PoolParty 4Semantic Information Management using PoolParty 4
Semantic Information Management using PoolParty 4
 
Introduction to Data Warehouse
Introduction to Data WarehouseIntroduction to Data Warehouse
Introduction to Data Warehouse
 
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
2016 SDMX Experts meeting, SDMX for statistical data and metadata modelling, ...
 
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
2016 SDMX Experts meeting, SDMX Starter Kit for National Statistical Agencies...
 
Manual de Access
Manual de AccessManual de Access
Manual de Access
 
agINFRA – a multilingual infrastructure for information on agricultural innov...
agINFRA – a multilingual infrastructure for information on agricultural innov...agINFRA – a multilingual infrastructure for information on agricultural innov...
agINFRA – a multilingual infrastructure for information on agricultural innov...
 
data warehousing and data mining
data warehousing and data mining data warehousing and data mining
data warehousing and data mining
 
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
Big Data Europe: SC6 Workshop 3: The European Research Data Landscape: Opport...
 
Hardscape Installation
Hardscape InstallationHardscape Installation
Hardscape Installation
 
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
2016 SDMX Experts meeting, SDMX Design & Modelling, Daniel Suranyi
 
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
20141030 LinDA Workshop echallenges2014 - State of the art in open data infra...
 

Similar to Data structure Categories

Data structure operations
Data structure operationsData structure operations
Data structure operations
dincyjain
 
UNIT_1-BD.pptx
UNIT_1-BD.pptxUNIT_1-BD.pptx
UNIT_1-BD.pptx
Ponnusamy S Pichaimuthu
 
Icampam jive
Icampam jiveIcampam jive
Icampam jive
Junrui Ray Di
 
Metadata and Linked Data. Where is it all going?
Metadata and Linked Data. Where is it all going? Metadata and Linked Data. Where is it all going?
Metadata and Linked Data. Where is it all going?
njcar
 
Dsa module 1 ppt
Dsa module 1 pptDsa module 1 ppt
Dsa module 1 ppt
Sree Kanth
 
Institutional Repository Single Sources of Truth
Institutional Repository Single Sources of TruthInstitutional Repository Single Sources of Truth
Institutional Repository Single Sources of Truth
Lighton Phiri
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
Dr. Sunil Kr. Pandey
 

Similar to Data structure Categories (7)

Data structure operations
Data structure operationsData structure operations
Data structure operations
 
UNIT_1-BD.pptx
UNIT_1-BD.pptxUNIT_1-BD.pptx
UNIT_1-BD.pptx
 
Icampam jive
Icampam jiveIcampam jive
Icampam jive
 
Metadata and Linked Data. Where is it all going?
Metadata and Linked Data. Where is it all going? Metadata and Linked Data. Where is it all going?
Metadata and Linked Data. Where is it all going?
 
Dsa module 1 ppt
Dsa module 1 pptDsa module 1 ppt
Dsa module 1 ppt
 
Institutional Repository Single Sources of Truth
Institutional Repository Single Sources of TruthInstitutional Repository Single Sources of Truth
Institutional Repository Single Sources of Truth
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
 

Recently uploaded

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 

Recently uploaded (20)

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 

Data structure Categories

  • 1. Data Structures-Introduction 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 1
  • 2. Data and Information 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 2 • Data –Set of values • Example:28/6/2015,jeeva,6 • Information –processed Data • Example • name-jeeva • Dob-28/6/2015 • Age-5
  • 3. 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 3 Difference between data and Information
  • 4. 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 4
  • 5. Definition 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 5 • Data Structure is a way of storing and organizing data in a computer so that it can be used efficiently. • Data structure is representation of the logical relationship existing between individual elements of data.
  • 6. Categories of Data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 6
  • 7. Primitive data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 7 • Primitive data structures are the fundamental data types which are supported by a programming language. • Integer, Floating-point number, Character constants, string constants, pointers etc, fall in this category.
  • 8. Non-Primitive Data Structures 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 8 • Non prinmitive data structures are those data structures which are created using primitive data structures. • The non-primitive data structures emphasize on structuring of a group of homogeneous (same type) or heterogeneous (different type) data items. • Lists, Stack, Queue, Tree, Graph are example of non-primitive data structures. • The design of an efficient data structure must take operations to be performed on the data structure
  • 9. Non Primitive Data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 9
  • 10. Linear Data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 10 • If the elements of a data structure are stored in a linear or sequential order,then it’sa linear data structure • Example-array,stack,queue
  • 11. Array  An array is defined as a set of finite number of homogeneous elements or same data items.  It means an array can contain one type of data only, either all integer, all float-point number or all character. 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 11
  • 12. Linked List Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020 12 •
  • 13. Stack 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 13 • LIFO(Last In First Out) • Stack is an ordered collection of homogeneous data elements where the insertion and deletion operations take place at one end only…
  • 14. Queue • FIFO(First In First Out) • Queue is open at both its ends. One end is alwaysused to insert data and the other is used to remove data Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020 14
  • 15. Non –Linear Data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 15 • If the elements of a data structure are not stored in a sequential order then it’sa non linear data structure.all the elements distributed over a plane. • Example-Tree,graph
  • 16. Graph 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 16 • Agraph is a group of vertices and edges where an edge connects a pair of vertices. • Vertices on the graph are shown as point or circles and edges are drawn as arcs or line segment. • Definition: A graph G(V,E) is a set of vertices V and a set of edges E.
  • 17. Tree 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 17 • Atree is a nonlinear hierarchical data structure that consists of nodes connected by edges. • There is a specially designated node called root • The first node of the tree is called root node. • If this root node is connected by another node, the root is then parent node, and the connected node is a child.
  • 18. Tree Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 12/2/2020 18
  • 19. Categories of Data Structure 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 19
  • 20. Thank you 12/2/2020Dincy R Arikkat,,Christ college Autonomous Irinjalakkuda 20