SlideShare a Scribd company logo
1 of 11
𝐌𝐔𝐑𝐒𝐇𝐈𝐃𝐀𝐁𝐀𝐃 𝐂𝐎𝐋𝐋𝐄𝐆𝐄 𝐎𝐅 𝐄𝐍
𝐆𝐈𝐍𝐄𝐄𝐑𝐈𝐍𝐆 𝐀𝐍𝐃 𝐓𝐄𝐂𝐇𝐍𝐎𝐋𝐎𝐆Y
****CA-1ASSIGNMENT****
TOPIC NAME: DATA STRUCTURE AND ALGORITHMS
NAME: MD AZAM
YEAR: 2nd
SEMETER: 3rd Le
PAPER CODE: PCC CS 301
DEPARTMENT OF COMPUTER SCIENCEAND ENGINEERING
PAPER NAME: DATA STRUCTURE AND ALGORITHMS
➤What is data structure?
 A data structure is basically a group of data elements that are put together
under one name which defines a particular way of storing and organizing data
in a computer to be used efficiently. A data structure is a crutial part of data
management Data structures make it easy for users to access and work with
data they need in appropriate ways. In computer science and computer
programming a data structure may be selected or designed to store data for
the purpose of using it with various algorithms. It is a way of storing and
organizing data in computers memory in such a way, so that it can be
efficiently and easily used and manipulated.
➤ Why do we need Data Structure?
 Data structure are necessary for designing efficient algorithms :- i)data
structure is essential for easy retrieval effective access, effective use,
effective manipulation. ii)it specify operations that can be performed on
data. iii)ait specify logical relationships among data.
➤ Mention about different types of Data Structures.
There are several types of basic and advanced types of data structure all designed to arrange data to
suit specific purpose Basically there are two types of data structure:-
i) Premitive data structure
ii)Non-primitive data structure
⚫PREMITIVE DATASTRUCTURE:
Fundamental data structures like integer real, character, and Boolean which are supported by a
programming language.
⚫NON-PREMITIVE DATASTRUCTURE:
Created using primitive data structures viz. linked lists, stack, trees, and graphs. Non-primitive data
structures can further be classified:-
i) Static data structure
ii)Dynamic data structure
iii)Linear data structure
iv)Non-linear data structure.
v)Homogeneous data structure
⚫Let's discuss about them:
 i)STATIC DATA STRUCTURE:
A Static data structure is an organization or collection of data in memory which have a fixed size,
that is it can store a limited amount of elements or data in it Arrays is an example of static data
structure.
 ii)DYNAMIC DATA STRUCTURE:
In Dynamic data structure the size of the structure is not fixed and can be modified during the
operations performed on it. Dynamic data structures are designed to facilitate change of data structures
in the run time, example:-linked list.
 iii)LINEAR DATASTRUCTURE :
Linear data structure elements can be arranged and traversed in a linear sequential order in a
single run. Every elements has aunique predicase and a unique sequence.
 iv)NON-LINEAR DATA STRUCTURE:
It is a form of data structure where the data elements don't stay arranged linear or sequentially.
Since the data structure is non- linear, it does not involve a single level. Therefore, a user can't traverse
all of its elements in a single run.
 v)HOMOGENEOUS DATA STRUCTURE:
Homogeneous are those in which data of same type can be stored 4.Mention and define the
operations on data structured.
➤Mention and define the operations on data structures.
 1.Creation:-
Declaration, initialization, memory location reverse.
 2. Insertion:-
Addition of new data item.
 3. Deletion:-
Deletion operation means Removal of existing data item.
 4.Updation:-
Update operation means updating an existing element or change of existing data item.
 5.Traversal:-
Traversal operation refers visiting every element exactly.
 6.Searching:-
Searching operation means finding the location of once desired element.
 7.Sorting:-
Rearranging the elements in same logical order.
 8.Merging.
 9.Copying
➤What is Algorithm? What are the characteristics?
 A sequence of instructions which are carried out step-by-step .The steps may
