SlideShare a Scribd company logo
1 of 16
Lecture 2
Advanced Data structures
&
Analysis of Algorithms
Abirami S
Asst.Prof. IT Dept.
Shah and Anchor Kutchhi Engineering
College, Mumbai
Data Structures
A data structure is a particular way of
organizing data in a computer so that it can be
used effectively.
Need of Data Structures
• Processor speed: To handle very large amount of data,
high speed processing is required, but as the data is
growing day by day to the billions of files per entity,
processor may fail to deal with that much amount of
data.
• Data Search: Consider an inventory size of 106 items in
a store, If our application needs to search for a
particular item, it needs to traverse 106 items every
time, results in slowing down the search process.
• Multiple requests: If thousands of users are searching
the data simultaneously on a web server, then there
are the chances that a very large server can be failed
during that process.
Advantages of Data Structures
• Efficiency: Efficiency of a program depends upon the choice of
data structures. For example: suppose, we have some data and
we need to perform the search for a particular record. In that
case, if we organize our data in an array, we will have to search
sequentially element by element. hence, using array may not be
very efficient here. There are better data structures which can
make the search process efficient like ordered array, binary
search tree or hash tables.
• Reusability: Data structures are reusable, i.e. once we have
implemented a particular data structure, we can use it at any
other place. Implementation of data structures can be compiled
into libraries which can be used by different clients.
• Abstraction: Data structure is specified by the ADT which
provides a level of abstraction. The client program uses the data
structure through interface only, without getting into the
implementation details.
Classification of Data Structures
Classification of Data Structures
Linear Data Structures:
• A data structure is called linear if all of its
elements are arranged in the linear order.
• In linear data structures, the elements are
stored in non-hierarchical way where each
element has the successors and predecessors
except the first and last element.
Classification of Data Structures
• Static Data structure:
In Static data structure the size of the
structure is fixed.
• The content of the data structure can be
modified but without changing the memory
space allocated to it.
Classification of Data Structures
Dynamic Data Structure:
• In Dynamic data structure the size of the
structure in not fixed and can be modified
during the operations performed on it.
• Dynamic data structures are designed to
facilitate change of data structures in the run
time.
Classification of Data Structures
Arrays:
• An array is a collection of similar type of data
items and each data item is called an element of
the array. The data type of the element may be
any valid data type like char, int, float or double.
• The elements of array share the same variable
name but each one carries a different index
number known as subscript. The array can be one
dimensional, two dimensional or
multidimensional.
Classification of Data Structures
Linked List:
• Linked list is a linear data structure which is
used to maintain a list in the memory.
• It can be seen as the collection of nodes
stored at non-contiguous memory locations.
• Each node of the list contains a pointer to its
adjacent node.
Classification of Data Structures
Stack:
• Stack is a linear list in which insertion and
deletions are allowed only at one end,
called top.
• A stack is an abstract data type (ADT), can be
implemented in most of the programming
languages. It is named as stack because it
behaves like a real-world stack, for example: -
piles of plates or deck of cards etc.
Classification of Data Structures
Queue:
• Queue is a linear list in which elements can
be inserted only at one end called rear and
deleted only at the other end called front.
• It is an abstract data structure, similar to stack.
Queue is opened at both end therefore it
follows First-In-First-Out (FIFO) methodology
for storing the data items.
Classification of Data Structures
Non Linear Data Structures:
• This data structure does not form a sequence
i.e. each item or element is connected with
two or more other items in a non-linear
arrangement.
• The data elements are not arranged in
sequential structure.
Classification of Data Structures
Trees:
• Trees are multilevel data structures with a hierarchical
relationship among its elements known as nodes.
• The bottommost nodes in the hierarchy are called leaf
node while the topmost node is called root node.
• Each node contains pointers to point adjacent nodes.
• Tree data structure is based on the parent-child
relationship among the nodes.
• Each node in the tree can have more than one children
except the leaf nodes whereas each node can have
atmost one parent except the root node.
Classification of Data Structures
Graphs:
• Graphs can be defined as the pictorial
representation of the set of elements
(represented by vertices) connected by the
links known as edges.
• A graph is different from tree in the sense that
a graph can have cycle while the tree can not
have the one.
Thank You

More Related Content

What's hot

System software-loaders
System software-loadersSystem software-loaders
System software-loaders
kitturashmikittu
 

What's hot (20)

