External Sorting Algorithm

Internal sorting conditions:

External sorting conditions:

External sorting algorithm criteria:

External sorting algorithm:

1. break a large data file into shorter "runs" of data, so that each
   run can fit to main memory and be sorted (using internal sorting algorithm).
2. merge two or more runs (depends on how many input buffers there are)
   together into a longer run.
3. repeat step 2 until there is only one sorted file.

Performance of the external sorting algorithm: