SlideShare a Scribd company logo
1
Basic TerminologiesBasic Terminologies
Data StructuresData Structures
DefinitionDefinition
Data Structure is a way of collecting and organizingData Structure is a way of collecting and organizing
data in such a way that we can perform operations ondata in such a way that we can perform operations on
these data in an effective way. Data Structures isthese data in an effective way. Data Structures is
about rendering data elements in terms of someabout rendering data elements in terms of some
relationship, for better organization and storage.relationship, for better organization and storage.
Data structures can implement one or moreData structures can implement one or more
particular abstract data types (ADT), which are the meansparticular abstract data types (ADT), which are the means
of specifying the contract of operations andof specifying the contract of operations and
their complexity.their complexity.
Design and Analysis of Algorithms Chapter 2.2
2
3
Abstract Data Type (ADT)Abstract Data Type (ADT)
• Mathematical description of an object with setMathematical description of an object with set
of operations on the object. Useful buildingof operations on the object. Useful building
block.block.
AlgorithmAlgorithm
• A high level, language independent, descriptionA high level, language independent, description
of a step-by-step processof a step-by-step process
Data structureData structure
• A specific family of algorithms forA specific family of algorithms for
implementing an abstract data type.implementing an abstract data type.
Implementation of data structureImplementation of data structure
• A specific implementation in a specific languageA specific implementation in a specific language
TerminologyTerminology
4
TerminologyTerminology
DataData
Data refers to value or set of values.Data refers to value or set of values.
e.g.Marks obtained by the students.e.g.Marks obtained by the students.
Data typeData type
data type is a classification identifying one of variousdata type is a classification identifying one of various
typestypes
of data, such as floating-point, integer, or Boolean, thatof data, such as floating-point, integer, or Boolean, that
determines the possible values for that type; thedetermines the possible values for that type; the
operationsoperations
that can be done on values of that type; and the waythat can be done on values of that type; and the way
valuesvalues
of that type can be storedof that type can be stored
5
TerminologyTerminology
Primitive data type:Primitive data type:
These are basic data types that are provided by theThese are basic data types that are provided by the
programming language with built-in support. These dataprogramming language with built-in support. These data
types are native to the language. This data type istypes are native to the language. This data type is
supported by machine directlysupported by machine directly
VariableVariable
Variable is a symbolic name given to some known orVariable is a symbolic name given to some known or
unknown quantity or information, for the purpose ofunknown quantity or information, for the purpose of
allowing the name to be used independently of theallowing the name to be used independently of the
information it represents.information it represents.
6
RecordRecord
Collection of related data items is known as record. TheCollection of related data items is known as record. The
elements of records are usually Called fields or memberselements of records are usually Called fields or members
..
Records are distinguished from arrays by the fact thatRecords are distinguished from arrays by the fact that
their number of fields is typically fixed, each field has atheir number of fields is typically fixed, each field has a
name, and that each field may have a different type.name, and that each field may have a different type.
ProgramProgram
A sequence of instructions that a computer canA sequence of instructions that a computer can
interpret and execute.interpret and execute.
TerminologyTerminology
7
AA stack is anstack is an abstract data typeabstract data type supporting push, popsupporting push, pop
and isEmpty operationsand isEmpty operations
A stackA stack data structuredata structure could use an array, a linked list,could use an array, a linked list,
or anything that can hold dataor anything that can hold data
One stackOne stack implementationimplementation is java.util.Stack; another isis java.util.Stack; another is
java.util.LinkedListjava.util.LinkedList
Terminology examplesTerminology examples
8
AbstractAbstract
PseudocodePseudocode
AlgorithmAlgorithm
• A sequence of high-level,A sequence of high-level,
language independentlanguage independent
operations, which mayoperations, which may
act upon an abstractedact upon an abstracted
view of data.view of data.
Abstract Data Type (ADT)Abstract Data Type (ADT)
• A mathematicalA mathematical
description of an objectdescription of an object
and the set of operationsand the set of operations
on the object.on the object.
AbstractAbstract
PseudocodePseudocode
AlgorithmAlgorithm
• A sequence of high-level,A sequence of high-level,
language independentlanguage independent
operations, which mayoperations, which may
act upon an abstractedact upon an abstracted
view of data.view of data.
Abstract Data Type (ADT)Abstract Data Type (ADT)
• A mathematicalA mathematical
description of an objectdescription of an object
and the set of operationsand the set of operations
on the object.on the object.
ConceptsConcepts vs.vs. MechanismsMechanisms
Ad