be sequential decision Algorithms are meant to solve a problem .It isa blue
print of a program.
 Characteristics of Algorithm:-
 i. Accepts zero or more inputs.
 ii. Produces at least one output.
 iii. Contains clear and unambiguous instructions(definiteness).
 iv. Instructions must terminate after certain steps (finiteness).
 v. Contains basic instructions (effectiveness).
➤What is analysis of ALGORITHMS ?
 It is a process of deforming the complexity of an algorithm by estimating the amount of resources
(running time and money) that is required by an algorithm to complete its execution for a given
input size.
 PRIORIANALYSIS:-
It is done before the algorithms implements. This type of analysis do not depend on hardware and
compiler remains same in every system. This kind of analysis is exact and absolute.
 POSTERIRORANALYSIS:-
It is done after the algorithm is implemented on a machine. It's depends upon hardware and
compiler. Co from one system to another. This kind of analysis is relative and approximate.
 Types of complexity:-
1.Space complexity:-
It is estimate of order of magnitude of the memory space that an algorithm will take to complete
its execute input size.
2. Time complexity:-
It is estimate of order of magnitude of the running time that is an algorithm will take to complete
input size.
 Types of Time complexity
 i. Best case time complexity.
 ii. Worst case time complexity.
 III. Average case time complexity.
 IV. Amortized time complexity
 I. BEST CASE TIME COMPLEXITY:
It is a measure of minimum running time. That an algorithm requires to complete its execution for a given input
size.
 ii. WORST CASE TIMECOMPLEXITY:
It is a measure of maximum running time that an algorithm requires to complete its execution for a given input
size .
 iii. AVERAGE CASETIMECOMPLEXITY:
It is measure of running time that an algorithm takes to complete its execution for a typical size of input. It is
calculated by avargeing the running time for all possible input of a particular size which depends upon the probability
distribution of a course.
 IV.AMORTIZEDTIMECOMPLEXITY:
Amortize time complexity is estimated by considering the sequence of related operations and then averaging the
running time of all the operations taken over that sequence.
 GROWTH RATE:
It is the rate of which the time complexity of an algorithm increases as the input size increases.
 Significance :
i. It helps to classify the algorithms. ii. For comparison of efficiency of algorithms. iii. Performance analysis of
algorithms.
ASYMPTOTIC NOTATION
 It is an abstract mathematical notation used to represent the running time
(time complexity) of the algorithm when the input size 'n' tends towards a
particular limiting value or infinity.
ASYMPTOTIC
NOTATION
BigOh
Notation(O)
BigOmega
notation
(Ω)
Theta
notation(φ)
Little-oh
notation(o)
Little-Omega
notati
THANK YOU!

More Related Content

Similar to MD AZAM CA-1-1.pptx

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
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfAxmedcarb
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.pptclassall
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure Prof Ansari
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2RajSingh734307
 
Entity resolution for hierarchical data using attributes value comparison ove...
Entity resolution for hierarchical data using attributes value comparison ove...Entity resolution for hierarchical data using attributes value comparison ove...
Entity resolution for hierarchical data using attributes value comparison ove...IAEME Publication
 
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...IRJET Journal
 
Improving Association Rule Mining by Defining a Novel Data Structure
Improving Association Rule Mining by Defining a Novel Data StructureImproving Association Rule Mining by Defining a Novel Data Structure
Improving Association Rule Mining by Defining a Novel Data StructureIRJET Journal
 
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...A Survey on Improve Efficiency And Scability vertical mining using Agriculter...
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...Editor IJMTER
 
Data structure and algorithm.
Data structure and algorithm. Data structure and algorithm.
Data structure and algorithm. Abdul salam
 
Summer training project on Data structures and algorithms.pptx
Summer training project on Data structures and algorithms.pptxSummer training project on Data structures and algorithms.pptx
Summer training project on Data structures and algorithms.pptxlavkumar420720
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance Anaya Zafar
 
The Overview of Discovery and Reconciliation of LTE Network
The Overview of Discovery and Reconciliation of LTE NetworkThe Overview of Discovery and Reconciliation of LTE Network
The Overview of Discovery and Reconciliation of LTE NetworkIRJET Journal
 

Similar to MD AZAM CA-1-1.pptx (20)

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
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.ppt
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2
 
