SlideShare a Scribd company logo
1 of 13
Download to read offline
Basic Concepts of
Data Structures and Algorithms
New Wave Analytica
We Find Solutions in Data
Outline
• What is Data Structures?
• Classification of Data Structure According to Type, Elements, Size and Relationship
• What is an Abstract Data Type?
• Abstract Data Type Groups
• Algorithm
• Basic Categories of Algorithm
• Algorithm Analysis
• Asymptotic analysis
New Wave Analytica
What is Data Structure?
•In computer science, a data structure is a particular way of storing and organizing
data in a computer so that it can be used efficiently.
•Data Structures are generally based on the ability of a computer to fetch (retrieve)
and store data at any place in its memory, specified by an address – a bit string that
can be itself stored in memory and manipulated by the program.
New Wave Analytica
Classification of
Data Structure According to Type
•Primitive – these are basic data structures and are directly operated upon machine
instructions, e.g., integer, character.
•Non-primitive – these are derived from primitive data structures, e.g., array.
New Wave Analytica
Classification of
Data Structure According to Elements
•Homogeneous – in this data structure, all elements are of the same type, e.g. array.
•Heterogeneous – in this data structure, elements are of different types, e.g., structure.
New Wave Analytica
Classification of
Data Structure According to Size
•Static – the size of this data structure cannot be changed after the initial allocation, like
matrices.
•Dynamic – the size can change dynamically, like in lists.
New Wave Analytica
Classification of
Data Structure According to Relationship
•Linear – this data structure maintains a linear relationship between its elements, e.g.,
array.
•Non-linear – this data structure does not maintain any linear relationship between its
elements, e.g., in a tree.
New Wave Analytica
What is an Abstract Data Types?
•It is a keyword of a programming language that specifies the amount of memory
needed to store data and the kind of data that will be stored in that memory
location.
•The number of bytes reserved for an ADT varies, depending on the programming
language used to write the program and the type of computer used to compile the
program.
New Wave Analytica
Abstract Data Type Groups
•Integer
•Floating-point
•Character
•Boolean
New Wave Analytica
Algorithm
•An algorithm is a step-by-step procedure, which defines a set of instructions to be
executed in a certain order to get the desired output. Algorithms are generally created
independent of underlying languages, i.e. an algorithm can be implemented in more
than one programming language.
New Wave Analytica
Basic Categories of Algorithm
•Search − Algorithm to search an item in a data structure.
•Sort − Algorithm to sort items in a certain order.
•Insert − Algorithm to insert an item in a data structure.
•Update − Algorithm to update an existing item in a data structure.
•Delete − Algorithm to delete an existing item from a data structure.
New Wave Analytica
Algorithm Analysis
The efficiency of an algorithm can be analyzed at two different stages, before
implementation, and after implementation. They are the following
• A Priori Analysis − This is a theoretical analysis of an Efficiency of an algorithm is measured
by assuming that all other factors, for example, processor speed, are constant and have no
effect on the implementation.
• A Posterior Analysis − This is an empirical analysis of an algorithm. The selected algorithm
is implemented using a programming language. This is then executed on target computer In
this analysis, actual statistics like running time and space required, are collected.
New Wave Analytica
Asymptotic Analysis
• Asymptotic analysis of an algorithm refers to defining the mathematical
foundation/framing of its run-time performance. Using asymptotic analysis, we can very
well conclude the best case, average case, and worst-case scenario of an algorithm.
• The time required by an algorithm falls under the following types:
• Best Case − Minimum time required for program
• Average Case − Average time required for program
• Worst Case − Maximum time required for program
New Wave Analytica

More Related Content

What's hot

13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
koolkampus
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
FELIX75
 
Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulation
De La Salle University-Manila
 
8 query processing and optimization
8 query processing and optimization8 query processing and optimization
8 query processing and optimization
Kumar
 
Intro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve CulmanIntro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve Culman
Noam Ross
 

What's hot (19)

2. System Simulation modeling unit i
2. System Simulation modeling unit i2. System Simulation modeling unit i
2. System Simulation modeling unit i
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
 
Information Extraction
Information ExtractionInformation Extraction
Information Extraction
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
 
Query processing-and-optimization
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimization
 
Query trees
Query treesQuery trees
Query trees
 
Reverse Engineering Approach for System Condition Monitoring under Big Data a...
Reverse Engineering Approach for System Condition Monitoring under Big Data a...Reverse Engineering Approach for System Condition Monitoring under Big Data a...
Reverse Engineering Approach for System Condition Monitoring under Big Data a...
 
Algorithms for External Memory Sorting
Algorithms for External Memory SortingAlgorithms for External Memory Sorting
Algorithms for External Memory Sorting
 
Standard template library
Standard template libraryStandard template library
Standard template library
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 
Data operatons & searching and sorting algorithms
Data operatons & searching and sorting algorithmsData operatons & searching and sorting algorithms
Data operatons & searching and sorting algorithms
 
83341 ch25 jacobsen
83341 ch25 jacobsen83341 ch25 jacobsen
83341 ch25 jacobsen
 
Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulation
 
8 query processing and optimization
8 query processing and optimization8 query processing and optimization
8 query processing and optimization
 
Analytics services 2013
Analytics services 2013Analytics services 2013
Analytics services 2013
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation software
 
Intro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve CulmanIntro to plyr for Davis R Users' Group, by Steve Culman
Intro to plyr for Davis R Users' Group, by Steve Culman
 
Query evaluation and optimization
Query evaluation and optimizationQuery evaluation and optimization
Query evaluation and optimization
 
Fault prediction using logistic regression (Python)
Fault prediction using logistic regression (Python)Fault prediction using logistic regression (Python)
Fault prediction using logistic regression (Python)
 

Similar to Basic concepts of data structures and algorithms

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
 
Unit II_Searching and Sorting Algorithms.ppt
Unit II_Searching and Sorting Algorithms.pptUnit II_Searching and Sorting Algorithms.ppt
Unit II_Searching and Sorting Algorithms.ppt
HODElex
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
ArifKamal36
 

Similar to Basic concepts of data structures and algorithms (20)

Data structures and algorithms Module-1.pdf
Data structures and algorithms Module-1.pdfData structures and algorithms Module-1.pdf
Data structures and algorithms Module-1.pdf
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
Unit 1 abstract data types
Unit 1 abstract data typesUnit 1 abstract data types
Unit 1 abstract data types
 
Obstructive jaundice is a medical condition characterized by the yellowing of...
Obstructive jaundice is a medical condition characterized by the yellowing of...Obstructive jaundice is a medical condition characterized by the yellowing of...
Obstructive jaundice is a medical condition characterized by the yellowing of...
 
ADS Introduction
ADS IntroductionADS Introduction
ADS Introduction
 
U nit i data structure-converted
U nit   i data structure-convertedU nit   i data structure-converted
U nit i data structure-converted
 
Intro to Data Structure & Algorithms
Intro to Data Structure & AlgorithmsIntro to Data Structure & Algorithms
Intro to Data Structure & Algorithms
 
Algorithms and Data Structures
Algorithms and Data StructuresAlgorithms and Data Structures
Algorithms and 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.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Basic of Data Structure - Data Structure - Notes
Basic of Data Structure - Data Structure - NotesBasic of Data Structure - Data Structure - Notes
Basic of Data Structure - Data Structure - Notes
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance
 
Unit II_Searching and Sorting Algorithms.ppt
Unit II_Searching and Sorting Algorithms.pptUnit II_Searching and Sorting Algorithms.ppt
Unit II_Searching and Sorting Algorithms.ppt
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
RAJAT PROJECT.pptx
RAJAT PROJECT.pptxRAJAT PROJECT.pptx
RAJAT PROJECT.pptx
 
introduction to Statistical Theory.pptx
 introduction to Statistical Theory.pptx introduction to Statistical Theory.pptx
introduction to Statistical Theory.pptx
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.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
 

Recently uploaded

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 

Basic concepts of data structures and algorithms

  • 1. Basic Concepts of Data Structures and Algorithms New Wave Analytica We Find Solutions in Data
  • 2. Outline • What is Data Structures? • Classification of Data Structure According to Type, Elements, Size and Relationship • What is an Abstract Data Type? • Abstract Data Type Groups • Algorithm • Basic Categories of Algorithm • Algorithm Analysis • Asymptotic analysis New Wave Analytica
  • 3. What is Data Structure? •In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently. •Data Structures are generally based on the ability of a computer to fetch (retrieve) and store data at any place in its memory, specified by an address – a bit string that can be itself stored in memory and manipulated by the program. New Wave Analytica
  • 4. Classification of Data Structure According to Type •Primitive – these are basic data structures and are directly operated upon machine instructions, e.g., integer, character. •Non-primitive – these are derived from primitive data structures, e.g., array. New Wave Analytica
  • 5. Classification of Data Structure According to Elements •Homogeneous – in this data structure, all elements are of the same type, e.g. array. •Heterogeneous – in this data structure, elements are of different types, e.g., structure. New Wave Analytica
  • 6. Classification of Data Structure According to Size •Static – the size of this data structure cannot be changed after the initial allocation, like matrices. •Dynamic – the size can change dynamically, like in lists. New Wave Analytica
  • 7. Classification of Data Structure According to Relationship •Linear – this data structure maintains a linear relationship between its elements, e.g., array. •Non-linear – this data structure does not maintain any linear relationship between its elements, e.g., in a tree. New Wave Analytica
  • 8. What is an Abstract Data Types? •It is a keyword of a programming language that specifies the amount of memory needed to store data and the kind of data that will be stored in that memory location. •The number of bytes reserved for an ADT varies, depending on the programming language used to write the program and the type of computer used to compile the program. New Wave Analytica
  • 9. Abstract Data Type Groups •Integer •Floating-point •Character •Boolean New Wave Analytica
  • 10. Algorithm •An algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get the desired output. Algorithms are generally created independent of underlying languages, i.e. an algorithm can be implemented in more than one programming language. New Wave Analytica
  • 11. Basic Categories of Algorithm •Search − Algorithm to search an item in a data structure. •Sort − Algorithm to sort items in a certain order. •Insert − Algorithm to insert an item in a data structure. •Update − Algorithm to update an existing item in a data structure. •Delete − Algorithm to delete an existing item from a data structure. New Wave Analytica
  • 12. Algorithm Analysis The efficiency of an algorithm can be analyzed at two different stages, before implementation, and after implementation. They are the following • A Priori Analysis − This is a theoretical analysis of an Efficiency of an algorithm is measured by assuming that all other factors, for example, processor speed, are constant and have no effect on the implementation. • A Posterior Analysis − This is an empirical analysis of an algorithm. The selected algorithm is implemented using a programming language. This is then executed on target computer In this analysis, actual statistics like running time and space required, are collected. New Wave Analytica
  • 13. Asymptotic Analysis • Asymptotic analysis of an algorithm refers to defining the mathematical foundation/framing of its run-time performance. Using asymptotic analysis, we can very well conclude the best case, average case, and worst-case scenario of an algorithm. • The time required by an algorithm falls under the following types: • Best Case − Minimum time required for program • Average Case − Average time required for program • Worst Case − Maximum time required for program New Wave Analytica