COMP9315 22T1 Final Exam |
The University of New South Wales COMP9315 DBMS Implementation 22T1 Final Exam |
DBMS Implementation |
Duplicate removal in projection can be implemented using either sorting or hashing.
Consider a projection scenario where
Assume that we have a buffer pool with B = 31 buffers available for exclusive use of the projection operation. Assume also that the hash function distributes tuples evenly, and that the total number of pages in the hash partitions is the same as bp.
calculate the total cost of projection using sorting for duplicate removal
calculate the total cost of projection using hashing for duplicate removal
Costs are in terms of total page read/writes. Include the cost of reading the original file and the cost of writing the result file.
State all assumptions. Show all working.
Instructions: