FDSUNIT4
FDSUNIT4
● Record: (Group/ Segment) it is a collection of information items about a particular entity. E.g. A
collection of information about a student in a college.
● Field/Item: An item of a record is a unit of meaningful information about an entity. E.g. Name, Id no,
Address of a student.
● File: A collection of records involving a set of entities with certain aspects in common and organized
for some particular purpose is called file. E.g. Collection of all students’ records makes a file.
● Key: A record item or field which uniquely identifies a record in a file is called a key. E.g. IdNo Of a
student for student record.
● Database: If the set of files is used by the application programs for some particular application area
and if these files exhibit certain associations or relationships between the records of the files then such
a collection of files is called as database. e.g student database which has files/tables like student
information, result, attendance, registration, placement etc. In which all these different have
relationship and association between them.
● Transaction: A particular operation involving a record or set of records is called as transaction. E.g.
“Delete all students of batch = 00”
● Fields, records, files and databases are logical terms.
● Block/Physical record: Several logical records can be groped together to form a single physical entity
to be stored on physical device is called as block or physical record.
● Serial–access device: The devices on which data is stored serially and can be retrieved only serially
and access time of any data is proportional to the location of the data on device, are called as serial
device. These devices are cheap compared to direct access devices. E.g. Magnetic tape.
● Direct-access Device: The devices for which access time for two records don’t depend upon their
location in memory are called as direct access devices. These devices are costly. E.g. Magnetic disk.
● File Organization: The technique used to represent and store the records on a file is called as file
organization.
The 4 fundamental File Organizations Are:
1. Sequential
2. Direct/ Random
3. Index Sequential
4. Multi key
○Storing Sequential file: Sequential files can be stored on serial- access as well as direct- access
devices.
○Advantages:
○Disadvantages:
1. If pattern of access do not match with record ordering pattern then Access time goes very high.
2. Data can be accessed sequentially only.
○ Advantages:
1. Ability to access individual record directly. i.e. a record can be retrieved, inserted, modified or
deleted without affecting other records.
2. Access time for one record at a time is very good.
○ Disadvantages:
1. When all records are to be accessed at a time then it gives poor performance.
AXE I
.
.
.
BAT N-1
CAT N
End of file
●
00CP015 N/2
.
.
.
00CP100 N
Position
00CP050 N/2
00CP007 2 NajfhajkefhNaofjadfj N/
……… …….
00CP010 3 NajfhajkefhNaofjadfj N/
00CP100 N NajfhajkefhNaofjadfj N/
00CP001 1 NajfhajkefhNaofjadfj N/
You can see the advantage of Multi key file organization that you can search all the records of particular
A/C type directly from inverted file as well as all records based on A/C no also.