paper

Top-Down Mergesort with Sorted Check Has Mergecost

arXiv:2608.08348

Abstract

We consider standard top-down recursive Mergesort, where we do a single comparison before calling merge to check if the two recursively sorted subproblems happens to already be correctly ordered. (If so, we can skip the merging step). We show for any input of elements consisting of runs (maximal increasing contiguous subranges in ) of respective lengths , the mergecost (the sum of output sizes of all merges) satisfies for the runlength entropy.