Encroaching lists are a generalization of monotone sequences in permutations. Since ordered permutations contain fewer encroaching lists than random ones, the number of such lists m provides a measure of presortedness with advantages over others in the literature. Experimental and analytic results are presented to cast light on the properties of encroaching lists. Also, we describe a new sorting algorithm, melsort, with complexity O(nlog m). Thus it is linear for well ordered sets and reduces to mergesort and O(nlog n) in the worst case. © 1988 BIT Foundations.
CITATION STYLE
Skiena, S. S. (1988). Encroaching lists as a measure of presortedness. BIT, 28(4), 775–784. https://doi.org/10.1007/BF01954897
Mendeley helps you to discover research relevant for your work.