SlideShare a Scribd company logo
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

Similar to Introduction - Data Structures and Algorithms.ppt

Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data StructuresAmar Jukuntla
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-introEhtisham Ali
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
DOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxDOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxssusercab735
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxArifKamal36
 
Presentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and morePresentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and moreKwadjoOwusuAnsahQuar
 
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
 
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 .pptxVicky Singh
 

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

Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
 
Data structure
Data  structureData  structure
Data structure
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Datastructures Notes
Datastructures NotesDatastructures Notes
Datastructures Notes
 
DOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptxDOC-20221104-WA0036.بحث.pptx
DOC-20221104-WA0036.بحث.pptx
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
02 Related Concepts
02 Related Concepts02 Related Concepts
02 Related Concepts
 
Database systems introduction
Database systems introductionDatabase systems introduction
Database systems introduction
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
 
Presentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and morePresentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and more
 
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 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
 
DBMS
DBMS DBMS
DBMS
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
 

More from JayaKamal

To learn Basic Excel - Data Entry, Formulas and Functions
To learn Basic Excel - Data Entry, Formulas and FunctionsTo learn Basic Excel - Data Entry, Formulas and Functions
To learn Basic Excel - Data Entry, Formulas and FunctionsJayaKamal
 
Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,JayaKamal
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?JayaKamal
 
Software Engineering
Software Engineering Software Engineering
Software Engineering JayaKamal
 
Software Engineering
Software Engineering Software Engineering
Software Engineering JayaKamal
 
Software Engineering
Software Engineering Software Engineering
Software Engineering JayaKamal
 
Software Engineering
Software Engineering Software Engineering
Software Engineering JayaKamal
 
Software Engineering
 Software Engineering  Software Engineering
Software Engineering JayaKamal
 
Software Engineering
 Software Engineering  Software Engineering
Software Engineering JayaKamal
 

More from JayaKamal (10)

To learn Basic Excel - Data Entry, Formulas and Functions
To learn Basic Excel - Data Entry, Formulas and FunctionsTo learn Basic Excel - Data Entry, Formulas and Functions
To learn Basic Excel - Data Entry, Formulas and Functions
 
Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,Introduction Linked Lists - Singly Linked List,
Introduction Linked Lists - Singly Linked List,
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?
 
Jsp
JspJsp
Jsp
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
Software Engineering
 Software Engineering  Software Engineering
Software Engineering
 
Software Engineering
 Software Engineering  Software Engineering
Software Engineering
 

Recently uploaded

Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPragya - UEM Kolkata Quiz Club
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfDr. M. Kumaresan Hort.
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff17thcssbs2
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesashishpaul799
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 

Recently uploaded (20)

Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 

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