Comparative Study of programming Languages
Comparative Study of programming LanguagesComparative Study of programming Languages
Comparative Study of programming Languages
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 
358 33 powerpoint-slides_4-introduction-data-structures_chapter-4
358 33 powerpoint-slides_4-introduction-data-structures_chapter-4358 33 powerpoint-slides_4-introduction-data-structures_chapter-4
358 33 powerpoint-slides_4-introduction-data-structures_chapter-4
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methods
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
Lexical Analysis
Lexical AnalysisLexical Analysis
Lexical Analysis
 
Object oriented database
Object oriented databaseObject oriented database
Object oriented database
 
Compiler Design Lecture Notes
Compiler Design Lecture NotesCompiler Design Lecture Notes
Compiler Design Lecture Notes
 
Dbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelDbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational Model
 
System software-loaders
System software-loadersSystem software-loaders
System software-loaders
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Recurrent Neural Network : Multi-Class & Multi Label Text Classification
Recurrent Neural Network : Multi-Class & Multi Label Text ClassificationRecurrent Neural Network : Multi-Class & Multi Label Text Classification
Recurrent Neural Network : Multi-Class & Multi Label Text Classification
 
Leaky bucket A
Leaky bucket ALeaky bucket A
Leaky bucket A
 
6. describing syntax and semantics
6. describing syntax and semantics6. describing syntax and semantics
6. describing syntax and semantics
 
Linked List Static and Dynamic Memory Allocation
Linked List Static and Dynamic Memory AllocationLinked List Static and Dynamic Memory Allocation
Linked List Static and Dynamic Memory Allocation
 
File organization and indexing
File organization and indexingFile organization and indexing
File organization and indexing
 
Data structure Stack
Data structure StackData structure Stack
Data structure Stack
 
Normalization
NormalizationNormalization
Normalization
 
Object Oriented Approach for Software Development
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
 
Xml databases
Xml databasesXml databases
Xml databases
 

Similar to Lecture 2 Data Structure Introduction

Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
ArifKamal36
 
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
OnkarModhave
 
Data Structure - Complete Basic Overview.ppt
Data Structure - Complete Basic Overview.pptData Structure - Complete Basic Overview.ppt
Data Structure - Complete Basic Overview.ppt
ak8820
 
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
Vicky Singh
 

Similar to Lecture 2 Data Structure Introduction (20)

Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
 
PPT Format prashant .pptx
PPT Format prashant .pptxPPT Format prashant .pptx
PPT Format prashant .pptx
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
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
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Data Structure - Complete Basic Overview.ppt
Data Structure - Complete Basic Overview.pptData Structure - Complete Basic Overview.ppt
Data Structure - Complete Basic Overview.ppt
 
DATA-STRUCTURES.pptx
DATA-STRUCTURES.pptxDATA-STRUCTURES.pptx
DATA-STRUCTURES.pptx
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptx
 
Data Structures: Introduction to Data Structures
Data Structures: Introduction to Data StructuresData Structures: Introduction to Data Structures
Data Structures: Introduction to Data Structures
 
Datastructures Notes
Datastructures NotesDatastructures Notes
Datastructures Notes
 
Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]
 
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
 

More from Abirami A (12)

Lecture 3 time complexity
Lecture 3 time complexityLecture 3 time complexity
Lecture 3 time complexity
 
Lecture 1 introduction
Lecture 1 introductionLecture 1 introduction
Lecture 1 introduction
 
Lecture 14 splay tree
Lecture 14 splay treeLecture 14 splay tree
Lecture 14 splay tree
 
Lecture 16 graphs traversal
Lecture 16 graphs traversalLecture 16 graphs traversal
Lecture 16 graphs traversal
 
Lecture 16 graph introduction
Lecture 16 graph introductionLecture 16 graph introduction
Lecture 16 graph introduction
 
Lecture 6 disjoint set
Lecture 6 disjoint setLecture 6 disjoint set
Lecture 6 disjoint set
 
Lecture 8 tree traversal
Lecture 8 tree traversalLecture 8 tree traversal
Lecture 8 tree traversal
 
Lecture 9 b tree
Lecture 9 b treeLecture 9 b tree
Lecture 9 b tree
 
Lecture 7 bst
Lecture 7 bstLecture 7 bst
Lecture 7 bst
 
Lecture 6 tree traversal
Lecture 6 tree traversalLecture 6 tree traversal
Lecture 6 tree traversal
 
