SlideShare a Scribd company logo
2
Most read
6
Most read
8
Most read
INTRODUCTION TO
DATA STRUCTURE AND
ALGORITHMS
Mrs.S.SUMATHI,
Assistant Professor, Dept. of IT,
EMG Yadava Women’s College, Madurai – 14.
Sumathi.emg@gmail.com
Outline
 Introduction
 What is Data?
 What is Data Structure?
 Types of Data Structure
 Need for Data Structure
 Data Structure Operations
 Real Life Examples
 What is Algorithm?
 What is Good Algorithm?
 A Simple Algorithm – Example
 Algorithm Development Basics
What is Data?
Dictionary Definition:
The Quantities, Characters or Symbols on which operations are
performed by a computer, which may be stored and transmitted in
the form of electrical signals and recorded on magnetic, optical or
mechanical recording media.
Example: c = a + b
MY DATA
Types of data
 Data
 A collection of facts from which conclusion may be drawn
 e.g. Data: Temperature 35°C; Conclusion: It is hot.
 Types of data
 Textual: For example, your name (Meenakshi)
 Numeric: For example, your ID (090254)
 Audio: For example, your voice
 Video: For example, your voice and picture
 (...)
WHEN DATA BECOMES INFORMATION?
DATA : INAM SI EMAN YM
INFORMATION : MY NAME IS MANI
THIS MEANINGFUL OR PROCESSED
DATA IS CALLED INFORMATION
What is data structure?
 A particular way of storing and organizing data in a computer so that it can be used
efficiently and effectively.
 Data structure is the systematic way to organize data so that it can be used
efficiently.
 Example : ARRAY
 A group of similar data elements grouped together under one name.
 For example, an array of integers and Storing Strings.
There are many, but we named a few. We’ll learn these
data structures in great detail!
Array
Linked List
Tree
Queue Stack
Types of data structures
The Need for Data Structures
 Goal: to organize data
 Criteria: to facilitate efficient
 storage of data
 retrieval of data
 manipulation of data
 Design Issue:
 select and design appropriate data types
(This is the main motivation to learn and understand data
structures)
Data Structure Operations
(Demonstrate using class room example!)
 Traversing
 Accessing each data element exactly once so that certain
items in the data may be processed
 Searching
 Finding the location of the data element (key) in the
structure
 Insertion
 Adding a new data element to the structure
Data Structure Operations (cont.)
 Deletion
 Removing a data element from the structure
 Sorting
 Arrange the data elements in a logical order
(ascending/descending)
 Merging
 Combining data elements from two or more data structures
into one
REAL LIFE EXAMPLES
Did You Know?
Stack Data Structure is used in implementing Redo and Undo Features.
UNDO STACK REDO STACK
A
B
C
C
Top
Ctrl + Z
Ctrl + Y
Which Data Structure is used to store an image
as a Bitmap?
ARRAYS
Bitmap is a collection of bytes that represent a Graphic image
or a picture.
Storing the friendship information on a social
networking site.
Malathi
Meera Mala
Meena
Guess: Which Data Structure is used to store this information?
GRAPHS
What is algorithm?
 A finite set of instructions which accomplish a particular
task
 A method or process to solve a problem
 Transforms input of a problem to output
Algorithm = Input + Process + Output
Algorithm development is an art – it needs practice,
practice and only practice!
What is a good algorithm?
 It must be correct
 It must be finite (in terms of time and size)
 It must terminate
 It must be unambiguous
 Which step is next?
 It must be space and time efficient
A program is an instance of an algorithm, written in
some specific programming language
A simple algorithm
 Problem: Find maximum of a, b, c
 Algorithm
 Input = a, b, c
 Output = max
 Process
o Let max = a
o If b > max then
max = b
o If c > max then
max = c
o Display max
 Output = max
Algorithm development: Basics
 Clearly identify:
 what output is required?
 what is the input?
 What steps are required to transform input into
output
o The most crucial bit
o Needs problem solving skills
o A problem can be solved in many different ways
o Which solution, amongst the different possible
solutions is optimal?
Conclusion
Data Structure is useful in day to day life and are using
them more frequently that is why it is so hot subject in
Information Technology Industry.
Data Structure and Algorithms

