SlideShare a Scribd company logo
3
Most read
4
Most read
7
Most read
DATA STRUCTURE
AND ALGORITHMS
Mrs. V. JAYAVANI
Assistant Professor
Department of Computer Science
E.M.G. Yadava Women’s College
INTRODUCTIONTO
DATA STRUCTURE AND
ABSTRACT DATATYPES
What is Data Structure?
• Data structure is a representation of data and the operations allowed
on that data.
• A data structure is a way to store and organize data in order to
facilitate the access and modifications.
• Data Structure are the method of representing of logical
relationships between individual data elements related to the
solution of a given problem.
BASIC DATA STRUCTURE
Basic Data Structures
Linear Data Structures Non-Linear Data Structures
Arrays Linked Lists Stacks Queues Trees Graphs Hash Tables
array
Linked list
tree
queue
stack
Selection of Data Structure
•The choice of particular data model depends on two
consideration:
•It must be rich enough in structure to represent the
relationship between data elements.
•The structure should be simple enough that one can
effectively process the data when necessary
TYPES OF DATA STRUCTURE
•Linear: In Linear data structure, values are arrange in
linear fashion.
• Array: Fixed-size
• Linked-list: Variable-size
• Stack: Add to top and remove from top
• Queue: Add to back and remove from front
• Priority queue: Add anywhere, remove the highest priority
TYPES OF DATA STRUCTURE
•Non-Linear: The data values in this structure are
not arranged in order.
• Hash tables: Unordered lists which use a ‘hash function’ to
insert and search
• Tree: Data is organized in branches.
• Graph: A more general branching structure, with less strict
connection conditions than for a tree
Abstract Data Type and Data Structure
• Definition:-
Abstract Data Types (ADTs) stores data and allow various operations on
the data to access and change it.
A mathematical model, together with various operations defined on the
model.
An ADT is a collection of data and associated operations for
manipulating that data.
• Data Structures
Physical implementation of an ADT.
data structures used in implementations are provided in a language
(primitive or built-in) or are built from the language constructs (user-
defined).
Each operation associated with the ADT is implemented by one or more
subroutines in the implementation.
ADTs support abstraction, encapsulation, and
information hiding.
Abstraction is the structuring of a problem into
well-defined entities by defining their data and
operations.
The principle of hiding the used data structure and
to only provide a well-defined interface is known as
encapsulation.
Abstract Data Type
The Core Operations of ADT
•Every Collection ADT should provide a way
to:
 add an item
 remove an item
 find, retrieve, or access an item
•Many, many more possibilities
 is the collection empty
 make the collection empty
 give me a sub set of the collection
Stacks
• Collection with access only to the last element inserted
• Last in first out
• insert/push
• remove/pop
• top
• make empty
Top
Data4
Data3
Data2
Data1
Queues
 Collection with access only to the item that has been present the
longest.
 Last in last out or first in first out.
 enqueue, dequeue, front.
 priority queues and dequeue.
Data4
Data3
Data2
Data1
Front Back
List
• A Flexible structure, because can grow and shrink on demand.
Elements can be:
 Inserted
 Accessed
 Deleted
 At any position
first
last
Tree
 A Tree is a collection of elements called nodes.
 One of the node is distinguished as a root, along with a relation
(“parenthood”) that places a hierarchical structure on the nodes.
Root

More Related Content

What's hot (11)

PDF
Data Models
RituBhargava7
 
PPTX
DATA MINING TOOL- ORANGE
Neeraj Goswami
 
PPTX
Database development life cycle unit 2 part 1
Ram Paliwal
 
PPTX
Data Modeling
DrkhanchanaR
 
PPT
Data
Mirza Ćutuk
 
PDF
CTTI: El camino del Dato con Confluent
confluent
 
PPTX
Data Preprocessing || Data Mining
Iffat Firozy
 
PPT
Dw & etl concepts
jeshocarme
 
PPTX
Rdbms
rdbms
 
PPT
Data preprocess
srigiridharan92
 
PPTX
Database
Bhandari Nawaraj
 
Data Models
RituBhargava7
 
DATA MINING TOOL- ORANGE
Neeraj Goswami
 
Database development life cycle unit 2 part 1
Ram Paliwal
 
Data Modeling
DrkhanchanaR
 
CTTI: El camino del Dato con Confluent
confluent
 
Data Preprocessing || Data Mining
Iffat Firozy
 
Dw & etl concepts
jeshocarme
 
Rdbms
rdbms
 
Data preprocess
srigiridharan92
 

Similar to Introduction - Data Structures and Algorithms.ppt (20)

PPTX
Lecture_1_Introduction to Data Structures and Algorithm.pptx
mueedmughal88
 
PPT
data structure
hashim102
 
PPT
Data_Structure With C_LECTURE ONE PPT123
deepikadalvi18
 
PPTX
DS Module 1.pptx
SaralaT3
 
PPTX
DS Module 1.pptx
sarala9
 
PPT
Introduction To Data Structures.ppt
NALESVPMEngg
 
PPTX
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
PPTX
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
PDF
Data structures and algorithms short note (version 14).pd
Nimmi Weeraddana
 
DOC
data structures and algorithm Cha 1and 2.doc
ephremmulu486
 
PPTX
Introduction to Data Structure and its type: Primitive and Non Primitive, ADT
bdevyani29
 
PPTX
DATA STRUCTURES, ADTS INTRO lecture .pptx
ssuser4302bb
 
PPTX
Introduction to Data Structures
Amar Jukuntla
 
PPT
Data Structures & Algorithms
Ain-ul-Moiz Khawaja
 
PPT
Intro ds
John Fathima
 
PPTX
Introduction to Data Structure.pptx
MouDhara1
 
