SlideShare a Scribd company logo
1 of 14
Fundamentals of Data Structure
Ms. Vrushali Dhanokar
Email id- dhanokarvrushali@gmail.com
Why we learn this subject?
• In real life we used data structure everywhere.
For example
 In organization, Student database. We can stored large amount of data in
appropriate sequential manner. We can sort those data according the functionality.
By using primary key i.e. unique id we can access those data. It’s also easy for
searching purpose.
 A file system is a method for storing and organizing computer files and the data
they contain to make it easy to find and access them for this purpose they used
Tree data structure.
 Google maps used graph data structure for finding the shortest path.
 Queue data structure used in networking for transferring files in FIFO format.
Etc.
What is Data Structure?
• Data structure is the way of organizing data in computer so it can be used more
effectively.
• Data structure is collections of data values and relationships among them and
different functions and operations applied on data.
What is Data?
What is Data Object?
 Data- Data is collections of information. It includes integers, alphabets,
numbers, symbols etc.
Properties of Data-
1. Atomic – Single concept and can’t be divided into smaller parts.
2. Traceable – Relationship and connection with other elements.
3. Accurate – Accuracy, valid and unambiguous data.
4. Clear and concise - Easy to understand.
 Data Object – Data object is the storage where all values or group of
values are stored. Variables, Constants, Signals etc.
Classification of Data Structure
Types of Data Structure
1. Primitive Data Structure:
These data types are available in most programming languages as built in
type. It can be operated on machine level instruction. For e.g. Integer,
Pointer, Real, Boolean, Float, Double, Characters etc.
2. Non Primitive Data Structure:
A set of homogeneous and Heterogeneous data elements are stored
together. For. E.g. Insert, Delete, Update, Search etc.
Types of Data Structure
1. Linear Data Structure:
Its elements form a sequence or linear list. The data arrange in linear
fashion the way they are stored in memory. For e.g. Stack, Queue etc.
2. Non-Linear Data Structure:
It’s elements are not arrange in sequence. Every data elements can have
no. of predecessors as well as successors. For e.g. Tree, Graph etc.
Types of Data Structure
1. Static Data Structure:
It’s size of data structure is fixed. The content of data structure can be
modified but without changing the memory space allocated to it. For e.g.
Array.
2. Dynamic Data Structure:
It’s size of structure is not fixed and can be modified during the operations
performed on it. It change the data structure at run time. For e.g. Linked List.
What is Algorithm?
• An algorithm is finite set of instructions.
• An algorithm is step by step procedure of execution of program.
Properties of Algorithm-
1. Input – Zero or more quantities.
2. Output – At least one quantity.
3. Definiteness – Every instructions must be clear.
4. Finiteness – Algorithm will terminate after finite number of steps.
5. Effectiveness – Every instructions are feasible and easy to understand.
What is Algorithm Analysis?
• It is a technique that measure the performance of algorithm.
• It provides user-friendliness, Usage space, security, maintainability that
determines quality of algorithm.
• Types of algorithm analysis-
 Priori Analysis - Done before implementation.
 Posterior Analysis – Done after implementation.
Why study of algorithm is important?
 Algorithms help us to understand scalability.
 Performance often draws the line between what is feasible and what is
impossible.
 Algorithmic mathematics provides a language for talking about program
behavior.
 Modularity, Correctness, Maintainability, Robustness, User
friendliness, Programming time, Simplicity, Reliability etc.
 It’s important for good performance.
Algorithm Complexities
1. Time complexity-
 This is a function describing the amount of time an algorithm takes in
terms of amount of input to the algorithm.
 Time can means no. of comparisons between data types, inner loops are
executed.
 Time also can be calculated which language, hardware, program or
compiler is used.
 Time complexity = Compile time + Run or Execution Time.
 It is measured by Best case, Average case and Worst case asymptotic
notations.
Algorithm Complexities
2. Space Complexity-
 Space complexity of an algorithm represents amount of memory space
required by the algorithm in its life cycle.
 Two types of spaces are required-
 Fixed part- It required to store certain data and variables that are
independent size of problem. For e.g. Constants, Program size etc.
 Variable part- It required by variables whose size depends on size of
problem. For e.g. Dynamic memory allocation.
Thank you..!!

More Related Content

What's hot

Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]Muhammad Hammad Waseem
 
Graphics inputdevices
Graphics inputdevicesGraphics inputdevices
Graphics inputdevicesBCET
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design PresentationKawsar Ahmed
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representationLikan Patra
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra pptGirdharRatne
 
