SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Data Structure And Algorithm
Prf. Purvi Prajapati
Department Of Information Technology
CSPIT, CHARUSAT
Outline
 Introduction
 Algorithm
 Data & Information
 Data Structure
 Data Type
 Types of Data Type
 Importance of Data Structure
 Types of Data Structure
Introduction
 Algorithm:
 a set of instructions for solving a problem in
a finite number of steps.
[From : https://www.dictionary.com]
 Step-by-step procedures required to solve a problem.
For example, to find the largest number in a list of
positive numbers.
Algorithm
Al Khawarizmi
 A great Iranian mathematician,
geographer and astronomer. He
introduced the zero, negative
numbers, algebra and the
decimal system. He also
invented mathematical
programming using a set of
instructions to perform
complex calculations.
 The term algorithm is named
after a variation of his name,
Algorithmi.
Algorithm
Algorithm is a step-by-step finite sequence of
instruction, to solve a well defined computational
problem for the given Input and expected Output.
Data & Information
 Data means value or a set of values.
 35
 21/12/2016,
 “CHARUSAT”
 12, 18, 24, 32
 Information means meaningful or processed data.
 35 Age of a person
 21/12/2016 Date of Birth
 “CHARUSAT” Name of the University
 12, 18, 14, 30 Marks of a subject
DATA
Procedure to
process data
Info-1
Info-2
Info-3
.
.
.
Info-n
Data Structure
 Data: Data is set of items
 Structure: How to organize data (A particular way of
organizing data in computer)
 A data structure is a method for organizing and
storing data, which would allow efficient data
retrieval and usage.
Data Structure
“I will, in fact, claim that the difference between a
bad programmer and a good one is whether he
considers his code or his data structures more
important. Bad programmers worry about the
code. Good programmers worry about data
structures and their relationships. ”
- Linus Torvalds (creator of Linux)
Algorithm + Data Structure = Program
-By Niklaus Wirth
 Program:
An implementation of
an algorithm in some
programming language
Data Type
 Data type is a term which refers to the kind of
data. That may appear in computation.
 35 Numeric (integer)
 21/12/2016 Date
 “CHARUSAT” String
 12, 18, 14, 30 Array of integers
Types of Data Type
Data Type
Built-in Data Type
(BDT)
Abstract / User-defined
DataType(ADT / UDT)
int
char
float
double
struct
union
class
Primitive
Non-
Primitive
Importance of Data Structure
 In computer, manipulation of primitive data
does not require any extra effort on the part of
user.
 In real-life applications, various kinds of data
other than primitive data are involved. So,
manipulation of real-life data requires following
tasks:
1. Storage representation of data
2. Retrieval of stored data
3. Transformation of data
Importance of Data Structure
 Data Structure is used for
 How the data should be organized in the memory
 How the flow of data should be controlled
 How efficiently it can be retrieved and manipulated
 How data should be designed and implemented to reduce
the complexity and increase the efficiency of the algorithm
Types of Data Structure
 Basically there are two types of Data Structures:
1) Primitive Data Structures
2) Non Primitive Data Structures
 Primitive Data Structures are in built data
structures for every programming languages.
 Non-Primitive Data Structures are user defined
data structures.
Types of Data Structure
DATA STRUCTURE
PRIMITIVE NON-PRIMITIVE
LINEAR NON-LINEAR
Array
Stack
Queue
Linked List
Tree
Graph
Table
Character
Integer
Floating point
Types of Non-primitive Data Structure
 Linear Data Structures :
 Elements are stored/accessed in sequential manner
from the computer’s memory.
 Non-linear Data Structures :
 Elements are stored randomly in computer’s memory.
References
 Classic Data structures, D. Samanta, Prentice-
Hall International.
 An Introduction to Data Structures with
Applications, Jean-Paul Tremblay, Paul G.
Sorenson, McGraw-hill.
 Data Structures using C & C++, Ten Baum,
Prentice-Hall International.
 Study materials prepared by Prof. Chintan
Gajjar.
Thank You…..

Weitere ähnliche Inhalte

Was ist angesagt?

Semantically Enriched Knowledge Extraction With Data Mining
Semantically Enriched Knowledge Extraction With Data MiningSemantically Enriched Knowledge Extraction With Data Mining
Semantically Enriched Knowledge Extraction With Data Mining
Editor IJCATR
 
