SlideShare a Scribd company logo
‫ا‬ ِ‫ن‬َ‫م‬ْ‫ح‬‫ه‬‫الر‬ ِ ‫ه‬
‫اَّلل‬ ِ‫م‬ْ‫س‬ِ‫ب‬
‫يم‬ ِ‫ح‬‫ه‬‫لر‬
Data Structures &
Algorithms
Lecture No. 1
Azhar Iqbal
Motivation
Data Structures and Algorithms Knowledge
give us the ability to improve our solution to
the problem and the ability to write much
better and efficient code. Thus, learning
Data Structures and Algorithms can be a
major learning curve for any computer
science student
Data Structure
Data Structure can be defined as the group of data elements
which provides an efficient way of storing and organizing data in
the computer so that it can be used efficiently.
Algorithm
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 or to solve a particular problem.. An algorithm can be
implemented in more than one programming language.
Learning data structures and algorithms allow us to write efficient
and optimized computer programs.
Some Data Structure Algorithms
Searching: Algorithm to search an item in a data structure.
• Linear Search
• Binary Search
Sorting: Algorithm to sort items in a certain order.
• Selection Sort
• Bubble Sort
• Merge Sort
Insert: Algorithm to insert 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
Data Structure Types
1. Linear Data Structure
2. Non-Linear Data Structure
Types
2. Non-Linear Data Structure
Non-linear Data Structure: Data structures
where data elements are not arranged
sequentially or linearly are called non-linear
data structures.
Examples of non-linear data structures are:
 Tree
 BST (Binary Search Tree)
 Graphs
1. Linear Data Structure
A Linear data structure have data elements
arranged in sequential manner and each
member element is connected to its previous
and next element. Such data structures are
easy to implement as computer memory is
also sequential.
Examples of linear data structures are:
 Array
 Linked List
 Queue
 Stack
In linear data structure, data elements are sequentially connected and each element is traversable through a single
run. In non-linear data structure, data elements are hierarchically connected and are present at various levels.
Thank You
Any Question…?

More Related Content

PPTX
Data structures Lecture no. 2
PPTX
Data structures Lecture no.3
PPTX
Data structures
PPT
Data struters
PPSX
Data Structure # vpmp polytechnic
PPTX
PPTX
Types of datastructures
PPT
Elementary data organisation
Data structures Lecture no. 2
Data structures Lecture no.3
Data structures
Data struters
Data Structure # vpmp polytechnic
Types of datastructures
Elementary data organisation

What's hot (20)

PPSX
Lecture 1
PPTX
Data structure
PPTX
introduction to Data Structure and classification
PPTX
Introduction To Data Structures.
PDF
Data structure
PPT
Data structures and Alogarithims
PPTX
Introduction to data structures (ss)
PPT
Introduction to data structure
PPT
Lecture 1 data structures and algorithms
PPTX
Over view of data structures
PPTX
Introduction to data structure
PPTX
Data Structure - Elementary Data Organization
PPTX
Mca ii dfs u-1 introduction to data structure
PPTX
Data structure and its types.
PPT
Abstract data types (adt) intro to data structure part 2
PPTX
Introduction to data structure
PPTX
Computer Science-Data Structures :Abstract DataType (ADT)
PPT
Chapter 1( intro & overview)
PDF
PPTX
Data structure (basics)
Lecture 1
Data structure
introduction to Data Structure and classification
Introduction To Data Structures.
Data structure
Data structures and Alogarithims
Introduction to data structures (ss)
Introduction to data structure
Lecture 1 data structures and algorithms
Over view of data structures
Introduction to data structure
Data Structure - Elementary Data Organization
Mca ii dfs u-1 introduction to data structure
Data structure and its types.
Abstract data types (adt) intro to data structure part 2
Introduction to data structure
Computer Science-Data Structures :Abstract DataType (ADT)
Chapter 1( intro & overview)
Data structure (basics)
Ad

Similar to Data structures lectures no 1 (20)