Lecture 2 role of algorithms in computing
Lecture 2   role of algorithms in computingLecture 2   role of algorithms in computing
Lecture 2 role of algorithms in computingjayavignesh86
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJDharita Chokshi
 
Automatic handwriting recognition
Automatic handwriting recognitionAutomatic handwriting recognition
Automatic handwriting recognitionBIJIT GHOSH
 
Theory of Computation
Theory of ComputationTheory of Computation
Theory of ComputationShiraz316
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...Raj vardhan
 
Intermediate code generation (Compiler Design)
Intermediate code generation (Compiler Design)   Intermediate code generation (Compiler Design)
Intermediate code generation (Compiler Design) Tasif Tanzim
 
Introduction to Computer Vision.pdf
Introduction to Computer Vision.pdfIntroduction to Computer Vision.pdf
Introduction to Computer Vision.pdfKnoldus Inc.
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial IntelligenceBharat Bhushan
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & CalculusAbdullah Khosa
 
Estructura selectiva simple con Java
Estructura selectiva simple con JavaEstructura selectiva simple con Java
Estructura selectiva simple con JavaNora O. Martínez
 
Raster animation
Raster animationRaster animation
Raster animationabhijit754
 
Spell checker using Natural language processing
Spell checker using Natural language processing Spell checker using Natural language processing
Spell checker using Natural language processing Sandeep Wakchaure
 

What's hot (20)

Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]
 
Graphics inputdevices
Graphics inputdevicesGraphics inputdevices
Graphics inputdevices
 
Generalized Reinforcement Learning
Generalized Reinforcement LearningGeneralized Reinforcement Learning
Generalized Reinforcement Learning
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
Lecture 2 role of algorithms in computing
Lecture 2   role of algorithms in computingLecture 2   role of algorithms in computing
Lecture 2 role of algorithms in computing
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJ
 
Automatic handwriting recognition
Automatic handwriting recognitionAutomatic handwriting recognition
Automatic handwriting recognition
 
Theory of Computation
Theory of ComputationTheory of Computation
Theory of Computation
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
 
Intermediate code generation (Compiler Design)
Intermediate code generation (Compiler Design)   Intermediate code generation (Compiler Design)
Intermediate code generation (Compiler Design)
 
Introduction to Computer Vision.pdf
Introduction to Computer Vision.pdfIntroduction to Computer Vision.pdf
Introduction to Computer Vision.pdf
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
 
SQL | Computer Science
SQL | Computer ScienceSQL | Computer Science
SQL | Computer Science
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
Estructura selectiva simple con Java
Estructura selectiva simple con JavaEstructura selectiva simple con Java
Estructura selectiva simple con Java
 
Raster animation
Raster animationRaster animation
Raster animation
 
Spell checker using Natural language processing
Spell checker using Natural language processing Spell checker using Natural language processing
Spell checker using Natural language processing
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 

Similar to Fundamental data structure

Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxArifKamal36
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresresamplopsurat
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2RajSingh734307
 
Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionAbirami A
 
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
 
data structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxdata structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxVicky Singh
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)MUHAMMAD AAMIR
 
Fundamentals of Data Structure_Unit I.pptx
Fundamentals of Data Structure_Unit I.pptxFundamentals of Data Structure_Unit I.pptx
Fundamentals of Data Structure_Unit I.pptxDr. Madhuri Jawale
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance Anaya Zafar
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLeandroJrErcia
 

Similar to Fundamental data structure (20)

Data structure
Data structureData structure
Data structure
 
Lecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptxLecture 1. Data Structure & Algorithm.pptx
Lecture 1. Data Structure & Algorithm.pptx
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
Iare ds lecture_notes_2
Iare ds lecture_notes_2Iare ds lecture_notes_2
Iare ds lecture_notes_2
 
Datastructures Notes
Datastructures NotesDatastructures Notes
Datastructures Notes
 
Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure Introduction
 
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
 
Database system
Database system Database system
Database system
 
UNIT I - Data Structures.pdf
UNIT I - Data Structures.pdfUNIT I - Data Structures.pdf
UNIT I - Data Structures.pdf
 
data structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptxdata structure is a storage that is used to store and organize data .pptx
data structure is a storage that is used to store and organize data .pptx
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Lect 1-2
Lect 1-2Lect 1-2
Lect 1-2
 
Lect 1-2 Zaheer Abbas
Lect 1-2 Zaheer AbbasLect 1-2 Zaheer Abbas
Lect 1-2 Zaheer Abbas
 
