SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
Introduction to Data Structure
zaid shabbir
Basic Terminologies
● 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.
zaid shabbir
Basic Terminologies
● Data Structure ..
– A data structure is a particular way of
organizing data in a computer so that it
can be used effi ciently.
– A scheme for organizing related pieces of
information.
zaid shabbir
Why Data Structure
● 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
zaid shabbir
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.
zaid shabbir
Classification of Data Structure
Data Structure
Simple Data Structure
Compound Data Structure
Linear Data Structure Non-Linear Data Structure
Array Linked List Stack Queue Tree Graph Files
Integer Float Character Pointer
zaid shabbir
Classification of Data Structure ...
● Simple Data Structure: Simple data structure can beSimple data structure can be
constructed with the help of primitive data structure. Aconstructed with the help of primitive data structure. A
primitive data structure used to represent the standard dataprimitive data structure used to represent the standard data
types of any one of the computer languages (integer, Character,types of any one of the computer languages (integer, Character,
float etc.).float etc.).
●
Compound Data Structure:Compound Data Structure: Compound data structureCompound data structure
can be constructed with the help of any one of the primitive datacan be constructed with the help of any one of the primitive data
structure and it is having a specific functionality. It can bestructure and it is having a specific functionality. It can be
designed by user. It can be classified as Linear and Non-Lineardesigned by user. It can be classified as Linear and Non-Linear
Data Structure.Data Structure.
.
zaid shabbir
Classification of Data Structure ...
● 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
zaid shabbir
Operation on Linear/Non-Linear
Data Structure
● Add an element
● Delete an element
● Traverse / Display
● Sort the list of elements
● Search for a data element
zaid shabbir
Types of Data Structure
●
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
zaid shabbir
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]. zaid shabbir
Types of Data Structure ...
Queue: A queue is two
ended data structure in
which items can 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]. zaid shabbir
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.
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.
zaid shabbir
Types of Data Structure ...
Types of Data Structure ...
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.
zaid shabbir
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.
zaid shabbir
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.
Types of Data Structure ...
Weighted Graph: A graph having a weight, or number
associated with each edge
zaid shabbir
Selecting a Data Structure
● 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.
zaid shabbir

Contenu connexe

Tendances

Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
Muzamil Hussain
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
Kumar
 

Tendances (20)

Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Unit 1 introduction to data structure
Unit 1   introduction to data structureUnit 1   introduction to data structure
Unit 1 introduction to data structure
 
UNIT III NON LINEAR DATA STRUCTURES – TREES
UNIT III 	NON LINEAR DATA STRUCTURES – TREESUNIT III 	NON LINEAR DATA STRUCTURES – TREES
UNIT III NON LINEAR DATA STRUCTURES – TREES
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First Search
 
What is Link list? explained with animations
What is Link list? explained with animationsWhat is Link list? explained with animations
What is Link list? explained with animations
 
Data structures using c
Data structures using cData structures using c
Data structures using c
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Tree
 
Normal forms
Normal formsNormal forms
Normal forms
 
Trees data structure
Trees data structureTrees data structure
Trees data structure
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Data Structure - Elementary Data Organization
Data Structure - Elementary  Data Organization Data Structure - Elementary  Data Organization
Data Structure - Elementary Data Organization
 
Linked list
Linked listLinked list
Linked list
 
1.1 binary tree
1.1 binary tree1.1 binary tree
1.1 binary tree
 
Array ppt
Array pptArray ppt
Array ppt
 
Circular link list.ppt
Circular link list.pptCircular link list.ppt
Circular link list.ppt
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
Data structures
Data structuresData structures
Data structures
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
 

Similaire à Introduction to data structure

SIX WEEKS SUMMER TRAINING REPORT.pptx
SIX WEEKS SUMMER TRAINING REPORT.pptxSIX WEEKS SUMMER TRAINING REPORT.pptx
SIX WEEKS SUMMER TRAINING REPORT.pptx
sagabo1
 

Similaire à Introduction to data structure (20)

Classification of DS.pptx
Classification of DS.pptxClassification of DS.pptx
Classification of DS.pptx
 
Data structure
Data structureData structure
Data structure
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
SIX WEEKS SUMMER TRAINING REPORT.pptx
SIX WEEKS SUMMER TRAINING REPORT.pptxSIX WEEKS SUMMER TRAINING REPORT.pptx
SIX WEEKS SUMMER TRAINING REPORT.pptx
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdf
 
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
 
Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data Structure
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Unit 1 Basic concepts to DS
Unit 1 Basic concepts to DSUnit 1 Basic concepts to DS
Unit 1 Basic concepts to DS
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation
 
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
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptx
 
