Professional Documents
Culture Documents
Bluecrest College Ghana
Bluecrest College Ghana
Any insert, update or delete transaction on records should be easy, quick and should not
harm other records.
There are various methods of file organizations. These methods may be efficient for certain
types of access/selection meanwhile it will turn inefficient for other selections. Hence it is
up to the programmer to decide the best suited file organization method depending on his
requirement.
The types of file organizations are:
a) Serial file
b) Sequential file
c) Direct or random access file
d) Indexed-sequential file
Serial file : Serial file organization is the simplest file organization method. In serial files, records
are entered in the order of their creation. As such, the file is unordered, and is at best
in chronological order. Serial files are primarily used as transaction files in which the
transactions are recorded in the order that they occur.
Sequential file : The sequential file organization In this file organization, the records of the file are
stored one after another both physically and logically. That is, record with sequence
number 16 is located just after the 15th record. A record of a sequential file can only be
accessed by reading all the previous records.
A sequential file is designed for efficient processing of records in sorted order on
some search key.
Records are chained together by pointers to permit fast retrieval in search key
order.
Records are stored physically in search key order (or as close to this as possible).
If insertions rarely occur, we could keep the file in physically sorted order and
reorganize when insertion occurs. In this case, the pointer fields are no longer
required.
Direct or random access file : In computer science, random access (more precisely and more generally called direct
access) is the ability to access an item of data at any given coordinates in a population
of addressable elements. As a rule the assumption is that each element can be accessed
roughly as easily and efficiently as any other, no matter how many elements may be in
the set, nor how many coordinates may be available for addressing the data. For
Each record has its own address on the file with by the help of which it can be