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

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

PPTX
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
DOCX
Data structure and algorithm.
Abdul salam
 
PPTX
1-Introduction to Data Structures beginner.pptx
231b209
 
PPTX
UNIT 1.pptx
JohnStuart83
 
PDF
Data structures and algorithms Module-1.pdf
DukeCalvin
 
PPTX
DS Module 1.pptx
SaralaT3
 
PPTX
DS Module 1.pptx
sarala9
 
PPTX
UNIT 1 Memory ManagementMemory Management.pptx
harsh1212000552
 
PPSX
Data Structure # vpmp polytechnic
lavparmar007
 
PDF
Iare ds lecture_notes_2
RajSingh734307
 
PPT
Intro_2.ppt
MumitAhmed1
 
PPT
Intro.ppt
SharabiNaif
 
PPT
Intro.ppt
Anonymous9etQKwW
 
PPTX
introduction about data structure_i.pptx
poonamsngr
 
PPTX
Data Structures and Algorithm - Module 1.pptx
EllenGrace9
 
PDF
Unit I Data structure and algorithms notes
FIONACHATOLA
 
PPT
The Stack in Data structure and algorithm
SourajitMaity1
 
PDF
Data structures Basics
DurgaDeviCbit
 
PPTX
Data Structure & Algorithm.pptx
Mumtaz
 
PPTX
introduction of Data strutter and algirithm.pptx
ssuser7b3003
 
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
Data structure and algorithm.
Abdul salam
 
1-Introduction to Data Structures beginner.pptx
231b209
 
UNIT 1.pptx
JohnStuart83
 
Data structures and algorithms Module-1.pdf
DukeCalvin
 
DS Module 1.pptx
SaralaT3
 
DS Module 1.pptx
sarala9
 
UNIT 1 Memory ManagementMemory Management.pptx
harsh1212000552
 
Data Structure # vpmp polytechnic
lavparmar007
 
Iare ds lecture_notes_2
RajSingh734307
 
Intro_2.ppt
MumitAhmed1
 
Intro.ppt
SharabiNaif
 
Intro.ppt
Anonymous9etQKwW
 
introduction about data structure_i.pptx
poonamsngr
 
Data Structures and Algorithm - Module 1.pptx
EllenGrace9
 
Unit I Data structure and algorithms notes
FIONACHATOLA
 
The Stack in Data structure and algorithm
SourajitMaity1
 
Data structures Basics
DurgaDeviCbit
 
Data Structure & Algorithm.pptx
Mumtaz
 
introduction of Data strutter and algirithm.pptx
ssuser7b3003
 

More from classall (20)

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

Recently uploaded (20)

PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Ad

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