COMP9315 21T1 Final Exam The University of New South Wales
COMP9315 DBMS Implementation
21T1 Final Exam
DBMS Implementation
[Instructions] [PostgreSQL] [C]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8]

Question 4 (9 marks)

Consider a linear hashed file with the following properties

The keys are inserted in alphabetical order starting from 'a'.

Use this trigger for splitting: split before inserting every fifth tuple (i.e. just before inserting 'e', 'j', 'o', 't')

Show the state of the file(s) at the following points:

  1. immediately before each split operation (before inserting the new value)

  2. immediately after each split operation and after inserting the new value

  3. after inserting 'x'

The state should include:

An example (not using the above hash values) of what a state might look like:

[0] a,b,c -> n,o
[1] d,e,f -> p,q,r -> s,t
[2] g,h   -> u
[3] i,j,k
[4] l,m   -> v,w,x -> y,z

d = 2 sp = 1

Instructions:

End of Question