SlideShare a Scribd company logo
Storage and Multimedia Chapter 6 B.M.H
Index How data is organized  How to access the file File organization Sequential file organization Direct file organization Indexed file organization How to process the file Batch processing Transaction processing
How data is organized Raw data is organized into Characters  Fields Records File  Databases
How data is organized Characters  the smallest element A letter, digit, or special character Fields A set of related characters Records A collection of related fields
How data is organized File  A collection of related records Databases A collection of interrelated files stored together with minimum redundancy
How data is organized Key A field of particular interest A unique identifier for a record Ex. custom number, product number, social security number,
The File Plan The plan considered by some computer professional How to access the file File organization How to process the file
How to access the file
File organization Three major methods of organizing data files in secondary storage Sequential  file organization Direct  file organization Indexed  file organization
Sequential File Organization Records are arranged sequentially stored in order according to a key field To find a particular record  All the prior records in the file must be read  before the desired record is reached
Direct File Organization Random  file organization Allows direct (random) access The ability to go directly to the desired record  by using a record key The benefit  the ability to read, change, and return a record to its same place on the disk called  updating in place
Direct File Organization To find the record on a disk Used a certain formula to apply to the record key Deriving a number to use as the disk address Hashing, or randomizing algorithm The mathematical operation that is applied to a key to yield a number that represents the address
Simple Hashing Schemes A general idea of how the process works
 
Hashing Algorithm Collision For a hashing algorithm to produce the same disk address (called synonym) for two different records Even though the record keys are unique To recover from a collision One way : to use  the next available record slot  in the disk    fig 6-13
Indexed File Organization A compromise between the  sequential  and  direct methods Records  are stored  in sequential  order The file  also contains  an index The index contain The record  key The  address  associated with the key
Storage media Tape storage Limited to  sequential  file organization Disk storage  May be  sequential , and also accessed  directly a direct-access storage device (DASD) The computer can go directly to the desired record on the disk
How to process the file
Processing stored data Most business file processing involves processing  transactions  to update a  master file Transaction  : a business event that required the business’s records to be updated Ex. a retail sale, the receipt of ordered goods Master file  : contains data that must be updated as transactions occur Ex. an inventory file, an employee file, a customer file
Processing stored data Two main methods  Batch processing Transaction processing
Batch processing A technique of processing transaction data  in groups  at a more convenient later time Transactions are collected into batches to be processed at a time  when the computer may have few online users and thus be more accessible, often during the night No direct user interaction Ex. web page club’s member file
Batch processing Transaction file Contains all changes to be made to the master file: additions, deletions, and revisions Master file Periodically updated with the changes called for in the transaction file
Batch processing Changes are stored in transaction files Transaction file is sorted by a key field All the transactions are in sequential order Ex. By the member number of the webpage club Matching the keys from the mater file and transaction files Records of mater file already are in order CPU processes the appropriate action A newly updated master file is created
 
Batch processing Advantage Efficiency Disadvantage The master file is current only immediately after processing
Transaction processing A technique of processing transactions immediately, as they occur  Each transaction is handled immediately Real-time processing A transaction is processed fast enough for the result to come back and be acted upon right away Online :  the terminals must be connected directly to the computer Ex. bank withdrawal, flight reservation
Transaction processing Use disk storage  For direct access to the desired record Advantage  Immediate access  to stored data Immediate updating  of the stored data
 
Batch & Transaction  Processing Numerous computer system  combine the best features of both methods of processing Transaction processing : used for activities related to the current needs of people Batch processing : done at any time, even in the middle of the night
Batch & Transaction  Processing Ex. Store system Updating the individual item’s inventory Needed transaction processing Producing daily and weekly sales report  Used batch processing

More Related Content

PPT
Computers12 Ch6
PPT
Computers13 Ch6
PPT
Ie Storage, Multimedia And File Organization
PPT
File organization
PPT
Intro ch 05_a
PPTX
Concept of computer files
PPT
File structures
Computers12 Ch6
Computers13 Ch6
Ie Storage, Multimedia And File Organization
File organization
Intro ch 05_a
Concept of computer files
File structures