Creating Effective Data Visualizations in Excel 2016: Some Basics
Creating Effective Data Visualizations in Excel 2016:  Some BasicsCreating Effective Data Visualizations in Excel 2016:  Some Basics
Creating Effective Data Visualizations in Excel 2016: Some Basics
Shalin Hai-Jew
 

Was ist angesagt? (20)

DataMining Techniq
DataMining TechniqDataMining Techniq
DataMining Techniq
 
Data Mining
Data MiningData Mining
Data Mining
 
Data Mining Concepts
Data Mining ConceptsData Mining Concepts
Data Mining Concepts
 
Data science | What is Data science
Data science | What is Data scienceData science | What is Data science
Data science | What is Data science
 
Multidimensioal database
Multidimensioal  databaseMultidimensioal  database
Multidimensioal database
 
2 Data-mining process
2   Data-mining process2   Data-mining process
2 Data-mining process
 
02 Data Mining
02 Data Mining02 Data Mining
02 Data Mining
 
Semantically Enriched Knowledge Extraction With Data Mining
Semantically Enriched Knowledge Extraction With Data MiningSemantically Enriched Knowledge Extraction With Data Mining
Semantically Enriched Knowledge Extraction With Data Mining
 
Intro to Data warehousing lecture 17
Intro to Data warehousing   lecture 17Intro to Data warehousing   lecture 17
Intro to Data warehousing lecture 17
 
5 data preparation and processing2
5 data preparation and processing25 data preparation and processing2
5 data preparation and processing2
 
E-R vs Starschema
E-R vs StarschemaE-R vs Starschema
E-R vs Starschema
 
data warehousing and data mining
data warehousing and data mining data warehousing and data mining
data warehousing and data mining
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES) International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
Creating Effective Data Visualizations in Excel 2016: Some Basics
Creating Effective Data Visualizations in Excel 2016:  Some BasicsCreating Effective Data Visualizations in Excel 2016:  Some Basics
Creating Effective Data Visualizations in Excel 2016: Some Basics
 
Sources of data
Sources of dataSources of data
Sources of data
 
sheethal_kamath
sheethal_kamathsheethal_kamath
sheethal_kamath
 
Database tachnologies
Database tachnologiesDatabase tachnologies
Database tachnologies
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
 
Data Mining: A Short Survey
Data Mining: A Short SurveyData Mining: A Short Survey
Data Mining: A Short Survey
 
03. Data Preprocessing
03. Data Preprocessing03. Data Preprocessing
03. Data Preprocessing
 

Ähnlich wie Introduction to data_structure

Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.pptLecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
iamsallauddin
 
Frequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social MediaFrequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social Media
IJERA Editor
 
Frequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social MediaFrequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social Media
IJERA Editor
 

Ähnlich wie Introduction to data_structure (20)

fds u1.docx
fds u1.docxfds u1.docx
fds u1.docx
 
12 oct ppt .pdf
12 oct ppt .pdf12 oct ppt .pdf
12 oct ppt .pdf
 
Algorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftjAlgorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftj
 
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
 
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.pptLecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
 
Chapter 1- IT.pptx
Chapter 1- IT.pptxChapter 1- IT.pptx
Chapter 1- IT.pptx
 
The role of data engineering in data science and analytics practice
The role of data engineering in data science and analytics practiceThe role of data engineering in data science and analytics practice
The role of data engineering in data science and analytics practice
 
Regression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms ExcelRegression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms Excel
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
 
Data Structures unit I Introduction - data types
Data Structures unit I Introduction - data typesData Structures unit I Introduction - data types
Data Structures unit I Introduction - data types
 
Introduction to Data Structure.pptx
Introduction to Data Structure.pptxIntroduction to Data Structure.pptx
Introduction to Data Structure.pptx
 
EE-232-LEC-01 Data_structures.pptx
EE-232-LEC-01 Data_structures.pptxEE-232-LEC-01 Data_structures.pptx
EE-232-LEC-01 Data_structures.pptx
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Frequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social MediaFrequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social Media
 
Frequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social MediaFrequent Item set Mining of Big Data for Social Media
Frequent Item set Mining of Big Data for Social Media
 
Lec1
Lec1Lec1
Lec1
 
01VD062009003760042.pdf
01VD062009003760042.pdf01VD062009003760042.pdf
01VD062009003760042.pdf
 
Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
 
8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 

