Exercise 3: Cost of Relation Copy
Analyse cost for relation copying:
- if both input and output are heap files
- if input is sorted and output is heap file
- if input is heap file and output is sorted
Assume bin = number of pages in input file
Give cost in terms of #pages read + #pages written
|