Lecture 5 tree.pptx
Lecture 5 tree.pptxLecture 5 tree.pptx
Lecture 5 tree.pptx
 
Lecture 1 sorting insertion & shell sort
Lecture 1 sorting insertion & shell sortLecture 1 sorting insertion & shell sort
Lecture 1 sorting insertion & shell sort
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Recently uploaded (20)

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 

Lecture 2 Data Structure Introduction

  • 1. Lecture 2 Advanced Data structures & Analysis of Algorithms Abirami S Asst.Prof. IT Dept. Shah and Anchor Kutchhi Engineering College, Mumbai
  • 2. Data Structures A data structure is a particular way of organizing data in a computer so that it can be used effectively.
  • 3. Need of Data Structures • Processor speed: To handle very large amount of data, high speed processing is required, but as the data is growing day by day to the billions of files per entity, processor may fail to deal with that much amount of data. • Data Search: Consider an inventory size of 106 items in a store, If our application needs to search for a particular item, it needs to traverse 106 items every time, results in slowing down the search process. • Multiple requests: If thousands of users are searching the data simultaneously on a web server, then there are the chances that a very large server can be failed during that process.
  • 4. Advantages of Data Structures • Efficiency: Efficiency of a program depends upon the choice of data structures. For example: suppose, we have some data and we need to perform the search for a particular record. In that case, if we organize our data in an array, we will have to search sequentially element by element. hence, using array may not be very efficient here. There are better data structures which can make the search process efficient like ordered array, binary search tree or hash tables. • Reusability: Data structures are reusable, i.e. once we have implemented a particular data structure, we can use it at any other place. Implementation of data structures can be compiled into libraries which can be used by different clients. • Abstraction: Data structure is specified by the ADT which provides a level of abstraction. The client program uses the data structure through interface only, without getting into the implementation details.
  • 6. Classification of Data Structures Linear Data Structures: • A data structure is called linear if all of its elements are arranged in the linear order. • In linear data structures, the elements are stored in non-hierarchical way where each element has the successors and predecessors except the first and last element.
  • 7. Classification of Data Structures • Static Data structure: In Static data structure the size of the structure is fixed. • The content of the data structure can be modified but without changing the memory space allocated to it.
  • 8. Classification of Data Structures Dynamic Data Structure: • In Dynamic data structure the size of the structure in not fixed and can be modified during the operations performed on it. • Dynamic data structures are designed to facilitate change of data structures in the run time.
  • 9. Classification of Data Structures Arrays: • An array is a collection of similar type of data items and each data item is called an element of the array. The data type of the element may be any valid data type like char, int, float or double. • The elements of array share the same variable name but each one carries a different index number known as subscript. The array can be one dimensional, two dimensional or multidimensional.
  • 10. Classification of Data Structures Linked List: • Linked list is a linear data structure which is used to maintain a list in the memory. • It can be seen as the collection of nodes stored at non-contiguous memory locations. • Each node of the list contains a pointer to its adjacent node.
  • 11. Classification of Data Structures Stack: • Stack is a linear list in which insertion and deletions are allowed only at one end, called top. • A stack is an abstract data type (ADT), can be implemented in most of the programming languages. It is named as stack because it behaves like a real-world stack, for example: - piles of plates or deck of cards etc.
  • 12. Classification of Data Structures Queue: • Queue is a linear list in which elements can be inserted only at one end called rear and deleted only at the other end called front. • It is an abstract data structure, similar to stack. Queue is opened at both end therefore it follows First-In-First-Out (FIFO) methodology for storing the data items.
  • 13. Classification of Data Structures Non Linear Data Structures: • This data structure does not form a sequence i.e. each item or element is connected with two or more other items in a non-linear arrangement. • The data elements are not arranged in sequential structure.
  • 14. Classification of Data Structures Trees: • Trees are multilevel data structures with a hierarchical relationship among its elements known as nodes. • The bottommost nodes in the hierarchy are called leaf node while the topmost node is called root node. • Each node contains pointers to point adjacent nodes. • Tree data structure is based on the parent-child relationship among the nodes. • Each node in the tree can have more than one children except the leaf nodes whereas each node can have atmost one parent except the root node.
  • 15. Classification of Data Structures Graphs: • Graphs can be defined as the pictorial representation of the set of elements (represented by vertices) connected by the links known as edges. • A graph is different from tree in the sense that a graph can have cycle while the tree can not have the one.