Kürzlich hochgeladen

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
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
AldoGarca30
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Kürzlich hochgeladen (20)

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
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...
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
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 ...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
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
 
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...
 
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
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
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
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

Introduction to data_structure

  • 1. Data Structure And Algorithm Prf. Purvi Prajapati Department Of Information Technology CSPIT, CHARUSAT
  • 2. Outline  Introduction  Algorithm  Data & Information  Data Structure  Data Type  Types of Data Type  Importance of Data Structure  Types of Data Structure
  • 3. Introduction  Algorithm:  a set of instructions for solving a problem in a finite number of steps. [From : https://www.dictionary.com]  Step-by-step procedures required to solve a problem. For example, to find the largest number in a list of positive numbers.
  • 4. Algorithm Al Khawarizmi  A great Iranian mathematician, geographer and astronomer. He introduced the zero, negative numbers, algebra and the decimal system. He also invented mathematical programming using a set of instructions to perform complex calculations.  The term algorithm is named after a variation of his name, Algorithmi.
  • 5. Algorithm Algorithm is a step-by-step finite sequence of instruction, to solve a well defined computational problem for the given Input and expected Output.
  • 6. Data & Information  Data means value or a set of values.  35  21/12/2016,  “CHARUSAT”  12, 18, 24, 32  Information means meaningful or processed data.  35 Age of a person  21/12/2016 Date of Birth  “CHARUSAT” Name of the University  12, 18, 14, 30 Marks of a subject DATA Procedure to process data Info-1 Info-2 Info-3 . . . Info-n
  • 7. Data Structure  Data: Data is set of items  Structure: How to organize data (A particular way of organizing data in computer)  A data structure is a method for organizing and storing data, which would allow efficient data retrieval and usage.
  • 8. Data Structure “I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about the code. Good programmers worry about data structures and their relationships. ” - Linus Torvalds (creator of Linux)
  • 9. Algorithm + Data Structure = Program -By Niklaus Wirth  Program: An implementation of an algorithm in some programming language
  • 10. Data Type  Data type is a term which refers to the kind of data. That may appear in computation.  35 Numeric (integer)  21/12/2016 Date  “CHARUSAT” String  12, 18, 14, 30 Array of integers
  • 11. Types of Data Type Data Type Built-in Data Type (BDT) Abstract / User-defined DataType(ADT / UDT) int char float double struct union class Primitive Non- Primitive
  • 12. Importance of Data Structure  In computer, manipulation of primitive data does not require any extra effort on the part of user.  In real-life applications, various kinds of data other than primitive data are involved. So, manipulation of real-life data requires following tasks: 1. Storage representation of data 2. Retrieval of stored data 3. Transformation of data
  • 13. Importance of Data Structure  Data Structure is used for  How the data should be organized in the memory  How the flow of data should be controlled  How efficiently it can be retrieved and manipulated  How data should be designed and implemented to reduce the complexity and increase the efficiency of the algorithm
  • 14. Types of Data Structure  Basically there are two types of Data Structures: 1) Primitive Data Structures 2) Non Primitive Data Structures  Primitive Data Structures are in built data structures for every programming languages.  Non-Primitive Data Structures are user defined data structures.
  • 15. Types of Data Structure DATA STRUCTURE PRIMITIVE NON-PRIMITIVE LINEAR NON-LINEAR Array Stack Queue Linked List Tree Graph Table Character Integer Floating point
  • 16. Types of Non-primitive Data Structure  Linear Data Structures :  Elements are stored/accessed in sequential manner from the computer’s memory.  Non-linear Data Structures :  Elements are stored randomly in computer’s memory.
  • 17. References  Classic Data structures, D. Samanta, Prentice- Hall International.  An Introduction to Data Structures with Applications, Jean-Paul Tremblay, Paul G. Sorenson, McGraw-hill.  Data Structures using C & C++, Ten Baum, Prentice-Hall International.  Study materials prepared by Prof. Chintan Gajjar.

Hinweis der Redaktion

  1. We are living in Information Age. Everything around us is information. Information Technology requires information. But for information we have to store data somewhere. How can we store data? After processing on data we will get information. Data can be normal data or complex data. Why storing data is important? : Proper storing and efficient Fetching gives efficient performance in future. We have to store data in such a way that will be easier to fetch it , process it and to store at some other location. That’s why we need data structure. Data Structure is all about efficient storage so we can use it efficiently to get information.
  2. Every programming language has inbuilt data structure.