More Related Content

What's hot (20)

Graph traversals in Data Structures
Graph traversals in Data StructuresGraph traversals in Data Structures
Graph traversals in Data Structures
Anandhasilambarasan D
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
teach4uin
 
Array ppt
Array pptArray ppt
Array ppt
Kaushal Mehta
 
Applications of data structures
Applications of data structuresApplications of data structures
Applications of data structures
Wipro
 
Pointers and Dynamic Memory Allocation
Pointers and Dynamic Memory AllocationPointers and Dynamic Memory Allocation
Pointers and Dynamic Memory Allocation
Rabin BK
 
Data Structure - Elementary Data Organization
Data Structure - Elementary  Data Organization Data Structure - Elementary  Data Organization
Data Structure - Elementary Data Organization
Uma mohan
 
Merge sort algorithm
Merge sort algorithmMerge sort algorithm
Merge sort algorithm
Shubham Dwivedi
 
STACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURESTACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURE
Archie Jamwal
 
Arrays & Strings
Arrays & StringsArrays & Strings
Arrays & Strings
Munazza-Mah-Jabeen
 
Arrays In C
Arrays In CArrays In C
Arrays In C
yndaravind
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
Basic terminologies
Basic terminologiesBasic terminologies
Basic terminologies
Rajendran
 
Programming in c Arrays
Programming in c ArraysProgramming in c Arrays
Programming in c Arrays
janani thirupathi
 
Arrays In C++
Arrays In C++Arrays In C++
Arrays In C++
Awais Alam
 
Data structures using c
Data structures using cData structures using c
Data structures using c
Prof. Dr. K. Adisesha
 
Files and streams
Files and streamsFiles and streams
Files and streams
Pranali Chaudhari
 
Array in c
Array in cArray in c
Array in c
Ravi Gelani
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
Kumar
 
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structure
Rai University
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
Amrinder Arora
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
teach4uin
 
Applications of data structures
Applications of data structuresApplications of data structures
Applications of data structures
Wipro
 
Pointers and Dynamic Memory Allocation
Pointers and Dynamic Memory AllocationPointers and Dynamic Memory Allocation
Pointers and Dynamic Memory Allocation
Rabin BK
 
Data Structure - Elementary Data Organization
Data Structure - Elementary  Data Organization Data Structure - Elementary  Data Organization
Data Structure - Elementary Data Organization
Uma mohan
 
STACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURESTACKS IN DATASTRUCTURE
STACKS IN DATASTRUCTURE
Archie Jamwal
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
Basic terminologies
Basic terminologiesBasic terminologies
Basic terminologies
Rajendran
 
Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
Kumar
 
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structure
Rai University
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
Amrinder Arora
 

Similar to Basics of data structure (20)

Basics
BasicsBasics
Basics
Rajendran
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
removed_8057d320f6c8601c14a895598b86eacb
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
Nurjahan Nipa
 
UNIT 3.pptx-Data Structures definition with examples
UNIT 3.pptx-Data Structures definition with examplesUNIT 3.pptx-Data Structures definition with examples
UNIT 3.pptx-Data Structures definition with examples
Papitha7
 
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxchapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
AmrutaNavale2
 
ds 1 Introduction to Data Structures.ppt
ds 1 Introduction to Data Structures.pptds 1 Introduction to Data Structures.ppt
ds 1 Introduction to Data Structures.ppt
AlliVinay1
 
1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt
Ashok280385
 
Data structure Assignment Help
Data structure Assignment HelpData structure Assignment Help
Data structure Assignment Help
JosephErin
 
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
Unit-I PPT hususi sisooshsgv.     EijeieieooekejjUnit-I PPT hususi sisooshsgv.     Eijeieieooekejj
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
sanketkurve7
 
01VD062009003760042.pdf
01VD062009003760042.pdf01VD062009003760042.pdf
01VD062009003760042.pdf
SunilMatsagar1
 
Algorithm and Data Structures - Basic of IT Problem Solving
Algorithm and Data Structures - Basic of IT Problem SolvingAlgorithm and Data Structures - Basic of IT Problem Solving
Algorithm and Data Structures - Basic of IT Problem Solving
coolpie
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
SulabhPawaia
 
