Adaptive Shivers Sort: An Alternative Sorting Algorithm
We present a new sorting algorithm, called
adaptive ShiversSort
, that exploits the existence of monotonic runs for sorting efficiently partially sorted data. This algorithm is a variant of the well-known algorithm
TimSort
, which is the sorting algorithm used in standard libraries of programming languages, such as Python or Java (for non-primitive types). More precisely,
adaptive ShiversSort
is a so-called
In this article, we prove that, although
adaptive ShiversSort
is simple to implement and differs only slightly from
TimSort
, its computational cost, in number of comparisons performed, is optimal within the class of
natural
merge-sort algorithms, up to a small additive linear term. This makes
adaptive ShiversSort
the first
Then, we investigate the optimality of
Top-30
Journals
|
1
|
|
|
Algorithmica
1 publication, 50%
|
|
|
PROBLEMS IN PROGRAMMING
1 publication, 50%
|
|
|
1
|
Publishers
|
1
|
|
|
Springer Nature
1 publication, 50%
|
|
|
National Academy of Sciences of Ukraine (Co. LTD Ukrinformnauka) (Publications)
1 publication, 50%
|
|
|
1
|
- We do not take into account publications without a DOI.
- Statistics recalculated weekly.