Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for sortedness.
Encyclopedia 3
Smoothsort
r performance on many nearly sorted inputs. However, it does not handle all nearly sorted sequences optimally. Using the count of inversions as a measure of un-sortedness (the number of pairs of indices and with and ; for randomly sorted input this is approximately ), there are possible input sequences with inversions which cause it to take time, whereas other adaptive sorting algorithms can solve these cases in time
Comparison sort
n = 2^10 = 1.024, On ~= 9*n n = 2^20 = 1.048.576, On ~= 19*n ===Sorting a pre-sorted list=== If a list is already close to sorted, according to some measure of sortedness, the number of comparisons required to sort it can be smaller. An adaptive sort takes advantage of this "presortedness" and runs more quickly on nearly-sorted inputs, often while still maintaining an O(n\log n) worst case time bound. An example is a
Inversion (discrete mathematics)
umber=== The inversion number \mathtt{inv}(X) of a sequence X=\langle x_1,\dots,x_n\rangle , is the cardinality of the inversion set. It is a common measure of sortedness (sometimes called presortedness) of a permutation or sequence. The inversion number is between 0 and \frac{n(n-1)}2 inclusive. A permutation and its inverse have the same inversion number. For example \mathtt{inv}(\langle1,2,\dots, n\rangle)=0 since
Dictionary 1
sortedness
The quality of being sorted
Papers 1
NP-hardness of sortedness constraints
OpenAlex work · 2015 · FR