Unlike Tow Way External Merge Sortpages]] into buffer as many as possible.
Say we have buffer pages. We have optimizations compared to Tow Way External Merge Sort:
- Load pages in to buffer and sort them all at once.
- Merge sorted runs because we should take 1 buffer as ouput.
I/O cost:
- Number of passes:
- Total I/Os = (I/Os per pass) (# of passes) =