Data Structure using c language for beginners
Data Structure using c language for beginners Data Structure using c language for beginners
Data Structure using c language for beginners
Vinayak SofTech
 
Introduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptxIntroduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptx
line24arts
 
data structures and algorithm Cha 1and 2.doc
data structures and algorithm Cha 1and 2.docdata structures and algorithm Cha 1and 2.doc
data structures and algorithm Cha 1and 2.doc
ephremmulu486
 
Introduction To Data Structures.ppt
Introduction To Data Structures.pptIntroduction To Data Structures.ppt
Introduction To Data Structures.ppt
NALESVPMEngg
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx
RahikAhmed
 
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
AntareepMajumder
 
Data structure and algorithms unit 1 pdf SRM
Data structure and algorithms unit 1 pdf SRMData structure and algorithms unit 1 pdf SRM
Data structure and algorithms unit 1 pdf SRM
sshreeyaas
 
Introduction of data structures and algorithms
Introduction of data structures and algorithmsIntroduction of data structures and algorithms
Introduction of data structures and algorithms
VinayKumarV16
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
Nurjahan Nipa
 
UNIT 3.pptx-Data Structures definition with examples
UNIT 3.pptx-Data Structures definition with examplesUNIT 3.pptx-Data Structures definition with examples
UNIT 3.pptx-Data Structures definition with examples
Papitha7
 
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxchapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
AmrutaNavale2
 
ds 1 Introduction to Data Structures.ppt
ds 1 Introduction to Data Structures.pptds 1 Introduction to Data Structures.ppt
ds 1 Introduction to Data Structures.ppt
AlliVinay1
 
1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt1.1 introduction to Data Structures.ppt
1.1 introduction to Data Structures.ppt
Ashok280385
 
Data structure Assignment Help
Data structure Assignment HelpData structure Assignment Help
Data structure Assignment Help
JosephErin
 
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
Unit-I PPT hususi sisooshsgv.     EijeieieooekejjUnit-I PPT hususi sisooshsgv.     Eijeieieooekejj
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
sanketkurve7
 
01VD062009003760042.pdf
01VD062009003760042.pdf01VD062009003760042.pdf
01VD062009003760042.pdf
SunilMatsagar1
 
Algorithm and Data Structures - Basic of IT Problem Solving
Algorithm and Data Structures - Basic of IT Problem SolvingAlgorithm and Data Structures - Basic of IT Problem Solving
Algorithm and Data Structures - Basic of IT Problem Solving
coolpie
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
SulabhPawaia
 
Data Structure using c language for beginners
Data Structure using c language for beginners Data Structure using c language for beginners
Data Structure using c language for beginners
Vinayak SofTech
 
Introduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptxIntroduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptx
line24arts
 
data structures and algorithm Cha 1and 2.doc
data structures and algorithm Cha 1and 2.docdata structures and algorithm Cha 1and 2.doc
data structures and algorithm Cha 1and 2.doc
ephremmulu486
 
Introduction To Data Structures.ppt
Introduction To Data Structures.pptIntroduction To Data Structures.ppt
Introduction To Data Structures.ppt
NALESVPMEngg
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx
RahikAhmed
 
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
AntareepMajumder
 
Data structure and algorithms unit 1 pdf SRM
Data structure and algorithms unit 1 pdf SRMData structure and algorithms unit 1 pdf SRM
Data structure and algorithms unit 1 pdf SRM
sshreeyaas
 
Introduction of data structures and algorithms
Introduction of data structures and algorithmsIntroduction of data structures and algorithms
Introduction of data structures and algorithms
VinayKumarV16
 
Ad

More from Rajendran (20)

Element distinctness lower bounds
Element distinctness lower boundsElement distinctness lower bounds
Element distinctness lower bounds
Rajendran
 
Scheduling with Startup and Holding Costs
Scheduling with Startup and Holding CostsScheduling with Startup and Holding Costs
Scheduling with Startup and Holding Costs
Rajendran
 
Divide and conquer surfing lower bounds
Divide and conquer  surfing lower boundsDivide and conquer  surfing lower bounds
Divide and conquer surfing lower bounds
Rajendran
 
