Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 2 of 3.
A hashing algorithm is used with direct access, on random and sequential files. [1]
It is a mathematical formula that is applied to the key field of the record being stored or searched for. [1]
The result of the calculation is the address where the record is stored or should be found. [1]
Any two of these:
Store the record in the next free location after the one the algorithm gave (linear probing). [1]
Set up an overflow area and store the record in the next free space there. [1]
▶ Topic lesson
A lesson on this topic · by ZAINEMATICS. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.