More Related Content

PPTX
Introduction to data structure and algorithms
PPT
DATA STRUCTURE AND ALGORITHMS
PPT
Introduction to data structure
DOCX
Data Structure Notes unit 1.docx
PPTX
Data structure and algorithm
PPTX
Data Structure and Algorithms
PPT
Data Structures and Algorithm Analysis
PDF
Data structures chapter 1
Introduction to data structure and algorithms
DATA STRUCTURE AND ALGORITHMS
Introduction to data structure
Data Structure Notes unit 1.docx
Data structure and algorithm
Data Structure and Algorithms
Data Structures and Algorithm Analysis
Data structures chapter 1

What's hot (20)

PPTX
Data Structures and Algorithm - Module 1.pptx
PPT
data structure
PPT
Joins in SQL
PDF
Array data structure
PPTX
Arrays in Data Structure and Algorithm
PPTX
STRUCTURE OF SQL QUERIES
PPTX
Linked list
PPTX
linked list in data structure
PPT
358 33 powerpoint-slides_4-introduction-data-structures_chapter-4
PPTX
Arrays In C++
PPTX
arrays of structures
PPT
DATA STRUCTURES
PPTX
Introduction to data structure
PPTX
Relational model
PPTX
Searching and sorting
PPT
Stack Data Structure & It's Application
PPT
Data structure
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
PPTX
Data Structures - Lecture 7 [Linked List]
Data Structures and Algorithm - Module 1.pptx
data structure
Joins in SQL
Array data structure
Arrays in Data Structure and Algorithm
STRUCTURE OF SQL QUERIES
Linked list
linked list in data structure
358 33 powerpoint-slides_4-introduction-data-structures_chapter-4
Arrays In C++
arrays of structures
DATA STRUCTURES
Introduction to data structure
Relational model
Searching and sorting
Stack Data Structure & It's Application
Data structure
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
Data Structures - Lecture 7 [Linked List]
Ad

Similar to Data Structure and Algorithms (20)