What's hot (16)

PPTX
Overview of physical storage media
PDF
File organisation
PPTX
Presentation on storage devices
PDF
Lecture 12
PPTX
Chap1 secondary storage
PPT
storage and file structure
PPT
File Management
PPTX
Storage devices ppt by abhishek srivastava
PPTX
PPT on Auxiliary Storage Devices
PPT
Storing Information in a Computer
PPT
Secondary storage devices
PPTX
Windows File Systems
PPT
New diskmgmt
PPT
04b storing data - storage devices
PPTX
Secondary memory
PPT
File management
Overview of physical storage media
File organisation
Presentation on storage devices
Lecture 12
Chap1 secondary storage
storage and file structure
File Management
Storage devices ppt by abhishek srivastava
PPT on Auxiliary Storage Devices
Storing Information in a Computer
Secondary storage devices
Windows File Systems
New diskmgmt
04b storing data - storage devices
Secondary memory
File management
Ad

Similar to Computers14 Ch6 (20)

PPTX
Wk 1 - File organization.pptx
PPTX
Chapter 12.pptx
PDF
ms-11.pdf
PPT
Ch 8 data base
PDF
File organization
PPTX
Ch 17 disk storage, basic files structure, and hashing
PDF
Physical Database Design for database student-1.pdf
PDF
Computer Science 12th Topic- introduction to syllabus.pdf
PPTX
Application portfolio development.advadisadvan.pptx
PDF
Computer Fundamentals Chapter 16 bdp
PPTX
2.7 use of ict in data management
PDF
Chapter 16 bdp
PPTX
Unit-1-Lecture-9.pptx file structure semester
PDF
fileorganizationandintroductionofdbms-210313163900.pdf
PPTX
File organization and introduction of DBMS
PPTX
File Structure.pptx
PPT
Chapter 3 part 1
PDF
Chapter1.0 database management system
PPT
File organisation
PPTX
File Management
Wk 1 - File organization.pptx
Chapter 12.pptx
ms-11.pdf
Ch 8 data base
File organization
Ch 17 disk storage, basic files structure, and hashing
Physical Database Design for database student-1.pdf
Computer Science 12th Topic- introduction to syllabus.pdf
Application portfolio development.advadisadvan.pptx
Computer Fundamentals Chapter 16 bdp
2.7 use of ict in data management
Chapter 16 bdp
Unit-1-Lecture-9.pptx file structure semester
fileorganizationandintroductionofdbms-210313163900.pdf
File organization and introduction of DBMS
File Structure.pptx
Chapter 3 part 1
Chapter1.0 database management system
File organisation
File Management
Ad

More from miuitprofessor (11)

PPT
Computers11 Ch5
PPT
Computers9 Ch5
PPT
Computers10 Ch5
PPT
Computers8 Ch4 3
PPT
Computers7 Ch4 2
PPT
Computers6 Ch4 1
PPT
MIU_Computer_Ch3
PPT
Computers3 Ch2
PPT
Computers4 Ch2
PPT
Computers Ch1
PPT
Computers2 Ch1
Computers11 Ch5
Computers9 Ch5
Computers10 Ch5
Computers8 Ch4 3
Computers7 Ch4 2
Computers6 Ch4 1
MIU_Computer_Ch3
Computers3 Ch2
Computers4 Ch2
Computers Ch1
Computers2 Ch1

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
1. Introduction to Computer Programming.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Big Data Technologies - Introduction.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Machine Learning_overview_presentation.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Getting Started with Data Integration: FME Form 101
cuic standard and advanced reporting.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
SOPHOS-XG Firewall Administrator PPT.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MIND Revenue Release Quarter 2 2025 Press Release
NewMind AI Weekly Chronicles - August'25-Week II
Advanced methodologies resolving dimensionality complications for autism neur...
1. Introduction to Computer Programming.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Programs and apps: productivity, graphics, security and other tools
Big Data Technologies - Introduction.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine Learning_overview_presentation.pptx
Spectroscopy.pptx food analysis technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Tartificialntelligence_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Getting Started with Data Integration: FME Form 101