Entity resolution for hierarchical data using attributes value comparison ove...
Entity resolution for hierarchical data using attributes value comparison ove...Entity resolution for hierarchical data using attributes value comparison ove...
Entity resolution for hierarchical data using attributes value comparison ove...
 
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...
IRJET- Classification of Pattern Storage System and Analysis of Online Shoppi...
 
Improving Association Rule Mining by Defining a Novel Data Structure
Improving Association Rule Mining by Defining a Novel Data StructureImproving Association Rule Mining by Defining a Novel Data Structure
Improving Association Rule Mining by Defining a Novel Data Structure
 
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
 
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...A Survey on Improve Efficiency And Scability vertical mining using Agriculter...
A Survey on Improve Efficiency And Scability vertical mining using Agriculter...
 
Data structure and algorithm.
Data structure and algorithm. Data structure and algorithm.
Data structure and algorithm.
 
Summer training project on Data structures and algorithms.pptx
Summer training project on Data structures and algorithms.pptxSummer training project on Data structures and algorithms.pptx
Summer training project on Data structures and algorithms.pptx
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance
 
algo 1.ppt
algo 1.pptalgo 1.ppt
algo 1.ppt
 
The Overview of Discovery and Reconciliation of LTE Network
The Overview of Discovery and Reconciliation of LTE NetworkThe Overview of Discovery and Reconciliation of LTE Network
The Overview of Discovery and Reconciliation of LTE Network
 
Sorting_project_2.pdf
Sorting_project_2.pdfSorting_project_2.pdf
Sorting_project_2.pdf
 
UNIT II.docx
UNIT II.docxUNIT II.docx
UNIT II.docx
 

Recently uploaded

Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...ppkakm
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptxrouholahahmadi9876
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 

Recently uploaded (20)

Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 

