File organization methods (2024)

  • File organization refers to the way data is stored in a file. File organization is very important because it determines the methods of access, efficiency, flexibility and storage devices to use. There are four methods of organizing files on a storage media. This include:
  • sequential,
  • random,
  • serial and
  • indexed-sequential
  1. Sequential file organization
  • Records are stored and accessed in a particular order sorted using a key field.
  • Retrieval requires searching sequentially through the entire file record by record to the end.
  • Because the record in a file are sorted in a particular order, better file searching methods like the binary search technique can be used to reduce the time used for searching a file .
  • Since the records are sorted, it is possible to know in which half of the file a particular record being searched is located, Hence this method repeatedly divides the set of records in the file into two halves and searches only the half on which the records is found.
  • For example, of the file has records with key fields 20, 30, 40, 50, 60 and the computer is searching for a record with key field 50, it starts at 40 upwards in its search, ignoring the first half of the set.

Advantages of sequential file organization

  • The sorting makes it easy to access records.
  • The binary chop technique can be used to reduce record search time by as much as half the time taken.

Disadvantages of sequential file organization

  • The sorting does not remove the need to access other records as the search looks for particular records.
  • Sequential records cannot support modern technologies that require fast access to stored records.
  • The requirement that all records be of the same size is sometimes difficult to enforce.
  1. Random or direct file organization
  • Records are stored randomly but accessed directly.
  • To access a file stored randomly, a record key is used to determine where a record is stored on the storage media.
  • Magnetic and optical disks allow data to be stored and accessed randomly.

Advantages of random file access

  • Quick retrieval of records.
  • The records can be of different sizes.
  1. Serial file organization
  • Records in a file are stored and accessed one after another.
  • The records are not stored in any way on the storage medium this type of organization is mainly used on magnetic tapes.

Advantages of serial file organization

  • It is simple
  • It is cheap

Disadvantages of serial file organization

  • It is cumbersome to access because you have to access all proceeding records before retrieving the one being searched.
  • Wastage of space on medium in form of inter-record gap.
  • It cannot support modern high speed requirements for quick record access.
  1. Indexed-sequential file organization method
  • Almost similar to sequential method only that, an index is used to enable the computer to locate individual records on the storage media. For example, on a magnetic drum, records are stored sequential on the tracks. However, each record is assigned an index that can be used to access it directly.
File organization methods (2024)
Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 6287

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.