Analysis of Access Pattern
one pass to sort into groups of 4.
- Pass touches n key locations.
log2(n/4) merge passes.
- Each pass touches 2n key locations, n in the source array and n in the destination array.
One copy pass if log2(n/4) is odd.
- Pass touches 2n key locations.