PPTX
Data Structures and Algorithms are function in various method
PPTX
EE-232-LEC-01 Data_structures.pptx
PDF
Data structures and algorithms Module-1.pdf
PDF
Lesson 1 - Data Structures and Algorithms Overview.pdf
PDF
Unit I Data structure and algorithms notes
PDF
Chapter 1 Introduction to Data Structures and Algorithms.pdf
PPT
Chapter 1( intro & overview)
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
DSA Ch1(Introduction) [Recovered].pptx
DOCX
Data structure and algorithm.
PPTX
datastructuresandalgorithm-module1-230307012644-4c895c84.pptx
PPTX
1. Introduction to Data Structure.pptx
PDF
DSA 1- Introduction.pdf
PPTX
Algorithms and Data Structures
PPTX
lecture1-220221114413Algorithims and data structures.pptx
PPTX
lecture1-2202211144eeeee24444444413.pptx
PPT
Data Structures
PPTX
1-Introduction to Data Structures beginner.pptx
PPTX
Introduction to data structures - Explore the basics
Data Structures and Algorithms are function in various method
EE-232-LEC-01 Data_structures.pptx
Data structures and algorithms Module-1.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdf
Unit I Data structure and algorithms notes
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1( intro & overview)
Data_structures_and_algorithm_Lec_1.pptx
Data_structures_and_algorithm_Lec_1.pptx
DSA Ch1(Introduction) [Recovered].pptx
Data structure and algorithm.
datastructuresandalgorithm-module1-230307012644-4c895c84.pptx
1. Introduction to Data Structure.pptx
DSA 1- Introduction.pdf
Algorithms and Data Structures
lecture1-220221114413Algorithims and data structures.pptx
lecture1-2202211144eeeee24444444413.pptx
Data Structures
1-Introduction to Data Structures beginner.pptx
Introduction to data structures - Explore the basics
Ad

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Types and Its function , kingdom of life
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Cell Structure & Organelles in detailed.
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 Đ...
PPTX
Pharma ospi slides which help in ospi learning
PDF
Pre independence Education in Inndia.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharmacology of Heart Failure /Pharmacotherapy of CHF
human mycosis Human fungal infections are called human mycosis..pptx
TR - Agricultural Crops Production NC III.pdf
GDM (1) (1).pptx small presentation for students
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPH.pptx obstetrics and gynecology in nursing
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Cell Structure & Organelles in detailed.
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pharma ospi slides which help in ospi learning
Pre independence Education in Inndia.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Data Structure and Algorithms

  • 1. INTRODUCTION TO DATA STRUCTURE AND ALGORITHMS Mrs.S.SUMATHI, Assistant Professor, Dept. of IT, EMG Yadava Women’s College, Madurai – 14. Sumathi.emg@gmail.com
  • 2. Outline  Introduction  What is Data?  What is Data Structure?  Types of Data Structure  Need for Data Structure  Data Structure Operations  Real Life Examples  What is Algorithm?  What is Good Algorithm?  A Simple Algorithm – Example  Algorithm Development Basics
  • 3. What is Data? Dictionary Definition: The Quantities, Characters or Symbols on which operations are performed by a computer, which may be stored and transmitted in the form of electrical signals and recorded on magnetic, optical or mechanical recording media. Example: c = a + b MY DATA
  • 4. Types of data  Data  A collection of facts from which conclusion may be drawn  e.g. Data: Temperature 35°C; Conclusion: It is hot.  Types of data  Textual: For example, your name (Meenakshi)  Numeric: For example, your ID (090254)  Audio: For example, your voice  Video: For example, your voice and picture  (...)
  • 5. WHEN DATA BECOMES INFORMATION? DATA : INAM SI EMAN YM INFORMATION : MY NAME IS MANI THIS MEANINGFUL OR PROCESSED DATA IS CALLED INFORMATION
  • 6. What is data structure?  A particular way of storing and organizing data in a computer so that it can be used efficiently and effectively.  Data structure is the systematic way to organize data so that it can be used efficiently.  Example : ARRAY  A group of similar data elements grouped together under one name.  For example, an array of integers and Storing Strings.
  • 7. There are many, but we named a few. We’ll learn these data structures in great detail! Array Linked List Tree Queue Stack Types of data structures
  • 8. The Need for Data Structures  Goal: to organize data  Criteria: to facilitate efficient  storage of data  retrieval of data  manipulation of data  Design Issue:  select and design appropriate data types (This is the main motivation to learn and understand data structures)
  • 9. Data Structure Operations (Demonstrate using class room example!)  Traversing  Accessing each data element exactly once so that certain items in the data may be processed  Searching  Finding the location of the data element (key) in the structure  Insertion  Adding a new data element to the structure
  • 10. Data Structure Operations (cont.)  Deletion  Removing a data element from the structure  Sorting  Arrange the data elements in a logical order (ascending/descending)  Merging  Combining data elements from two or more data structures into one
  • 12. Did You Know? Stack Data Structure is used in implementing Redo and Undo Features. UNDO STACK REDO STACK A B C C Top Ctrl + Z Ctrl + Y
  • 13. Which Data Structure is used to store an image as a Bitmap? ARRAYS
  • 14. Bitmap is a collection of bytes that represent a Graphic image or a picture.
  • 15. Storing the friendship information on a social networking site. Malathi Meera Mala Meena Guess: Which Data Structure is used to store this information?
  • 17. What is algorithm?  A finite set of instructions which accomplish a particular task  A method or process to solve a problem  Transforms input of a problem to output Algorithm = Input + Process + Output Algorithm development is an art – it needs practice, practice and only practice!
  • 18. What is a good algorithm?  It must be correct  It must be finite (in terms of time and size)  It must terminate  It must be unambiguous  Which step is next?  It must be space and time efficient A program is an instance of an algorithm, written in some specific programming language
  • 19. A simple algorithm  Problem: Find maximum of a, b, c  Algorithm  Input = a, b, c  Output = max  Process o Let max = a o If b > max then max = b o If c > max then max = c o Display max  Output = max
  • 20. Algorithm development: Basics  Clearly identify:  what output is required?  what is the input?  What steps are required to transform input into output o The most crucial bit o Needs problem solving skills o A problem can be solved in many different ways o Which solution, amongst the different possible solutions is optimal?
  • 21. Conclusion Data Structure is useful in day to day life and are using them more frequently that is why it is so hot subject in Information Technology Industry.