SlideShare a Scribd company logo
B.Sc III Year (IT)
Paper II- Software
Data Structure
Unit I:- Introduction to Data Structure
By :
VIDYA CLASS
Asstt Professor
Department of Computer Science & IT
1
Contents
• What is Data Structure
• Types of Data Structure
• Operations of Data Structure
• Abstract Data structure
• Analysis of Algorithm
• Characteristics of Algorithm
• Criteria of Algorithm Analysis
• Time Complexity
• Space Complexity
• Concept of List and array
2
What is Data Structure
• A data structure is a particular way of organizing data in a computer
so that it can be used effectively.
• For example, we can store a list of items having the same data-type
using the array data structure.
• The data structures mainly deal with the study of
1. How the data is organized in the memory
2. How efficiently the data can be retrieved and manipulated
3. How efficiently the data can be stored in the memory
4. The possible ways in which different data items are logically related
3
Types of Data Structure
The Data structures can be classified into two parts
1. Primitive
The primitive Data structures are data structures that can be manipulated directly by
machine instructions
Example-Integers , Floating point number, Character, Double, Pointer
2. Non Primitive
The Non-primitive data structures are data structures that cannot be manipulated directly
by machine instructions
Non-primitive data structure are further classified as below
1. Linear Data Structure
Data structure which is arranged in a sequence to represent given information is
called Linear Data Structure
Example-Array ,Queues ,Stacks , Linked list
2. Non-linear Data structure
Data Structure which is arranged in any form is called Non-linear Data structure.
Example-Graph,Tree 4
Operations of Data Structure
• Traversing
Processing each element in the array or list .
• Insertion
Adding a new element to the list.
• Deletion
Removing an element from the list.
• Updation
This allows the user to modify the given set of element in the list.
• Searching
Finding the location of the element with a given value with a given key.
• Sorting
Arranging the data in a proper order that is in ascending or descending.
5
Abstract Data structure
• It focus on the essentials of a data storage structure without knowing
about its implementation.
• Focusing on what it does and ignoring how it does it
• Example-Stacks and Queues
6
Analysis of Algorithm
• The procedure of writing an algorithm is called designing of algorithm.
• Written in human understandable code to solve problem
• For one problem many algorithms can be designed
• Performance of the program depend on algorithm
• Design the algorithm ,it can be analysed then find out the performance of
an algorithm is called analysis of algorithm
7
Characteristics of Algorithm
8
Characteristics of algorithm
1.Input
2.Output
3.Finiteness
4.Definiteness
5.Effectiveness
Criteria of Algorithm Analysis
9
Criteria of Algorithm Analysis
Computation Time(Time complexity)
Storage needs or Requirements(Space complexity
Time Complexity
• The total amount of computer time(compilation time and run time)
needed to complete the execution of an algorithm is called time
complexity
10
Operation Unit of Run Time Remark
Num=10 1 1 for assignment
Sum=sum+10 2 1 for addition and 1 for assignment
SI=PTR/100 4 2 for multiplication,1 for division and 1 for assignment
Num!=0 1 1 for condition
Return Sum 1 1 for return statement
Space Complexity
• The total amount of computer memory needed to complete the execution of
an algorithm is called as space complexity
• S(A)=C +Sa
Where S(A) is space complexity of algorithm
C is constant ,space for fixed component of algorithm A
Sa is the Variable space required for variable component+STACK space
11
Space complexity
Fixed
Variable
Space for code
Space for constants
Space for Fixed variable
Space for problem dependent variables
Space for the STACK in case of recursion
Concept of List and array
• List:-
Grouping or listing of same type of objects or things to identify as a
single unit
• Example-1.List of employees in ‘Sales’ department
2.List of marks obtained by students
• Array:-
Collection of similar elements
• Array is synonym for list
• The lists of the real life are converted into arrays in data structure
12
13
Thank You

More Related Content

PPTX
Lecture 1 and 2
DOCX
Data structure and algorithm.
PDF
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
PDF
Chapter 1 Introduction to Data Structures and Algorithms.pdf
PPTX
Introduction to DS.pptx
PPTX
introduction about data structure_i.pptx
PPT
DATA STRUCTURE AND ALGORITHMS
PDF
Iare ds lecture_notes_2
Lecture 1 and 2
Data structure and algorithm.
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Introduction to DS.pptx
introduction about data structure_i.pptx
DATA STRUCTURE AND ALGORITHMS
Iare ds lecture_notes_2

Similar to b,Sc it data structure.pptx (20)

PPTX
1-Introduction to Data Structures beginner.pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPT
Introduction of C++ Text book UNIT-1 .ppt
PDF
Data Structures & algorithms kdkdkakdkadkd
PPTX
Fundamental data structure
PPTX
UNIT 1 Memory ManagementMemory Management.pptx
PDF
Unit 1 OF DS FOR AI DS BTRCH OF DS FOR AI DS BTRCH .pdf
PPTX
Chapter 1 - Introduction to data structure.pptx
PPTX
Introduction to data structure
PPTX
Introduction to data structure
DOCX
3rd-Sem_CSE_Data-Structures and Applications.docx
PPT
Chapter 1( intro & overview)
PPTX
UNIT 1.pptx
PPTX
Intro to Data Structure & Algorithms
PPTX
DataStructureccvdgddfffdesddsssdssPpt.pptx
PPTX
DataStructurePpt.pptx
PPTX
Introduction to Data Structures and their importance
PPTX
Chapter two data structure and algorthms.pptx
PPTX
Bca ii dfs u-1 introduction to data structure
1-Introduction to Data Structures beginner.pptx
Data_structures_and_algorithm_Lec_1.pptx
Data_structures_and_algorithm_Lec_1.pptx
Introduction of C++ Text book UNIT-1 .ppt
Data Structures & algorithms kdkdkakdkadkd
Fundamental data structure
UNIT 1 Memory ManagementMemory Management.pptx
Unit 1 OF DS FOR AI DS BTRCH OF DS FOR AI DS BTRCH .pdf
Chapter 1 - Introduction to data structure.pptx
Introduction to data structure
Introduction to data structure
3rd-Sem_CSE_Data-Structures and Applications.docx
Chapter 1( intro & overview)
UNIT 1.pptx
Intro to Data Structure & Algorithms
DataStructureccvdgddfffdesddsssdssPpt.pptx
DataStructurePpt.pptx
Introduction to Data Structures and their importance
Chapter two data structure and algorthms.pptx
Bca ii dfs u-1 introduction to data structure
Ad

More from classall (20)

PPT
E-mail used in most important part in daily life
PPTX
Digital Marketing USING IN YOUR LIFE STYLE
PPT
E -COMMERCE.ppt
PPTX
CONTROL STRUCTURE IN VB
PPTX
operat in vb .pptx
PPT
Tally_Tutor_1.ppt
PPTX
networking
PPTX
introduction to visual basic PPT.pptx
PPTX
introduction to e-commerce.pptx
PPT
E-Rdiagram.ppt
PPTX
EDI presentation.pptx
PPTX
control structure in visual basic
PPT
b,Sc it data structure.ppt
PPTX
SAVE WATER SAVE LIFE
PPTX
MS OFFICE
PPTX
MULTIMEDIA
PPTX
GEETA2.pptx
PPTX
GEETA1.pptx
PPTX
GEETA.pptx
PPT
राष्ट्रीय एकता 13.3.18.ppt
E-mail used in most important part in daily life
Digital Marketing USING IN YOUR LIFE STYLE
E -COMMERCE.ppt
CONTROL STRUCTURE IN VB
operat in vb .pptx
Tally_Tutor_1.ppt
networking
introduction to visual basic PPT.pptx
introduction to e-commerce.pptx
E-Rdiagram.ppt
EDI presentation.pptx
control structure in visual basic
b,Sc it data structure.ppt
SAVE WATER SAVE LIFE
MS OFFICE
MULTIMEDIA
GEETA2.pptx
GEETA1.pptx
GEETA.pptx
राष्ट्रीय एकता 13.3.18.ppt
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Lesson notes of climatology university.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Institutional Correction lecture only . . .
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
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
Microbial diseases, their pathogenesis and prophylaxis
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Lesson notes of climatology university.
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Institutional Correction lecture only . . .
PPH.pptx obstetrics and gynecology in nursing
VCE English Exam - Section C Student Revision Booklet
FourierSeries-QuestionsWithAnswers(Part-A).pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial diseases, their pathogenesis and prophylaxis
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
Sports Quiz easy sports quiz sports quiz
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Supply Chain Operations Speaking Notes -ICLT Program
GDM (1) (1).pptx small presentation for students
O7-L3 Supply Chain Operations - ICLT Program
2.FourierTransform-ShortQuestionswithAnswers.pdf

b,Sc it data structure.pptx

  • 1. B.Sc III Year (IT) Paper II- Software Data Structure Unit I:- Introduction to Data Structure By : VIDYA CLASS Asstt Professor Department of Computer Science & IT 1
  • 2. Contents • What is Data Structure • Types of Data Structure • Operations of Data Structure • Abstract Data structure • Analysis of Algorithm • Characteristics of Algorithm • Criteria of Algorithm Analysis • Time Complexity • Space Complexity • Concept of List and array 2
  • 3. What is Data Structure • A data structure is a particular way of organizing data in a computer so that it can be used effectively. • For example, we can store a list of items having the same data-type using the array data structure. • The data structures mainly deal with the study of 1. How the data is organized in the memory 2. How efficiently the data can be retrieved and manipulated 3. How efficiently the data can be stored in the memory 4. The possible ways in which different data items are logically related 3
  • 4. Types of Data Structure The Data structures can be classified into two parts 1. Primitive The primitive Data structures are data structures that can be manipulated directly by machine instructions Example-Integers , Floating point number, Character, Double, Pointer 2. Non Primitive The Non-primitive data structures are data structures that cannot be manipulated directly by machine instructions Non-primitive data structure are further classified as below 1. Linear Data Structure Data structure which is arranged in a sequence to represent given information is called Linear Data Structure Example-Array ,Queues ,Stacks , Linked list 2. Non-linear Data structure Data Structure which is arranged in any form is called Non-linear Data structure. Example-Graph,Tree 4
  • 5. Operations of Data Structure • Traversing Processing each element in the array or list . • Insertion Adding a new element to the list. • Deletion Removing an element from the list. • Updation This allows the user to modify the given set of element in the list. • Searching Finding the location of the element with a given value with a given key. • Sorting Arranging the data in a proper order that is in ascending or descending. 5
  • 6. Abstract Data structure • It focus on the essentials of a data storage structure without knowing about its implementation. • Focusing on what it does and ignoring how it does it • Example-Stacks and Queues 6
  • 7. Analysis of Algorithm • The procedure of writing an algorithm is called designing of algorithm. • Written in human understandable code to solve problem • For one problem many algorithms can be designed • Performance of the program depend on algorithm • Design the algorithm ,it can be analysed then find out the performance of an algorithm is called analysis of algorithm 7
  • 8. Characteristics of Algorithm 8 Characteristics of algorithm 1.Input 2.Output 3.Finiteness 4.Definiteness 5.Effectiveness
  • 9. Criteria of Algorithm Analysis 9 Criteria of Algorithm Analysis Computation Time(Time complexity) Storage needs or Requirements(Space complexity
  • 10. Time Complexity • The total amount of computer time(compilation time and run time) needed to complete the execution of an algorithm is called time complexity 10 Operation Unit of Run Time Remark Num=10 1 1 for assignment Sum=sum+10 2 1 for addition and 1 for assignment SI=PTR/100 4 2 for multiplication,1 for division and 1 for assignment Num!=0 1 1 for condition Return Sum 1 1 for return statement
  • 11. Space Complexity • The total amount of computer memory needed to complete the execution of an algorithm is called as space complexity • S(A)=C +Sa Where S(A) is space complexity of algorithm C is constant ,space for fixed component of algorithm A Sa is the Variable space required for variable component+STACK space 11 Space complexity Fixed Variable Space for code Space for constants Space for Fixed variable Space for problem dependent variables Space for the STACK in case of recursion
  • 12. Concept of List and array • List:- Grouping or listing of same type of objects or things to identify as a single unit • Example-1.List of employees in ‘Sales’ department 2.List of marks obtained by students • Array:- Collection of similar elements • Array is synonym for list • The lists of the real life are converted into arrays in data structure 12