PDF
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
PPTX
Lecture 2 Data Structure Introduction
PPTX
dsa.pptx
PPTX
introduction about data structure_i.pptx
PDF
Data Structure Introduction.pdfssssssssssss
PPTX
Data Structure 1..Vary Basic introduction about DSA using c++.pptx
PPTX
DATA STRUCTURE AND COMPUTER ALGORITHMS LECTURE 1
PDF
unit 1 ds.INTRODUCTION TO DATA STRUCTURES
PPTX
Introduction to Data Structures and their importance
PDF
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
PPTX
Introduction to Data Structures
PPTX
CHAPTER-1- Introduction to data structure.pptx
PPTX
DS Module 1.pptx
PPT
Lect 1-2 Zaheer Abbas
PPTX
Chapter 1 _edited.pptx.software engineering
PPTX
DS Module 1.pptx
PPTX
Data Structure Introduction chapter 1
PPTX
Lecture 1. Data Structure & Algorithm.pptx
PPT
Lect 1-2
PDF
Unit.1 Introduction to Data Structuresres
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
Lecture 2 Data Structure Introduction
dsa.pptx
introduction about data structure_i.pptx
Data Structure Introduction.pdfssssssssssss
Data Structure 1..Vary Basic introduction about DSA using c++.pptx
DATA STRUCTURE AND COMPUTER ALGORITHMS LECTURE 1
unit 1 ds.INTRODUCTION TO DATA STRUCTURES
Introduction to Data Structures and their importance
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
Introduction to Data Structures
CHAPTER-1- Introduction to data structure.pptx
DS Module 1.pptx
Lect 1-2 Zaheer Abbas
Chapter 1 _edited.pptx.software engineering
DS Module 1.pptx
Data Structure Introduction chapter 1
Lecture 1. Data Structure & Algorithm.pptx
Lect 1-2
Unit.1 Introduction to Data Structuresres
Ad

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Pre independence Education in Inndia.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Cell Types and Its function , kingdom of life
O5-L3 Freight Transport Ops (International) V1.pdf
Institutional Correction lecture only . . .
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pre independence Education in Inndia.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
GDM (1) (1).pptx small presentation for students
Supply Chain Operations Speaking Notes -ICLT Program
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
102 student loan defaulters named and shamed – Is someone you know on the list?
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Cell Types and Its function , kingdom of life

Data structures lectures no 1

  • 1. ‫ا‬ ِ‫ن‬َ‫م‬ْ‫ح‬‫ه‬‫الر‬ ِ ‫ه‬ ‫اَّلل‬ ِ‫م‬ْ‫س‬ِ‫ب‬ ‫يم‬ ِ‫ح‬‫ه‬‫لر‬
  • 3. Motivation Data Structures and Algorithms Knowledge give us the ability to improve our solution to the problem and the ability to write much better and efficient code. Thus, learning Data Structures and Algorithms can be a major learning curve for any computer science student
  • 4. Data Structure Data Structure can be defined as the group of data elements which provides an efficient way of storing and organizing data in the computer so that it can be used efficiently. Algorithm 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 or to solve a particular problem.. An algorithm can be implemented in more than one programming language. Learning data structures and algorithms allow us to write efficient and optimized computer programs.
  • 5. Some Data Structure Algorithms Searching: Algorithm to search an item in a data structure. • Linear Search • Binary Search Sorting: Algorithm to sort items in a certain order. • Selection Sort • Bubble Sort • Merge Sort Insert: Algorithm to insert 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
  • 6. Data Structure Types 1. Linear Data Structure 2. Non-Linear Data Structure
  • 7. Types 2. Non-Linear Data Structure Non-linear Data Structure: Data structures where data elements are not arranged sequentially or linearly are called non-linear data structures. Examples of non-linear data structures are:  Tree  BST (Binary Search Tree)  Graphs 1. Linear Data Structure A Linear data structure have data elements arranged in sequential manner and each member element is connected to its previous and next element. Such data structures are easy to implement as computer memory is also sequential. Examples of linear data structures are:  Array  Linked List  Queue  Stack In linear data structure, data elements are sequentially connected and each element is traversable through a single run. In non-linear data structure, data elements are hierarchically connected and are present at various levels.