MD AZAM CA-1-1.pptx

  • 1. 𝐌𝐔𝐑𝐒𝐇𝐈𝐃𝐀𝐁𝐀𝐃 𝐂𝐎𝐋𝐋𝐄𝐆𝐄 𝐎𝐅 𝐄𝐍 𝐆𝐈𝐍𝐄𝐄𝐑𝐈𝐍𝐆 𝐀𝐍𝐃 𝐓𝐄𝐂𝐇𝐍𝐎𝐋𝐎𝐆Y ****CA-1ASSIGNMENT**** TOPIC NAME: DATA STRUCTURE AND ALGORITHMS NAME: MD AZAM YEAR: 2nd SEMETER: 3rd Le PAPER CODE: PCC CS 301 DEPARTMENT OF COMPUTER SCIENCEAND ENGINEERING PAPER NAME: DATA STRUCTURE AND ALGORITHMS
  • 2. ➤What is data structure?  A data structure is basically a group of data elements that are put together under one name which defines a particular way of storing and organizing data in a computer to be used efficiently. A data structure is a crutial part of data management Data structures make it easy for users to access and work with data they need in appropriate ways. In computer science and computer programming a data structure may be selected or designed to store data for the purpose of using it with various algorithms. It is a way of storing and organizing data in computers memory in such a way, so that it can be efficiently and easily used and manipulated.
  • 3. ➤ Why do we need Data Structure?  Data structure are necessary for designing efficient algorithms :- i)data structure is essential for easy retrieval effective access, effective use, effective manipulation. ii)it specify operations that can be performed on data. iii)ait specify logical relationships among data.
  • 4. ➤ Mention about different types of Data Structures. There are several types of basic and advanced types of data structure all designed to arrange data to suit specific purpose Basically there are two types of data structure:- i) Premitive data structure ii)Non-primitive data structure ⚫PREMITIVE DATASTRUCTURE: Fundamental data structures like integer real, character, and Boolean which are supported by a programming language. ⚫NON-PREMITIVE DATASTRUCTURE: Created using primitive data structures viz. linked lists, stack, trees, and graphs. Non-primitive data structures can further be classified:- i) Static data structure ii)Dynamic data structure iii)Linear data structure iv)Non-linear data structure. v)Homogeneous data structure
  • 5. ⚫Let's discuss about them:  i)STATIC DATA STRUCTURE: A Static data structure is an organization or collection of data in memory which have a fixed size, that is it can store a limited amount of elements or data in it Arrays is an example of static data structure.  ii)DYNAMIC DATA STRUCTURE: In Dynamic data structure the size of the structure is not fixed and can be modified during the operations performed on it. Dynamic data structures are designed to facilitate change of data structures in the run time, example:-linked list.  iii)LINEAR DATASTRUCTURE : Linear data structure elements can be arranged and traversed in a linear sequential order in a single run. Every elements has aunique predicase and a unique sequence.  iv)NON-LINEAR DATA STRUCTURE: It is a form of data structure where the data elements don't stay arranged linear or sequentially. Since the data structure is non- linear, it does not involve a single level. Therefore, a user can't traverse all of its elements in a single run.  v)HOMOGENEOUS DATA STRUCTURE: Homogeneous are those in which data of same type can be stored 4.Mention and define the operations on data structured.
  • 6. ➤Mention and define the operations on data structures.  1.Creation:- Declaration, initialization, memory location reverse.  2. Insertion:- Addition of new data item.  3. Deletion:- Deletion operation means Removal of existing data item.  4.Updation:- Update operation means updating an existing element or change of existing data item.  5.Traversal:- Traversal operation refers visiting every element exactly.  6.Searching:- Searching operation means finding the location of once desired element.  7.Sorting:- Rearranging the elements in same logical order.  8.Merging.  9.Copying
  • 7. ➤What is Algorithm? What are the characteristics?  A sequence of instructions which are carried out step-by-step .The steps may be sequential decision Algorithms are meant to solve a problem .It isa blue print of a program.  Characteristics of Algorithm:-  i. Accepts zero or more inputs.  ii. Produces at least one output.  iii. Contains clear and unambiguous instructions(definiteness).  iv. Instructions must terminate after certain steps (finiteness).  v. Contains basic instructions (effectiveness).
  • 8. ➤What is analysis of ALGORITHMS ?  It is a process of deforming the complexity of an algorithm by estimating the amount of resources (running time and money) that is required by an algorithm to complete its execution for a given input size.  PRIORIANALYSIS:- It is done before the algorithms implements. This type of analysis do not depend on hardware and compiler remains same in every system. This kind of analysis is exact and absolute.  POSTERIRORANALYSIS:- It is done after the algorithm is implemented on a machine. It's depends upon hardware and compiler. Co from one system to another. This kind of analysis is relative and approximate.  Types of complexity:- 1.Space complexity:- It is estimate of order of magnitude of the memory space that an algorithm will take to complete its execute input size. 2. Time complexity:- It is estimate of order of magnitude of the running time that is an algorithm will take to complete input size.  Types of Time complexity  i. Best case time complexity.  ii. Worst case time complexity.  III. Average case time complexity.  IV. Amortized time complexity
  • 9.  I. BEST CASE TIME COMPLEXITY: It is a measure of minimum running time. That an algorithm requires to complete its execution for a given input size.  ii. WORST CASE TIMECOMPLEXITY: It is a measure of maximum running time that an algorithm requires to complete its execution for a given input size .  iii. AVERAGE CASETIMECOMPLEXITY: It is measure of running time that an algorithm takes to complete its execution for a typical size of input. It is calculated by avargeing the running time for all possible input of a particular size which depends upon the probability distribution of a course.  IV.AMORTIZEDTIMECOMPLEXITY: Amortize time complexity is estimated by considering the sequence of related operations and then averaging the running time of all the operations taken over that sequence.  GROWTH RATE: It is the rate of which the time complexity of an algorithm increases as the input size increases.  Significance : i. It helps to classify the algorithms. ii. For comparison of efficiency of algorithms. iii. Performance analysis of algorithms.
  • 10. ASYMPTOTIC NOTATION  It is an abstract mathematical notation used to represent the running time (time complexity) of the algorithm when the input size 'n' tends towards a particular limiting value or infinity. ASYMPTOTIC NOTATION BigOh Notation(O) BigOmega notation (Ω) Theta notation(φ) Little-oh notation(o) Little-Omega notati