Elementary Yet Precise Worst-case Analysis of MergeSort, A short version (SV)
Abstract
This paper offers two elementary yet precise derivations of an exact formula \[ W(n) = Σi=1 n i = n n - 2 n + 1 \] for the maximum number W(n) of comparisons of keys performed by MergeSort on an n -element array. The first of the two, due to its structural regularity, is well worth carefully studying in its own right. Close smooth bounds on W(n) are derived. It seems interesting that W(n) is linear between the points n = 2 n and it linearly interpolates its own lower bound n n - n + 1 between these points.
0