Fundamentals of Data Structure_Unit I.pptx
Fundamentals of Data Structure_Unit I.pptxFundamentals of Data Structure_Unit I.pptx
Fundamentals of Data Structure_Unit I.pptx
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
8.DBMS.pptx
8.DBMS.pptx8.DBMS.pptx
8.DBMS.pptx
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdf
 

Recently uploaded

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 

Recently uploaded (20)

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

Fundamental data structure

  • 1. Fundamentals of Data Structure Ms. Vrushali Dhanokar Email id- dhanokarvrushali@gmail.com
  • 2. Why we learn this subject? • In real life we used data structure everywhere. For example  In organization, Student database. We can stored large amount of data in appropriate sequential manner. We can sort those data according the functionality. By using primary key i.e. unique id we can access those data. It’s also easy for searching purpose.  A file system is a method for storing and organizing computer files and the data they contain to make it easy to find and access them for this purpose they used Tree data structure.  Google maps used graph data structure for finding the shortest path.  Queue data structure used in networking for transferring files in FIFO format. Etc.
  • 3. What is Data Structure? • Data structure is the way of organizing data in computer so it can be used more effectively. • Data structure is collections of data values and relationships among them and different functions and operations applied on data.
  • 4. What is Data? What is Data Object?  Data- Data is collections of information. It includes integers, alphabets, numbers, symbols etc. Properties of Data- 1. Atomic – Single concept and can’t be divided into smaller parts. 2. Traceable – Relationship and connection with other elements. 3. Accurate – Accuracy, valid and unambiguous data. 4. Clear and concise - Easy to understand.  Data Object – Data object is the storage where all values or group of values are stored. Variables, Constants, Signals etc.
  • 6. Types of Data Structure 1. Primitive Data Structure: These data types are available in most programming languages as built in type. It can be operated on machine level instruction. For e.g. Integer, Pointer, Real, Boolean, Float, Double, Characters etc. 2. Non Primitive Data Structure: A set of homogeneous and Heterogeneous data elements are stored together. For. E.g. Insert, Delete, Update, Search etc.
  • 7. Types of Data Structure 1. Linear Data Structure: Its elements form a sequence or linear list. The data arrange in linear fashion the way they are stored in memory. For e.g. Stack, Queue etc. 2. Non-Linear Data Structure: It’s elements are not arrange in sequence. Every data elements can have no. of predecessors as well as successors. For e.g. Tree, Graph etc.
  • 8. Types of Data Structure 1. Static Data Structure: It’s size of data structure is fixed. The content of data structure can be modified but without changing the memory space allocated to it. For e.g. Array. 2. Dynamic Data Structure: It’s size of structure is not fixed and can be modified during the operations performed on it. It change the data structure at run time. For e.g. Linked List.
  • 9. What is Algorithm? • An algorithm is finite set of instructions. • An algorithm is step by step procedure of execution of program. Properties of Algorithm- 1. Input – Zero or more quantities. 2. Output – At least one quantity. 3. Definiteness – Every instructions must be clear. 4. Finiteness – Algorithm will terminate after finite number of steps. 5. Effectiveness – Every instructions are feasible and easy to understand.
  • 10. What is Algorithm Analysis? • It is a technique that measure the performance of algorithm. • It provides user-friendliness, Usage space, security, maintainability that determines quality of algorithm. • Types of algorithm analysis-  Priori Analysis - Done before implementation.  Posterior Analysis – Done after implementation.
  • 11. Why study of algorithm is important?  Algorithms help us to understand scalability.  Performance often draws the line between what is feasible and what is impossible.  Algorithmic mathematics provides a language for talking about program behavior.  Modularity, Correctness, Maintainability, Robustness, User friendliness, Programming time, Simplicity, Reliability etc.  It’s important for good performance.
  • 12. Algorithm Complexities 1. Time complexity-  This is a function describing the amount of time an algorithm takes in terms of amount of input to the algorithm.  Time can means no. of comparisons between data types, inner loops are executed.  Time also can be calculated which language, hardware, program or compiler is used.  Time complexity = Compile time + Run or Execution Time.  It is measured by Best case, Average case and Worst case asymptotic notations.
  • 13. Algorithm Complexities 2. Space Complexity-  Space complexity of an algorithm represents amount of memory space required by the algorithm in its life cycle.  Two types of spaces are required-  Fixed part- It required to store certain data and variables that are independent size of problem. For e.g. Constants, Program size etc.  Variable part- It required by variables whose size depends on size of problem. For e.g. Dynamic memory allocation.