Computers14 Ch6

  • 1. Storage and Multimedia Chapter 6 B.M.H
  • 2. Index How data is organized How to access the file File organization Sequential file organization Direct file organization Indexed file organization How to process the file Batch processing Transaction processing
  • 3. How data is organized Raw data is organized into Characters Fields Records File Databases
  • 4. How data is organized Characters the smallest element A letter, digit, or special character Fields A set of related characters Records A collection of related fields
  • 5. How data is organized File A collection of related records Databases A collection of interrelated files stored together with minimum redundancy
  • 6. How data is organized Key A field of particular interest A unique identifier for a record Ex. custom number, product number, social security number,
  • 7. The File Plan The plan considered by some computer professional How to access the file File organization How to process the file
  • 8. How to access the file
  • 9. File organization Three major methods of organizing data files in secondary storage Sequential file organization Direct file organization Indexed file organization
  • 10. Sequential File Organization Records are arranged sequentially stored in order according to a key field To find a particular record All the prior records in the file must be read before the desired record is reached
  • 11. Direct File Organization Random file organization Allows direct (random) access The ability to go directly to the desired record by using a record key The benefit the ability to read, change, and return a record to its same place on the disk called updating in place
  • 12. Direct File Organization To find the record on a disk Used a certain formula to apply to the record key Deriving a number to use as the disk address Hashing, or randomizing algorithm The mathematical operation that is applied to a key to yield a number that represents the address
  • 13. Simple Hashing Schemes A general idea of how the process works
  • 14.  
  • 15. Hashing Algorithm Collision For a hashing algorithm to produce the same disk address (called synonym) for two different records Even though the record keys are unique To recover from a collision One way : to use the next available record slot in the disk  fig 6-13
  • 16. Indexed File Organization A compromise between the sequential and direct methods Records are stored in sequential order The file also contains an index The index contain The record key The address associated with the key
  • 17. Storage media Tape storage Limited to sequential file organization Disk storage May be sequential , and also accessed directly a direct-access storage device (DASD) The computer can go directly to the desired record on the disk
  • 18. How to process the file
  • 19. Processing stored data Most business file processing involves processing transactions to update a master file Transaction : a business event that required the business’s records to be updated Ex. a retail sale, the receipt of ordered goods Master file : contains data that must be updated as transactions occur Ex. an inventory file, an employee file, a customer file
  • 20. Processing stored data Two main methods Batch processing Transaction processing
  • 21. Batch processing A technique of processing transaction data in groups at a more convenient later time Transactions are collected into batches to be processed at a time when the computer may have few online users and thus be more accessible, often during the night No direct user interaction Ex. web page club’s member file
  • 22. Batch processing Transaction file Contains all changes to be made to the master file: additions, deletions, and revisions Master file Periodically updated with the changes called for in the transaction file
  • 23. Batch processing Changes are stored in transaction files Transaction file is sorted by a key field All the transactions are in sequential order Ex. By the member number of the webpage club Matching the keys from the mater file and transaction files Records of mater file already are in order CPU processes the appropriate action A newly updated master file is created
  • 24.  
  • 25. Batch processing Advantage Efficiency Disadvantage The master file is current only immediately after processing
  • 26. Transaction processing A technique of processing transactions immediately, as they occur Each transaction is handled immediately Real-time processing A transaction is processed fast enough for the result to come back and be acted upon right away Online : the terminals must be connected directly to the computer Ex. bank withdrawal, flight reservation
  • 27. Transaction processing Use disk storage For direct access to the desired record Advantage Immediate access to stored data Immediate updating of the stored data
  • 28.  
  • 29. Batch & Transaction Processing Numerous computer system combine the best features of both methods of processing Transaction processing : used for activities related to the current needs of people Batch processing : done at any time, even in the middle of the night
  • 30. Batch & Transaction Processing Ex. Store system Updating the individual item’s inventory Needed transaction processing Producing daily and weekly sales report Used batch processing