4.4 File Organisation Flashcards

1
Q

Serial File

A

Stores records in the order they are recieved

  • difficult to locate specific record as whole file has to to be traverse, not efficient for searching

+ ideal for small data sets, simplistic to implement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Sequential File

A

ordered in a specifc mannor like aphabtically

+ more efficient searching as its ordered
- writing data, if you need to insert something in the middle it can be difficult as the whole file needs to be read and rewritten

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Indexed sequential file

A

Same as sequential file but each section (not record) has an index which allows a broad search for a section that contains a record, then an more in depth sequential search into that section to find the record.

  • index takes up storage space and requires updating
    + extremely fast searching
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Random access file

A

inputs data key, then the hashing algorithm uses the key to produce an address of a record. Use the same data key to return that record.

+ instant access, no reading through data

  • collisions can occur when hashing algorithm produces the same address for two or more records. They can be resolved using an overflow file (which uses sequqntial storage) which when a record is assigned a taken address then its put in this area. So when locating at this address it returns the record at this address and then the system knows to check the overflow file for the other record. Can also be resolved using linear probing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Multi level index

A

Speeds up access by creating index ‘ranges’ that point to another index, as you follow the index link you get closer to the actual data. The last index cotains the physical address of the record. This index link may continue several times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly