SlideShare a Scribd company logo
1.2 SOURCES OF DATA
H’MM
OBJECTIVES
The learners will be able to:
 Define Static Data and give examples
 Define Dynamic Data and give examples
 Compare the use of static information sources with dynamic information
sources
 Define direct and indirect data source
 Understand the advantages and disadvantages of gathering data from direct
and indirect data sources
DATA STRUCTURE
 What is a data structure?
“A data structure is a collection of data items that is
implemented by various development tools.”
STATIC DATA STRUCTURE
“MR. DEPENDABLE”
STATIC DATA STRUCTURE
 The size of the data structure is fixed
 Static data structures are very good for storing a well-defined number of
data items.
 For example, if we want to design an ID field for employees of an
organization. We can suggest it to be a fixed format e.g. “HIS000”; where
the 1st 3 characters are the initials of the organization and the other
three the employee number e.g. HIS225.
ADVANTAGES OF STATIC DATA STRUCTURES
 The development tool can allocate space during compilation
 Easy to program
 Easy to check for overflow
 Allows random access
DISADVANTAGES OF STATIC DATA STRUCTURES
 The developer has to estimate the maximum amount of space that is
going to be needed.
 A lot of space maybe wasted.
DYNAMIC DATA STRUCTURE
“MR. ADAPTABLE”
DYNAMIC DATA STRUCTURE
 There are many situations where the number of items to be stored in
NOT known in advance e.g. the length of someone’s name may NOT be
the same as any other’s name.
 In this case, the developer would be using a dynamic data structure. This
means that the data structure is allowed to grow and shrink as the
demand for storage arises.
 The developer should also set a maximum size to help avoid memory
collisions.
DYNAMIC DATA STATIC DATA
Memory is allocated to the data structure
dynamically.
Memory is allocated at compile time. Fixed size.
Limitation: As the memory allocation is dynamic, it
is possible to ‘overflow’ should it exceed it’s allowed
limit. It can also ‘underflow’ if it becomes empty.
Benefit: The memory allocation is fixed and so
there will be no problem with adding an removing
data items.
Benefit: Makes the most efficient use of memory as
the data structure – only uses as much memory it
needs.
Limitation: Can be very inefficient as the memory
for the data structure has been set aside regardless
we use it or not.
Limitation: Harder to program as the software
needs to keep track of its size and data item
locations at all times.
Benefit: Easier to program as there is no need to
check on data structure size at any point.

More Related Content

What's hot

Difference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional ModelingDifference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional Modeling
Abdul Aslam
 

What's hot (14)

Tableau file types
Tableau   file typesTableau   file types
Tableau file types
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
 
Spreadsheet Introduction - R.D.Sivakumar
Spreadsheet Introduction - R.D.SivakumarSpreadsheet Introduction - R.D.Sivakumar
Spreadsheet Introduction - R.D.Sivakumar
 
Spatial Database
Spatial DatabaseSpatial Database
Spatial Database
 
Difference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional ModelingDifference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional Modeling
 
Db4 th
Db4 thDb4 th
Db4 th
 
Ms excel
Ms excelMs excel
Ms excel
 
Dimensional data model
Dimensional data modelDimensional data model
Dimensional data model
 
Data Mining: Data processing
Data Mining: Data processingData Mining: Data processing
Data Mining: Data processing
 
5 data preparation and processing2
5 data preparation and processing25 data preparation and processing2
5 data preparation and processing2
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Data Mining: Applying data mining
Data Mining: Applying data miningData Mining: Applying data mining
Data Mining: Applying data mining
 
Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Multidimensional data models
Multidimensional data  modelsMultidimensional data  models
Multidimensional data models
 

Viewers also liked

Resume Mustika Sari (Januari 2013 Updated)
Resume Mustika Sari (Januari 2013 Updated)Resume Mustika Sari (Januari 2013 Updated)
Resume Mustika Sari (Januari 2013 Updated)
Mustika Sari
 

Viewers also liked (15)

1.3 Control Output Devices
1.3 Control Output Devices1.3 Control Output Devices
1.3 Control Output Devices
 
1.1 Input devices
1.1 Input devices1.1 Input devices
1.1 Input devices
 
1.4 Backing Storage Media and Devices
1.4 Backing Storage Media and Devices1.4 Backing Storage Media and Devices
1.4 Backing Storage Media and Devices
 
1.2 Output devices
1.2 Output devices1.2 Output devices
1.2 Output devices
 
1.5 Portable Communication Devices
1.5 Portable Communication Devices1.5 Portable Communication Devices
1.5 Portable Communication Devices
 
Quality of information
Quality of informationQuality of information
Quality of information
 
Cómo buscar en una base de datos
Cómo buscar en una base de datosCómo buscar en una base de datos
Cómo buscar en una base de datos
 
Desparasitantes internos
Desparasitantes internosDesparasitantes internos
Desparasitantes internos
 
жылкайдар асан+щит+организации
жылкайдар асан+щит+организациижылкайдар асан+щит+организации
жылкайдар асан+щит+организации
 
leseprobe
leseprobeleseprobe
leseprobe
 
Medium (Entre Twitter y WordPress)
Medium (Entre Twitter y WordPress)Medium (Entre Twitter y WordPress)
Medium (Entre Twitter y WordPress)
 
Project
ProjectProject
Project
 
AUTOBIOGRAFIA DE AMILCAR CRUZ ORDOÑEZ
AUTOBIOGRAFIA DE AMILCAR CRUZ ORDOÑEZAUTOBIOGRAFIA DE AMILCAR CRUZ ORDOÑEZ
AUTOBIOGRAFIA DE AMILCAR CRUZ ORDOÑEZ
 
