SlideShare una empresa de Scribd logo
1 de 36
A PRESENTATION ON
FILE ORGANIZATION
SS2 DATA PROCESSING
FILE
ORGANIZATION
OBJECTIVES
By the end of this lesson, the students should
be able to;
• Define file organization
• State the types of file organization
• Sate the efficiency of file organization
• Sate the significance of choosing of an
appropriate file organization for your data
FILE
• A file is a collection of data stored on
a storage media, that is treated as a
single unit on a peripheral device.
Types of Data Files
• There are numerous types of files used for
storing data needed for processing, reference
or back up.
• The main common types of processing files
include
 Master File
 Transaction (movement or activity) file
 Reference file
 Backup file
 Report file
Types of Data Files
• Master File
It contains record of permanent data types.
They are created when you install your
business.
• Transaction (movement or activity) file
A transaction file is used to hold data during
transaction processing. The file is later used
to update the master file and audit daily,
weekly or monthly transactions.
Types of Data Files
• Reference file
A reference file is mainly used for reference or look-
up purposes. Look-up information is that
information that is stored in a separate file but is
required during processing.
• Backup file
A backup files is used to hold copies (backups) of
data or information from the computers fixed
storage (hard disk
STORAGE DEVICES
CHARACTERISTICS
• The major storage media
are;
• Tape (Magnetic technology)
• Hard Disk (Optical Technology)
• Solid State Drive (Flash memory/Solid
state memory)
TERMINOLOGIES
• Seek Time is defined as the time required by the
read/write head to move from one track to another.
• Rotational latency (sometimes called rotational
delay or just latency) is the delay waiting for the
rotation of the disk to bring the required disk sector
under the read-write head.
• Access time is total time it takes a computer to
request data, and then that request to be met
• The access time, therefore, depends on the seek
time and the latency time.
TERMINOLOGIES
• Fixed-length records - all the records are exactly
the same length. (read the note for more)
• Variable-length records - the length of each record
varies.
TYPES OF FILE ORGANIZATION
FILE ORGANIZATION
File organization refers to the way records
are physically arranged on a storage device
The main types of file organization are;
Sequential
Indexed Sequential
Direct Access /Random
Access/Hash/Relative
TYPES OF FILE ORGANIZATION
Other types are;
• Heap File Organization
• Cluster File Organization
• B+ Tree File Organization
Sequential File Organization
Here each file/records are stored one after the
other in a sequential manner, that is, in the
order in which they are created. This can be
achieved in two ways:
pile or serial file method
sorted file method
Sequential File Organization
Pile or Serial method
Records are stored one after the other as they
are inserted into the tables, they are unordered.
When a new record is inserted, it is placed at the
end of the file. In the case of any modification or
deletion of record, the record will be searched in
the memory blocks. Once it is found, it will be
marked for deleting
Cannot be used as master
Used as temporary transaction file
Sequential File Organization
Sorted method
A collection of records
Stored in key sequence
Adding/deleting record requires making new
file
Used as master files
Advantages
Simple file design
Very efficient when most of the records must
be processed e.g. Payroll
Very efficient if the data has a natural order
Can be stored on inexpensive devices like
magnetic tape.
Disadvantages
For the sorted method, entire file must be
processed even if a single record is to be
searched, hence time consuming.
Overall processing is slow
Random enquiries not possible to handle
Examples of media in Sequential
orgnization
Tape
Video Cassettes
Music cassettes
Direct (Random) File Organization
Records are read directly from or written on
to the file.
The records are stored at known address.
Address is calculated by applying a
mathematical function (hashing
function) to the key field.
Records can be accessed both
randomly and sequentialy
Direct (Random) File Organization
A random file would have to be stored on a
direct access backing storage medium e.g.
magnetic disc, CD, DVD, flash drive, Blu-
ray disk.
Example : Any information retrieval system.
Eg Train timetable system.
Advantages
Any record can be directly accessed.
Speed of record processing is very fast.
Up-to-date file because of online updating.
Concurrent processing is possible.
Disadvantages
More complex than sequential
Does not fully use memory locations
More security and backup problems
(backup facility needed)
Indexed sequential file
Each record of a file has a key field which
uniquely identifies that record.
An index consists of keys and addresses.
An indexed sequential file is a sequential
file (i.e. sorted into order of a key field) which
has an index.
A full index to a file is one in which there is
an entry for every record.
Indexed sequential file
Indexed sequential file
Indexed sequential files are important for
applications where data needs to be
accessed.....
–
–
sequentially
randomly using the index.
Indexed sequential file
An indexed sequential file can only be stored
on a random access device
e.g. magnetic disc, CD.
Advantages
Provides flexibility for users who need both
type of accesses with the same file
Faster than sequential
Disadvantages
Extra storage space for the index is
required
• Less efficient in storage
Factors to consider when choosing
a file organization method.
• Frequency of update: A file that needs to be
updated every now and then needs an
organization method that will allow easy retrieval
of information and ease of updating, example of
such a file is the transaction file.
• File activity: Different files have different
activities, example a sort file is used to sort data
in sequential order and therefore sequential
method would be appropriate for such a file.
Factors to consider when choosing
a file organization method.
• File access method: Definitely different files
have different methods of being accessed,
example a reference file is accessed using
random method for easy retrieval of data.
• Nature of the system: Files that are used in a
particular system will depend on the nature of
the system i.e the suitable organization method
for that particular system.
Factors to consider when choosing
a file organization method.
• Master file medium: The master file is the main
file for keeping permanent updates of records
from transaction files and other sources, the
medium by which it is updated will determine
the organization method to be used.

Más contenido relacionado

La actualidad más candente

Structured system analysis
Structured system analysisStructured system analysis
Structured system analysis
learnt
 

La actualidad más candente (20)

Data warehouse design
Data warehouse designData warehouse design
Data warehouse design
 
Data structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pdData structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pd
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
System design
System designSystem design
System design
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
 
Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for files
 
Erd practice exercises
Erd practice exercisesErd practice exercises
Erd practice exercises
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
 
Data Cleaning Techniques
Data Cleaning TechniquesData Cleaning Techniques
Data Cleaning Techniques
 
Data warehouse testing
Data warehouse testingData warehouse testing
Data warehouse testing
 
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
AD3251-Data Structures  Design-Notes-Searching-Hashing.pdfAD3251-Data Structures  Design-Notes-Searching-Hashing.pdf
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
 
The Waterfall Model
The Waterfall ModelThe Waterfall Model
The Waterfall Model
 
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptxChapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
 
Structured system analysis
Structured system analysisStructured system analysis
Structured system analysis
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
DATABASE MANAGEMENT
DATABASE MANAGEMENTDATABASE MANAGEMENT
DATABASE MANAGEMENT
 
Rdbms
RdbmsRdbms
Rdbms
 
Relational databases
Relational databasesRelational databases
Relational databases
 

Similar a Wk 1 - File organization.pptx

Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdy
Mohamed Magdy
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
FraolUmeta
 

Similar a Wk 1 - File organization.pptx (20)

Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdy
 
File organization
File organizationFile organization
File organization
 
File Management
File ManagementFile Management
File Management
 
FIle Organization.pptx
FIle Organization.pptxFIle Organization.pptx
FIle Organization.pptx
 
File organisation in system analysis and design
File organisation in system analysis and designFile organisation in system analysis and design
File organisation in system analysis and design
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
File Structure.pptx
File Structure.pptxFile Structure.pptx
File Structure.pptx
 
File organization
File organizationFile organization
File organization
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptx
 
File Management
File ManagementFile Management
File Management
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
File Management & Access Control
File Management & Access Control File Management & Access Control
File Management & Access Control
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptx
 
File organization and introduction of DBMS
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMS
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
 
File Systems
File SystemsFile Systems
File Systems
 
File organization
File organizationFile organization
File organization
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
 
File system and Deadlocks
File system and DeadlocksFile system and Deadlocks
File system and Deadlocks
 
overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam
 

Último

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Wk 1 - File organization.pptx

  • 1. A PRESENTATION ON FILE ORGANIZATION SS2 DATA PROCESSING
  • 3. OBJECTIVES By the end of this lesson, the students should be able to; • Define file organization • State the types of file organization • Sate the efficiency of file organization • Sate the significance of choosing of an appropriate file organization for your data
  • 4. FILE • A file is a collection of data stored on a storage media, that is treated as a single unit on a peripheral device.
  • 5. Types of Data Files • There are numerous types of files used for storing data needed for processing, reference or back up. • The main common types of processing files include  Master File  Transaction (movement or activity) file  Reference file  Backup file  Report file
  • 6. Types of Data Files • Master File It contains record of permanent data types. They are created when you install your business. • Transaction (movement or activity) file A transaction file is used to hold data during transaction processing. The file is later used to update the master file and audit daily, weekly or monthly transactions.
  • 7. Types of Data Files • Reference file A reference file is mainly used for reference or look- up purposes. Look-up information is that information that is stored in a separate file but is required during processing. • Backup file A backup files is used to hold copies (backups) of data or information from the computers fixed storage (hard disk
  • 8. STORAGE DEVICES CHARACTERISTICS • The major storage media are; • Tape (Magnetic technology) • Hard Disk (Optical Technology) • Solid State Drive (Flash memory/Solid state memory)
  • 9.
  • 10.
  • 11.
  • 12. TERMINOLOGIES • Seek Time is defined as the time required by the read/write head to move from one track to another. • Rotational latency (sometimes called rotational delay or just latency) is the delay waiting for the rotation of the disk to bring the required disk sector under the read-write head. • Access time is total time it takes a computer to request data, and then that request to be met • The access time, therefore, depends on the seek time and the latency time.
  • 13. TERMINOLOGIES • Fixed-length records - all the records are exactly the same length. (read the note for more) • Variable-length records - the length of each record varies.
  • 14. TYPES OF FILE ORGANIZATION FILE ORGANIZATION File organization refers to the way records are physically arranged on a storage device The main types of file organization are; Sequential Indexed Sequential Direct Access /Random Access/Hash/Relative
  • 15. TYPES OF FILE ORGANIZATION Other types are; • Heap File Organization • Cluster File Organization • B+ Tree File Organization
  • 16. Sequential File Organization Here each file/records are stored one after the other in a sequential manner, that is, in the order in which they are created. This can be achieved in two ways: pile or serial file method sorted file method
  • 17. Sequential File Organization Pile or Serial method Records are stored one after the other as they are inserted into the tables, they are unordered. When a new record is inserted, it is placed at the end of the file. In the case of any modification or deletion of record, the record will be searched in the memory blocks. Once it is found, it will be marked for deleting Cannot be used as master Used as temporary transaction file
  • 18.
  • 19. Sequential File Organization Sorted method A collection of records Stored in key sequence Adding/deleting record requires making new file Used as master files
  • 20.
  • 21. Advantages Simple file design Very efficient when most of the records must be processed e.g. Payroll Very efficient if the data has a natural order Can be stored on inexpensive devices like magnetic tape.
  • 22. Disadvantages For the sorted method, entire file must be processed even if a single record is to be searched, hence time consuming. Overall processing is slow Random enquiries not possible to handle
  • 23. Examples of media in Sequential orgnization Tape Video Cassettes Music cassettes
  • 24. Direct (Random) File Organization Records are read directly from or written on to the file. The records are stored at known address. Address is calculated by applying a mathematical function (hashing function) to the key field. Records can be accessed both randomly and sequentialy
  • 25. Direct (Random) File Organization A random file would have to be stored on a direct access backing storage medium e.g. magnetic disc, CD, DVD, flash drive, Blu- ray disk. Example : Any information retrieval system. Eg Train timetable system.
  • 26. Advantages Any record can be directly accessed. Speed of record processing is very fast. Up-to-date file because of online updating. Concurrent processing is possible.
  • 27. Disadvantages More complex than sequential Does not fully use memory locations More security and backup problems (backup facility needed)
  • 28. Indexed sequential file Each record of a file has a key field which uniquely identifies that record. An index consists of keys and addresses. An indexed sequential file is a sequential file (i.e. sorted into order of a key field) which has an index. A full index to a file is one in which there is an entry for every record.
  • 30. Indexed sequential file Indexed sequential files are important for applications where data needs to be accessed..... – – sequentially randomly using the index.
  • 31. Indexed sequential file An indexed sequential file can only be stored on a random access device e.g. magnetic disc, CD.
  • 32. Advantages Provides flexibility for users who need both type of accesses with the same file Faster than sequential
  • 33. Disadvantages Extra storage space for the index is required • Less efficient in storage
  • 34. Factors to consider when choosing a file organization method. • Frequency of update: A file that needs to be updated every now and then needs an organization method that will allow easy retrieval of information and ease of updating, example of such a file is the transaction file. • File activity: Different files have different activities, example a sort file is used to sort data in sequential order and therefore sequential method would be appropriate for such a file.
  • 35. Factors to consider when choosing a file organization method. • File access method: Definitely different files have different methods of being accessed, example a reference file is accessed using random method for easy retrieval of data. • Nature of the system: Files that are used in a particular system will depend on the nature of the system i.e the suitable organization method for that particular system.
  • 36. Factors to consider when choosing a file organization method. • Master file medium: The master file is the main file for keeping permanent updates of records from transaction files and other sources, the medium by which it is updated will determine the organization method to be used.

Notas del editor

  1. For a fixed head disk, the seek time is 0).
  2. For a fixed head disk, the seek time is 0).