Red black tree
Red black treeRed black tree
Red black tree
Rajendran
 
Hash table
Hash tableHash table
Hash table
Rajendran
 
Medians and order statistics
Medians and order statisticsMedians and order statistics
Medians and order statistics
Rajendran
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
Rajendran
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
Rajendran
 
Recurrence theorem
Recurrence theoremRecurrence theorem
Recurrence theorem
Rajendran
 
Master method
Master method Master method
Master method
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Hash tables
Hash tablesHash tables
Hash tables
Rajendran
 
Lower bound
Lower boundLower bound
Lower bound
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
Rajendran
 
Longest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm AnalysisLongest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm Analysis
Rajendran
 
Dynamic programming in Algorithm Analysis
Dynamic programming in Algorithm AnalysisDynamic programming in Algorithm Analysis
Dynamic programming in Algorithm Analysis
Rajendran
 
Average case Analysis of Quicksort
Average case Analysis of QuicksortAverage case Analysis of Quicksort
Average case Analysis of Quicksort
Rajendran
 
Np completeness
Np completenessNp completeness
Np completeness
Rajendran
 
computer languages
computer languagescomputer languages
computer languages
Rajendran
 
Element distinctness lower bounds
Element distinctness lower boundsElement distinctness lower bounds
Element distinctness lower bounds
Rajendran
 
Scheduling with Startup and Holding Costs
Scheduling with Startup and Holding CostsScheduling with Startup and Holding Costs
Scheduling with Startup and Holding Costs
Rajendran
 
Divide and conquer surfing lower bounds
Divide and conquer  surfing lower boundsDivide and conquer  surfing lower bounds
Divide and conquer surfing lower bounds
Rajendran
 
Red black tree
Red black treeRed black tree
Red black tree
Rajendran
 
Medians and order statistics
Medians and order statisticsMedians and order statistics
Medians and order statistics
Rajendran
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
Rajendran
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
Rajendran
 
Recurrence theorem
Recurrence theoremRecurrence theorem
Recurrence theorem
Rajendran
 
Master method
Master method Master method
Master method
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
Rajendran
 
Longest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm AnalysisLongest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm Analysis
Rajendran
 
Dynamic programming in Algorithm Analysis
Dynamic programming in Algorithm AnalysisDynamic programming in Algorithm Analysis
Dynamic programming in Algorithm Analysis
Rajendran
 
Average case Analysis of Quicksort
Average case Analysis of QuicksortAverage case Analysis of Quicksort
Average case Analysis of Quicksort
Rajendran
 
Np completeness
Np completenessNp completeness
Np completeness
Rajendran
 
computer languages
computer languagescomputer languages
computer languages
Rajendran
 
Ad

Recently uploaded (20)

From Hype to Moat: Building a Defensible AI Strategy
From Hype to Moat: Building a Defensible AI StrategyFrom Hype to Moat: Building a Defensible AI Strategy
From Hype to Moat: Building a Defensible AI Strategy
victoriamangiantini1
 
Capitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptxCapitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptx
CapitolTechU
 
CANSA World No Tobacco Day campaign 2025 Vaping is not a safe form of smoking...
CANSA World No Tobacco Day campaign 2025 Vaping is not a safe form of smoking...CANSA World No Tobacco Day campaign 2025 Vaping is not a safe form of smoking...
CANSA World No Tobacco Day campaign 2025 Vaping is not a safe form of smoking...
CANSA The Cancer Association of South Africa
 
Module I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good GovernanceModule I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good Governance
srkmcop0027
 
he Grant Preparation Playbook: Building a System for Grant Success
he Grant Preparation Playbook: Building a System for Grant Successhe Grant Preparation Playbook: Building a System for Grant Success
he Grant Preparation Playbook: Building a System for Grant Success
TechSoup
 
How to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo SlidesHow to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo Slides
Celine George
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
the dynastic history of Paramaras of Malwa
the dynastic history of Paramaras of Malwathe dynastic history of Paramaras of Malwa
the dynastic history of Paramaras of Malwa
PrachiSontakke5
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-21-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-21-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-21-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-21-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
How to Manage Customer Info from POS in Odoo 18
How to Manage Customer Info from POS in Odoo 18How to Manage Customer Info from POS in Odoo 18
How to Manage Customer Info from POS in Odoo 18
Celine George
 
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
online college homework help
 
