Quiz 9, Q&Adi

Q. Describe sequential file organization scheme?

A.

  1. Fixed format used for records

  2. Records are the same length

  3. Field names and lengths are attributes of the file

  4. One field is the key field; Uniquely identifies the record, Records are stored in key sequence



Q. Describe indexed sequential file organization scheme? Compare with sequential file organization scheme?

A.






Comparison of sequential and indexed sequential lookup;

Example: a file contains 1 million records. On average 500,000 accesses are required to find a record in a sequential file. If an index contains 1000 entries, it will take on average 500 accesses to find the key, followed by 500 accesses in the main file. Now on average it is 1000 accesses.