[2022] COMP9315 DBMS Implementation 22T1 - Final Exam - Q6 Split Operation
This question has been solved
Question 6 (10 marks)
Consider a linear hashed file with the following properties
CourseNana.COM
- initially with 2 (empty) pages in the file, d = 1, sp = 0
- able to hold up to 2 tuples per page
- an associated overflow file (initially empty, no pages)
- each page in the overflow file can also hold up to 2 tuples
A set of numeric keys (the numbers 1 to 32) are inserted into the file, in numeric order. Splits occur just before the insertion of the keys 6, 12, 18, 24, 30 The hash value of each key is simply the binary value of the number (e.g. hash(1) = 00000001, hash(15) = 00001111, and hash(21) = 00010101).
CourseNana.COM
Show the state of the file(s) at the following points:
CourseNana.COM
immediately before each split operation (before inserting the new value)
CourseNana.COM
immediately after each split operation and after inserting the new value
CourseNana.COM
The state should include:
CourseNana.COM
- the pages of the data file, with tuples indicated by key values
- the depth of the file (d), the position of the split pointer (sp)
- any overflow pages, linked to their corresponding data pages by arrows
An abstract example (not using the above hash values) of what a state might look like:
CourseNana.COM
[0] 1,2 -> 11,12
[1] 3,4
[2] 5,6 -> 13
[3] 7,8 -> 14,15 -> 16
[4] 9,10
d = 2 sp = 1
This is a sample just to show the format of states. It bears no relation to the hash values in this question.
CourseNana.COM
Instructions:
CourseNana.COM
- Type your answer to this question into the file called q6.txt
- Submit via: give cs9315 exam_q6 q6.txt
or via: Webcms3 > exams > Final Exam > Q6 submission > Make Submission
End of Question
Get the Solution to This Question
COMP9315代写,Database Implementation代写, The University of New South Wales.代写,SQL代写,COMP9315代编,Database Implementation代编, The University of New South Wales.代编,SQL代编,COMP9315代考,Database Implementation代考, The University of New South Wales.代考,SQL代考,COMP9315help,Database Implementationhelp, The University of New South Wales.help,SQLhelp,COMP9315作业代写,Database Implementation作业代写, The University of New South Wales.作业代写,SQL作业代写,COMP9315编程代写,Database Implementation编程代写, The University of New South Wales.编程代写,SQL编程代写,COMP9315programming help,Database Implementationprogramming help, The University of New South Wales.programming help,SQLprogramming help,COMP9315assignment help,Database Implementationassignment help, The University of New South Wales.assignment help,SQLassignment help,COMP9315solution,Database Implementationsolution, The University of New South Wales.solution,SQLsolution,