The Reproductive System of Insects: An Overview.pptx
The Reproductive System of Insects: An Overview.pptxThe Reproductive System of Insects: An Overview.pptx
The Reproductive System of Insects: An Overview.pptx
Arshad Shaikh
 
Dastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptxDastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptx
omorfaruqkazi
 
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
businessweekghana
 
Ethics and evidence based practice in nursing education
Ethics and evidence based practice in nursing educationEthics and evidence based practice in nursing education
Ethics and evidence based practice in nursing education
ALEENAABRAHAM11
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
How to create Record rules in odoo 18 - Odoo Slides
How to create Record rules in odoo 18 - Odoo  SlidesHow to create Record rules in odoo 18 - Odoo  Slides
How to create Record rules in odoo 18 - Odoo Slides
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-17-2025 .pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-17-2025  .pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-17-2025  .pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-17-2025 .pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Basic principles involved in the traditional systems of medicine, Chapter 7,...
Basic principles involved in the traditional systems of medicine,  Chapter 7,...Basic principles involved in the traditional systems of medicine,  Chapter 7,...
Basic principles involved in the traditional systems of medicine, Chapter 7,...
ARUN KUMAR
 
Aerospace Engineering Homework Help Guide – Expert Support for Academic Success
Aerospace Engineering Homework Help Guide – Expert Support for Academic SuccessAerospace Engineering Homework Help Guide – Expert Support for Academic Success
Aerospace Engineering Homework Help Guide – Expert Support for Academic Success
online college homework help
 
From Hype to Moat: Building a Defensible AI Strategy
From Hype to Moat: Building a Defensible AI StrategyFrom Hype to Moat: Building a Defensible AI Strategy
From Hype to Moat: Building a Defensible AI Strategy
victoriamangiantini1
 
Capitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptxCapitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptx
CapitolTechU
 
Module I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good GovernanceModule I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good Governance
srkmcop0027
 
he Grant Preparation Playbook: Building a System for Grant Success
he Grant Preparation Playbook: Building a System for Grant Successhe Grant Preparation Playbook: Building a System for Grant Success
he Grant Preparation Playbook: Building a System for Grant Success
TechSoup
 
How to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo SlidesHow to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo Slides
Celine George
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
the dynastic history of Paramaras of Malwa
the dynastic history of Paramaras of Malwathe dynastic history of Paramaras of Malwa
the dynastic history of Paramaras of Malwa
PrachiSontakke5
 
How to Manage Customer Info from POS in Odoo 18
How to Manage Customer Info from POS in Odoo 18How to Manage Customer Info from POS in Odoo 18
How to Manage Customer Info from POS in Odoo 18
Celine George
 
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
online college homework help
 
The Reproductive System of Insects: An Overview.pptx
The Reproductive System of Insects: An Overview.pptxThe Reproductive System of Insects: An Overview.pptx
The Reproductive System of Insects: An Overview.pptx
Arshad Shaikh
 
Dastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptxDastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptx
omorfaruqkazi
 
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
UPSA JUDGEMENT.pdfCopyright Infringement: High Court Rules against UPSA: A Wa...
businessweekghana
 
Ethics and evidence based practice in nursing education
Ethics and evidence based practice in nursing educationEthics and evidence based practice in nursing education
Ethics and evidence based practice in nursing education
ALEENAABRAHAM11
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
How to create Record rules in odoo 18 - Odoo Slides
How to create Record rules in odoo 18 - Odoo  SlidesHow to create Record rules in odoo 18 - Odoo  Slides
How to create Record rules in odoo 18 - Odoo Slides
Celine George
 
Basic principles involved in the traditional systems of medicine, Chapter 7,...
Basic principles involved in the traditional systems of medicine,  Chapter 7,...Basic principles involved in the traditional systems of medicine,  Chapter 7,...
Basic principles involved in the traditional systems of medicine, Chapter 7,...
ARUN KUMAR
 
Aerospace Engineering Homework Help Guide – Expert Support for Academic Success
Aerospace Engineering Homework Help Guide – Expert Support for Academic SuccessAerospace Engineering Homework Help Guide – Expert Support for Academic Success
Aerospace Engineering Homework Help Guide – Expert Support for Academic Success
online college homework help
 

