9618/31/O/N/24 question 5: worked solution (October/November 2024, paper 31)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 13.2 File organisation and access Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 2 of 3. Q31 9618/31/O/N/24 original Q5 Structured · 5 marks Worked solution (a) 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] (b) 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] KEY IDEA A hash of the key gives the address; when two keys give the same address, move to the next free place or use an overflow area. TOTAL 5 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by ZAINEMATICS. Tap the picture to open it on YouTube.