When assessing the performance of external algorithms, we typically only count the number of disk operations needed to execute an algorithm. The paper defines n = N/B
and m = M/B
.
Phase 1 actually only needs Θ(n)
disk operations, since we only read and write each block once. It is now obvious that Θ(n) + Θ(n log n/m) = Θ(n log n/m)