Basics of data structure

  • 2. DefinitionDefinition Data Structure is a way of collecting and organizingData Structure is a way of collecting and organizing data in such a way that we can perform operations ondata in such a way that we can perform operations on these data in an effective way. Data Structures isthese data in an effective way. Data Structures is about rendering data elements in terms of someabout rendering data elements in terms of some relationship, for better organization and storage.relationship, for better organization and storage. Data structures can implement one or moreData structures can implement one or more particular abstract data types (ADT), which are the meansparticular abstract data types (ADT), which are the means of specifying the contract of operations andof specifying the contract of operations and their complexity.their complexity. Design and Analysis of Algorithms Chapter 2.2 2
  • 3. 3 Abstract Data Type (ADT)Abstract Data Type (ADT) • Mathematical description of an object with setMathematical description of an object with set of operations on the object. Useful buildingof operations on the object. Useful building block.block. AlgorithmAlgorithm • A high level, language independent, descriptionA high level, language independent, description of a step-by-step processof a step-by-step process Data structureData structure • A specific family of algorithms forA specific family of algorithms for implementing an abstract data type.implementing an abstract data type. Implementation of data structureImplementation of data structure • A specific implementation in a specific languageA specific implementation in a specific language TerminologyTerminology
  • 4. 4 TerminologyTerminology DataData Data refers to value or set of values.Data refers to value or set of values. e.g.Marks obtained by the students.e.g.Marks obtained by the students. Data typeData type data type is a classification identifying one of variousdata type is a classification identifying one of various typestypes of data, such as floating-point, integer, or Boolean, thatof data, such as floating-point, integer, or Boolean, that determines the possible values for that type; thedetermines the possible values for that type; the operationsoperations that can be done on values of that type; and the waythat can be done on values of that type; and the way valuesvalues of that type can be storedof that type can be stored
  • 5. 5 TerminologyTerminology Primitive data type:Primitive data type: These are basic data types that are provided by theThese are basic data types that are provided by the programming language with built-in support. These dataprogramming language with built-in support. These data types are native to the language. This data type istypes are native to the language. This data type is supported by machine directlysupported by machine directly VariableVariable Variable is a symbolic name given to some known orVariable is a symbolic name given to some known or unknown quantity or information, for the purpose ofunknown quantity or information, for the purpose of allowing the name to be used independently of theallowing the name to be used independently of the information it represents.information it represents.
  • 6. 6 RecordRecord Collection of related data items is known as record. TheCollection of related data items is known as record. The elements of records are usually Called fields or memberselements of records are usually Called fields or members .. Records are distinguished from arrays by the fact thatRecords are distinguished from arrays by the fact that their number of fields is typically fixed, each field has atheir number of fields is typically fixed, each field has a name, and that each field may have a different type.name, and that each field may have a different type. ProgramProgram A sequence of instructions that a computer canA sequence of instructions that a computer can interpret and execute.interpret and execute. TerminologyTerminology
  • 7. 7 AA stack is anstack is an abstract data typeabstract data type supporting push, popsupporting push, pop and isEmpty operationsand isEmpty operations A stackA stack data structuredata structure could use an array, a linked list,could use an array, a linked list, or anything that can hold dataor anything that can hold data One stackOne stack implementationimplementation is java.util.Stack; another isis java.util.Stack; another is java.util.LinkedListjava.util.LinkedList Terminology examplesTerminology examples
  • 8. 8 AbstractAbstract PseudocodePseudocode AlgorithmAlgorithm • A sequence of high-level,A sequence of high-level, language independentlanguage independent operations, which mayoperations, which may act upon an abstractedact upon an abstracted view of data.view of data. Abstract Data Type (ADT)Abstract Data Type (ADT) • A mathematicalA mathematical description of an objectdescription of an object and the set of operationsand the set of operations on the object.on the object. AbstractAbstract PseudocodePseudocode AlgorithmAlgorithm • A sequence of high-level,A sequence of high-level, language independentlanguage independent operations, which mayoperations, which may act upon an abstractedact upon an abstracted view of data.view of data. Abstract Data Type (ADT)Abstract Data Type (ADT) • A mathematicalA mathematical description of an objectdescription of an object and the set of operationsand the set of operations on the object.on the object. ConceptsConcepts vs.vs. MechanismsMechanisms
  翻译: