13.2 - File Organisation and Access Flashcards
(7 cards)
1
Q
What is serial file organisation
A
- Method of file organisation
- Records are physically stored in a file
- One after another in the order they arrive
2
Q
What is sequential file organisation
A
- Method of file organization
- Records are physically stored in a file
- In a giver order based on the key field
3
Q
What is random file organisation
A
- Method of file organisation
- Records are physically stored in a file
- In any available position
- The position is found by applying a hashing algorithms to the key field
4
Q
What is sequential access
A
- Recordsa re searched one after another
- From the physical start of the file
- Untill record is found or end of file
- Used for serial and sequential file organisation
5
Q
What is direct access
A
- Records are found without reading other records
- For sequential, an index of key field in kept, and used to look up the address of required file
- For random, a hashing algorithm is usd on the key field to find the address
6
Q
What is open hashing
A
- When collision is detected
- File is searched linearly from the point of collision
- Record is stored in the next free space
7
Q
What is closed hashing
A
- An overflow array is setup beforehand
- When collision is detected
- Overflow array is searched linearly from the start
- Record is stored in the first avaialble space