Aggregation & Duplicate Removal (cont.)
Nested Loops
- Easiest of the three
- Does not work well for large inputs
Sorting
- Sort for common elements which results in simple aggregation/duplicate removal
- Should remove duplicates as early as possible
Notes:
Nested loops- no cost evaluation is given.
Sorting- decided by the number of merge levels & the effect of early duplicate removal on each merge step.