Cr18 allow invoicing at parents matter from sub matter v1.0
Cr18 allow invoicing at parents matter from sub matter v1.0Cr18 allow invoicing at parents matter from sub matter v1.0
Cr18 allow invoicing at parents matter from sub matter v1.0
 
Resume Mustika Sari (Januari 2013 Updated)
Resume Mustika Sari (Januari 2013 Updated)Resume Mustika Sari (Januari 2013 Updated)
Resume Mustika Sari (Januari 2013 Updated)
 

Similar to Sources of data

CHAPTER5Database Systemsand Big DataRafal Olechows
CHAPTER5Database Systemsand Big DataRafal OlechowsCHAPTER5Database Systemsand Big DataRafal Olechows
CHAPTER5Database Systemsand Big DataRafal Olechows
JinElias52
 

Similar to Sources of data (20)

1.02 sources of data
1.02 sources of data1.02 sources of data
1.02 sources of data
 
Data masking a developer's guide
Data masking a developer's guideData masking a developer's guide
Data masking a developer's guide
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Data
DataData
Data
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
 
Management information system
Management information systemManagement information system
Management information system
 
Unit3rd
Unit3rdUnit3rd
Unit3rd
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Course Outline Ch 2
Course Outline Ch 2Course Outline Ch 2
Course Outline Ch 2
 
Data Warehousing AWS 12345
Data Warehousing AWS 12345Data Warehousing AWS 12345
Data Warehousing AWS 12345
 
Database management system
Database management systemDatabase management system
Database management system
 
DSA
DSADSA
DSA
 
Database
DatabaseDatabase
Database
 
Data mining notes
Data mining notesData mining notes
Data mining notes
 
DBMS NOTES.pdf
DBMS  NOTES.pdfDBMS  NOTES.pdf
DBMS NOTES.pdf
 
Database 1 Introduction
Database 1   IntroductionDatabase 1   Introduction
Database 1 Introduction
 
CHAPTER5Database Systemsand Big DataRafal Olechows
CHAPTER5Database Systemsand Big DataRafal OlechowsCHAPTER5Database Systemsand Big DataRafal Olechows
CHAPTER5Database Systemsand Big DataRafal Olechows
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
CCS367-Storage-Technologies-Lecture-Notes-1.pdf
CCS367-Storage-Technologies-Lecture-Notes-1.pdfCCS367-Storage-Technologies-Lecture-Notes-1.pdf
CCS367-Storage-Technologies-Lecture-Notes-1.pdf
 

More from Haa'Meem Mohiyuddin

More from Haa'Meem Mohiyuddin (8)

Introduction to system life cycle
Introduction to system life cycleIntroduction to system life cycle
Introduction to system life cycle
 
Users - an inseparable part of a system
Users - an inseparable part of a systemUsers - an inseparable part of a system
Users - an inseparable part of a system
 
Stage 5 - Documentation
Stage 5 - DocumentationStage 5 - Documentation
Stage 5 - Documentation
 
Stage 2 - Design
Stage 2 - DesignStage 2 - Design
Stage 2 - Design
 
Stage 1 - Analysis
Stage 1 -  AnalysisStage 1 -  Analysis
Stage 1 - Analysis
 
1.04 coding of data
1.04 coding of data1.04 coding of data
1.04 coding of data
 
1.03 Quality of information
1.03 Quality of information1.03 Quality of information
1.03 Quality of information
 
Data, knowledge and information
Data, knowledge and informationData, knowledge and information
Data, knowledge and information
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdf
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 

Sources of data

  • 1. 1.2 SOURCES OF DATA H’MM
  • 2. OBJECTIVES The learners will be able to:  Define Static Data and give examples  Define Dynamic Data and give examples  Compare the use of static information sources with dynamic information sources  Define direct and indirect data source  Understand the advantages and disadvantages of gathering data from direct and indirect data sources
  • 3. DATA STRUCTURE  What is a data structure? “A data structure is a collection of data items that is implemented by various development tools.”
  • 5. STATIC DATA STRUCTURE  The size of the data structure is fixed  Static data structures are very good for storing a well-defined number of data items.  For example, if we want to design an ID field for employees of an organization. We can suggest it to be a fixed format e.g. “HIS000”; where the 1st 3 characters are the initials of the organization and the other three the employee number e.g. HIS225.
  • 6. ADVANTAGES OF STATIC DATA STRUCTURES  The development tool can allocate space during compilation  Easy to program  Easy to check for overflow  Allows random access
  • 7. DISADVANTAGES OF STATIC DATA STRUCTURES  The developer has to estimate the maximum amount of space that is going to be needed.  A lot of space maybe wasted.
  • 9. DYNAMIC DATA STRUCTURE  There are many situations where the number of items to be stored in NOT known in advance e.g. the length of someone’s name may NOT be the same as any other’s name.  In this case, the developer would be using a dynamic data structure. This means that the data structure is allowed to grow and shrink as the demand for storage arises.  The developer should also set a maximum size to help avoid memory collisions.
  • 10. DYNAMIC DATA STATIC DATA Memory is allocated to the data structure dynamically. Memory is allocated at compile time. Fixed size. Limitation: As the memory allocation is dynamic, it is possible to ‘overflow’ should it exceed it’s allowed limit. It can also ‘underflow’ if it becomes empty. Benefit: The memory allocation is fixed and so there will be no problem with adding an removing data items. Benefit: Makes the most efficient use of memory as the data structure – only uses as much memory it needs. Limitation: Can be very inefficient as the memory for the data structure has been set aside regardless we use it or not. Limitation: Harder to program as the software needs to keep track of its size and data item locations at all times. Benefit: Easier to program as there is no need to check on data structure size at any point.