SlideShare a Scribd company logo
1 of 13
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

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.pdfDukeCalvin
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
Data Structure # vpmp polytechnic
Data Structure # vpmp polytechnicData Structure # vpmp polytechnic
Data Structure # vpmp polytechniclavparmar007
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2RajSingh734307
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptxpoonamsngr
 
Data Structures and Algorithm - Module 1.pptx
Data Structures and Algorithm - Module 1.pptxData Structures and Algorithm - Module 1.pptx
Data Structures and Algorithm - Module 1.pptxEllenGrace9
 
Data structures Basics
Data structures BasicsData structures Basics
Data structures BasicsDurgaDeviCbit
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptxMumtaz
 
Data Structures - Lecture 1 - Unit 1.pptx
Data Structures  - Lecture 1 - Unit 1.pptxData Structures  - Lecture 1 - Unit 1.pptx
Data Structures - Lecture 1 - Unit 1.pptxDanielNesaKumarC
 
DS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxDS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxprakashvs7
 
Data Structures_Introduction
Data Structures_IntroductionData Structures_Introduction
Data Structures_IntroductionThenmozhiK5
 
MD AZAM CA-1-1.pptx
MD AZAM CA-1-1.pptxMD AZAM CA-1-1.pptx
MD AZAM CA-1-1.pptxMyMovies15
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structuresunilchute1
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structuresunilchute1
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSANurjahan Nipa
 

Similar to b,Sc it data structure.pptx (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
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data Structure # vpmp polytechnic
Data Structure # vpmp polytechnicData Structure # vpmp polytechnic
Data Structure # vpmp polytechnic
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2
 
Intro_2.ppt
Intro_2.pptIntro_2.ppt
Intro_2.ppt
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
 
Data Structures and Algorithm - Module 1.pptx
Data Structures and Algorithm - Module 1.pptxData Structures and Algorithm - Module 1.pptx
Data Structures and Algorithm - Module 1.pptx
 
Data structures Basics
Data structures BasicsData structures Basics
Data structures Basics
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptx
 
Data Structures - Lecture 1 - Unit 1.pptx
Data Structures  - Lecture 1 - Unit 1.pptxData Structures  - Lecture 1 - Unit 1.pptx
Data Structures - Lecture 1 - Unit 1.pptx
 
DS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxDS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptx
 
Data Structures_Introduction
Data Structures_IntroductionData Structures_Introduction
Data Structures_Introduction
 
stack.pptx
stack.pptxstack.pptx
stack.pptx
 
MD AZAM CA-1-1.pptx
MD AZAM CA-1-1.pptxMD AZAM CA-1-1.pptx
MD AZAM CA-1-1.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
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
 

More from classall

E -COMMERCE.ppt
E -COMMERCE.pptE -COMMERCE.ppt
E -COMMERCE.pptclassall
 
CONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VBCONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VBclassall
 
operat in vb .pptx
operat in vb .pptxoperat in vb .pptx
operat in vb .pptxclassall
 
Tally_Tutor_1.ppt
Tally_Tutor_1.pptTally_Tutor_1.ppt
Tally_Tutor_1.pptclassall
 
networking
networking networking
networking classall
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxclassall
 
introduction to e-commerce.pptx
introduction to e-commerce.pptxintroduction to e-commerce.pptx
introduction to e-commerce.pptxclassall
 
E-Rdiagram.ppt
E-Rdiagram.pptE-Rdiagram.ppt
E-Rdiagram.pptclassall
 
EDI presentation.pptx
EDI presentation.pptxEDI presentation.pptx
EDI presentation.pptxclassall
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic classall
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.pptclassall
 
SAVE WATER SAVE LIFE
SAVE WATER SAVE LIFESAVE WATER SAVE LIFE
SAVE WATER SAVE LIFEclassall
 
MULTIMEDIA
MULTIMEDIAMULTIMEDIA
MULTIMEDIAclassall
 
GEETA2.pptx
GEETA2.pptxGEETA2.pptx
GEETA2.pptxclassall
 
GEETA1.pptx
GEETA1.pptxGEETA1.pptx
GEETA1.pptxclassall
 
GEETA.pptx
GEETA.pptxGEETA.pptx
GEETA.pptxclassall
 
राष्ट्रीय एकता 13.3.18.ppt
राष्ट्रीय एकता 13.3.18.pptराष्ट्रीय एकता 13.3.18.ppt
राष्ट्रीय एकता 13.3.18.pptclassall
 
MEMORY NOTES.pptx
MEMORY NOTES.pptxMEMORY NOTES.pptx
MEMORY NOTES.pptxclassall
 

More from classall (20)

E -COMMERCE.ppt
E -COMMERCE.pptE -COMMERCE.ppt
E -COMMERCE.ppt
 
CONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VBCONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VB
 
operat in vb .pptx
operat in vb .pptxoperat in vb .pptx
operat in vb .pptx
 
Tally_Tutor_1.ppt
Tally_Tutor_1.pptTally_Tutor_1.ppt
Tally_Tutor_1.ppt
 
networking
networking networking
networking
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
introduction to e-commerce.pptx
introduction to e-commerce.pptxintroduction to e-commerce.pptx
introduction to e-commerce.pptx
 
E-Rdiagram.ppt
E-Rdiagram.pptE-Rdiagram.ppt
E-Rdiagram.ppt
 
EDI presentation.pptx
EDI presentation.pptxEDI presentation.pptx
EDI presentation.pptx
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.ppt
 
SAVE WATER SAVE LIFE
SAVE WATER SAVE LIFESAVE WATER SAVE LIFE
SAVE WATER SAVE LIFE
 
MS OFFICE
MS OFFICEMS OFFICE
MS OFFICE
 
MULTIMEDIA
MULTIMEDIAMULTIMEDIA
MULTIMEDIA
 
GEETA2.pptx
GEETA2.pptxGEETA2.pptx
GEETA2.pptx
 
GEETA1.pptx
GEETA1.pptxGEETA1.pptx
GEETA1.pptx
 
GEETA.pptx
GEETA.pptxGEETA.pptx
GEETA.pptx
 
राष्ट्रीय एकता 13.3.18.ppt
राष्ट्रीय एकता 13.3.18.pptराष्ट्रीय एकता 13.3.18.ppt
राष्ट्रीय एकता 13.3.18.ppt
 
mmu.pptx
mmu.pptxmmu.pptx
mmu.pptx
 
MEMORY NOTES.pptx
MEMORY NOTES.pptxMEMORY NOTES.pptx
MEMORY NOTES.pptx
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 

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