Unit 1 Data Structures Introduction L1.pptx
Unit 1 Data Structures Introduction L1.pptxUnit 1 Data Structures Introduction L1.pptx
Unit 1 Data Structures Introduction L1.pptx
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 

Plus de Zaid Shabbir

Modern SDLC and QA.pptx
Modern SDLC and QA.pptxModern SDLC and QA.pptx
Modern SDLC and QA.pptx
Zaid Shabbir
 

Plus de Zaid Shabbir (14)

Modern SDLC and QA.pptx
Modern SDLC and QA.pptxModern SDLC and QA.pptx
Modern SDLC and QA.pptx
 
Software Agility.pptx
Software Agility.pptxSoftware Agility.pptx
Software Agility.pptx
 
Software Development Guide To Accelerate Performance
Software Development Guide To Accelerate PerformanceSoftware Development Guide To Accelerate Performance
Software Development Guide To Accelerate Performance
 
Software Testing and Agility
Software Testing and Agility Software Testing and Agility
Software Testing and Agility
 
Data security and Integrity
Data security and IntegrityData security and Integrity
Data security and Integrity
 
Cloud computing & dbms
Cloud computing & dbmsCloud computing & dbms
Cloud computing & dbms
 
No sql bigdata and postgresql
No sql bigdata and postgresqlNo sql bigdata and postgresql
No sql bigdata and postgresql
 
Files and data storage
Files and data storageFiles and data storage
Files and data storage
 
Queue
QueueQueue
Queue
 
Queue
QueueQueue
Queue
 
Sorting
SortingSorting
Sorting
 
Stack
StackStack
Stack
 
Tree and binary tree
Tree and binary treeTree and binary tree
Tree and binary tree
 
Sorting
SortingSorting
Sorting
 

Dernier

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Dernier (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Introduction to data structure

  • 1. Introduction to Data Structure zaid shabbir
  • 2. Basic Terminologies ● 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. zaid shabbir
  • 3. Basic Terminologies ● Data Structure .. – A data structure is a particular way of organizing data in a computer so that it can be used effi ciently. – A scheme for organizing related pieces of information. zaid shabbir
  • 4. Why Data Structure ● 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 zaid shabbir
  • 5. 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. zaid shabbir
  • 6. Classification of Data Structure Data Structure Simple Data Structure Compound Data Structure Linear Data Structure Non-Linear Data Structure Array Linked List Stack Queue Tree Graph Files Integer Float Character Pointer zaid shabbir
  • 7. Classification of Data Structure ... ● Simple Data Structure: Simple data structure can beSimple data structure can be constructed with the help of primitive data structure. Aconstructed with the help of primitive data structure. A primitive data structure used to represent the standard dataprimitive data structure used to represent the standard data types of any one of the computer languages (integer, Character,types of any one of the computer languages (integer, Character, float etc.).float etc.). ● Compound Data Structure:Compound Data Structure: Compound data structureCompound data structure can be constructed with the help of any one of the primitive datacan be constructed with the help of any one of the primitive data structure and it is having a specific functionality. It can bestructure and it is having a specific functionality. It can be designed by user. It can be classified as Linear and Non-Lineardesigned by user. It can be classified as Linear and Non-Linear Data Structure.Data Structure. . zaid shabbir
  • 8. Classification of Data Structure ... ● 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 zaid shabbir
  • 9. Operation on Linear/Non-Linear Data Structure ● Add an element ● Delete an element ● Traverse / Display ● Sort the list of elements ● Search for a data element zaid shabbir
  • 10. Types of Data Structure ● 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 zaid shabbir
  • 11. 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]. zaid shabbir
  • 12. Types of Data Structure ... Queue: A queue is two ended data structure in which items can 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]. zaid shabbir
  • 13. 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.
  • 14. 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. zaid shabbir
  • 15. Types of Data Structure ...
  • 16. Types of Data Structure ... 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. zaid shabbir
  • 17. 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. zaid shabbir
  • 18. 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.
  • 19. Types of Data Structure ... Weighted Graph: A graph having a weight, or number associated with each edge zaid shabbir
  • 20. Selecting a Data Structure ● 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. zaid shabbir