Merge Strategies: from Merge Sort to TimSort - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2015

Merge Strategies: from Merge Sort to TimSort

Résumé

The introduction of TimSort as the standard algorithm for sorting in Java and Python questions the generally accepted idea that merge algorithms are not competitive for sorting in practice. In an at- tempt to better understand TimSort algorithm, we define a framework to study the merging cost of sorting algorithms that relies on merges of monotonic subsequences of the input. We design a simpler yet competi- tive algorithm in the spirit of TimSort based on the same kind of ideas. As a benefit, our framework allows to establish the announced running time of TimSort, that is, O(n log n).
Fichier principal
Vignette du fichier
merge_strategies.pdf (330.95 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01212839 , version 1 (07-10-2015)
hal-01212839 , version 2 (09-12-2015)

Identifiants

  • HAL Id : hal-01212839 , version 2

Citer

Nicolas Auger, Cyril Nicaud, Carine Pivoteau. Merge Strategies: from Merge Sort to TimSort. 2015. ⟨hal-01212839v2⟩
5210 Consultations
5419 Téléchargements

Partager

Gmail Facebook X LinkedIn More