Lecture 1 File Organization _060238
Lecture 1 File Organization _060238
1
Objectives of the Course
3
Course Outline
1. Introduction To File Management.
2. Fundamental File Processing Operations .
3. Secondary Storage, Physical Storage Devices: Disks, Tapes And
CD-ROM.
4. Fundamental File Structure .
5. Managing Files Of Records.
6. Organizing File for Performance (File Compression- Reclaiming
Space In Files- Internal Sorting- Binary Searching- Keysorting).
7. Indexing.
8. Consequential Processing And Eternal Sorting.
9. Multilevel Indexing and B Trees.
10. Indexed Sequential Files and B+trees.
11. Hashing and Extendible Hashing.
4
Purpose of the course
6
Outline
7
Definition
8
Definition
Data structure VS File Structure
Both involve:
Representation of Data
+
Operations for accessing data
►Difference:
– Data Structures deal with data in main memory
– File Structures deal with data in secondary storage device (File).
Definition
Computer Architecture
Why Study File Structure Design?
I. Data Storage
• Computer Data can be stored in three kinds of locations:
•Primary Storage ==> Memory [Computer
Memory]
Our
•Secondary Storage [Online Disk/ Tape/ CDRom that can be
accessed by the computer]
Focus
•Tertiary Storage ==> Archival Data [Offline
Disk/Tape/ CDRom not directly available to the computer.]
11
Why Study File Structure Design?
II. Memory versus Secondary Storage
12
Why Study File Structure Design?
III. How Can Secondary Storage Access Time be
Improved?
By improving the File Structure.
Since the details of the representation of the data and the
implementation of the operations determine the efficiency of the file
structure for particular applications, improving these details can help
improve secondary storage access time.
13
Overview of File Structure Design
I. General Goals
14
Overview of File Structure Design
II. Fixed versus Dynamic Files
• It is relatively easy to come up with file structure designs that meet
the general goals when the files never change.
• When files grow or shrink when information is added and deleted, it
is much more difficult.
15
History of File Structures
I. Early Work
16
History of File Structures
II. The emergence of Disks and Indexes
• As files grew very large, unaided sequential access was not a good
solution.
• Disks allowed for direct access.
• Indexes made it possible to keep a list of keys and pointers in a small
file that could be searched very quickly.
• With the key and pointer, the user had direct access to the large,
primary file.
17