The Ford-Johnson Sorting Algorithm Is Not Optimal

Glenn K. Manacher · Journal of the ACM · 1979

One way of expressing the efficiency of a sorting algorithm is m terms of the number of palrwise comparisons required in the worst case to sort t items The most effioent algomhm known is that of Ford and Johnson [FJA], which achieves the "information-theoretic" lower bound [log t I] for l --< t _< I l and 21 _< t _< 22 No value of t has been discovered for which S(t) < F(t), where S(t) is the smallest number of comparisons required and F(t) is the number of comparisons required by the FJA It has been uncertain since the FJA first appeared in 1959 whether it is optimal in the sense that F(t) = S(t) for all t It is shown that this is not the case, and it ts shown constructively how to compute infinitely many t, t _> 189, for which F(t) -S(t) = kt -O(log t) for posiuve k The method is intimately related to the fact that substantial improvements to the merging algorithm of Hwang and Lm are possible, as shown in a companion paper.

Cited by 29 works. doi:10.1145/322139.322145 Open-access PDF

Authors

References