The OP provides clear evidence of the impossibility of sorting a merge of 8 elements with less than 17 comparisons. You can still sort 8 elements in 16 comparisons with another algorithm. The algorithm is described in D.Knuth, The Art of Computer Programming, Volume 3, Chapter 5.3.1. It is called a merge insert .
The smallest number of comparisons does not make this algorithm the fastest. For example, a Batcher odd-even mergesort with 19 comparisons will easily outperform a merge nest since it performs most comparisons in parallel.
Evgeny Kluev
source share