PPTX
Introduction to Data Structures for CS.pptx
eduardocehenmu
 
PDF
Lesson 1 - Data Structures and Algorithms Overview.pdf
LeandroJrErcia
 
PDF
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
sanketkurve7
 
PDF
Lecture1 data structure(introduction)
Taibah University, College of Computer Science & Engineering
 
Lecture_1_Introduction to Data Structures and Algorithm.pptx
mueedmughal88
 
data structure
hashim102
 
Data_Structure With C_LECTURE ONE PPT123
deepikadalvi18
 
DS Module 1.pptx
SaralaT3
 
DS Module 1.pptx
sarala9
 
Introduction To Data Structures.ppt
NALESVPMEngg
 
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
Data structures and algorithms short note (version 14).pd
Nimmi Weeraddana
 
data structures and algorithm Cha 1and 2.doc
ephremmulu486
 
Introduction to Data Structure and its type: Primitive and Non Primitive, ADT
bdevyani29
 
DATA STRUCTURES, ADTS INTRO lecture .pptx
ssuser4302bb
 
Introduction to Data Structures
Amar Jukuntla
 
Data Structures & Algorithms
Ain-ul-Moiz Khawaja
 
Intro ds
John Fathima
 
Introduction to Data Structure.pptx
MouDhara1
 
Introduction to Data Structures for CS.pptx
eduardocehenmu
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
LeandroJrErcia
 
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
sanketkurve7
 
Ad

More from JayaKamal (12)

PPT
Introduction to Machine Learning Concepts
JayaKamal
 
PPTX
Trees, Basic Terminology and Binary Trees
JayaKamal
 
PPT
To learn Basic Excel - Data Entry, Formulas and Functions
JayaKamal
 
PPTX
Introduction Linked Lists - Singly Linked List,
JayaKamal
 
PPTX
What is an Operating Systems?
JayaKamal
 
PPTX
Jsp
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
PPTX
Software Engineering
JayaKamal
 
Introduction to Machine Learning Concepts
JayaKamal
 
Trees, Basic Terminology and Binary Trees
JayaKamal
 
To learn Basic Excel - Data Entry, Formulas and Functions
JayaKamal
 
Introduction Linked Lists - Singly Linked List,
JayaKamal
 
What is an Operating Systems?
JayaKamal
 
Software Engineering
JayaKamal
 
Software Engineering
JayaKamal
 
Software Engineering
JayaKamal
 
Software Engineering
JayaKamal
 
Software Engineering
JayaKamal
 
Software Engineering
JayaKamal
 
Ad

Recently uploaded (20)

PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
community health nursing question paper 2.pdf
Prince kumar
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 

Introduction - Data Structures and Algorithms.ppt

  • 1. DATA STRUCTURE AND ALGORITHMS Mrs. V. JAYAVANI Assistant Professor Department of Computer Science E.M.G. Yadava Women’s College
  • 3. What is Data Structure? • Data structure is a representation of data and the operations allowed on that data. • A data structure is a way to store and organize data in order to facilitate the access and modifications. • Data Structure are the method of representing of logical relationships between individual data elements related to the solution of a given problem.
  • 4. BASIC DATA STRUCTURE Basic Data Structures Linear Data Structures Non-Linear Data Structures Arrays Linked Lists Stacks Queues Trees Graphs Hash Tables
  • 6. Selection of Data Structure •The choice of particular data model depends on two consideration: •It must be rich enough in structure to represent the relationship between data elements. •The structure should be simple enough that one can effectively process the data when necessary
  • 7. TYPES OF DATA STRUCTURE •Linear: In Linear data structure, values are arrange in linear fashion. • Array: Fixed-size • Linked-list: Variable-size • Stack: Add to top and remove from top • Queue: Add to back and remove from front • Priority queue: Add anywhere, remove the highest priority
  • 8. TYPES OF DATA STRUCTURE •Non-Linear: The data values in this structure are not arranged in order. • Hash tables: Unordered lists which use a ‘hash function’ to insert and search • Tree: Data is organized in branches. • Graph: A more general branching structure, with less strict connection conditions than for a tree
  • 9. Abstract Data Type and Data Structure • Definition:- Abstract Data Types (ADTs) stores data and allow various operations on the data to access and change it. A mathematical model, together with various operations defined on the model. An ADT is a collection of data and associated operations for manipulating that data. • Data Structures Physical implementation of an ADT. data structures used in implementations are provided in a language (primitive or built-in) or are built from the language constructs (user- defined). Each operation associated with the ADT is implemented by one or more subroutines in the implementation.
  • 10. ADTs support abstraction, encapsulation, and information hiding. Abstraction is the structuring of a problem into well-defined entities by defining their data and operations. The principle of hiding the used data structure and to only provide a well-defined interface is known as encapsulation. Abstract Data Type
  • 11. The Core Operations of ADT •Every Collection ADT should provide a way to:  add an item  remove an item  find, retrieve, or access an item •Many, many more possibilities  is the collection empty  make the collection empty  give me a sub set of the collection
  • 12. Stacks • Collection with access only to the last element inserted • Last in first out • insert/push • remove/pop • top • make empty Top Data4 Data3 Data2 Data1
  • 13. Queues  Collection with access only to the item that has been present the longest.  Last in last out or first in first out.  enqueue, dequeue, front.  priority queues and dequeue. Data4 Data3 Data2 Data1 Front Back
  • 14. List • A Flexible structure, because can grow and shrink on demand. Elements can be:  Inserted  Accessed  Deleted  At any position first last
  • 15. Tree  A Tree is a collection of elements called nodes.  One of the node is distinguished as a root, along with a relation (“parenthood”) that places a hierarchical structure on the nodes. Root