Adaptive sorting: an information theoretic perspective
We present two algorithms that are near optimal with respect to the number of inversions present in the input. One of the algorithms is a variation of insertion sort, and the other is a variation of merge sort. The number of comparisons performed by our algorithms, on an input sequence of length n t...
Gespeichert in:
Veröffentlicht in: | Acta informatica 2008-02, Vol.45 (1), p.33-42 |
---|---|
Hauptverfasser: | , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | We present two algorithms that are near optimal with respect to the number of inversions present in the input. One of the algorithms is a variation of insertion sort, and the other is a variation of merge sort. The number of comparisons performed by our algorithms, on an input sequence of length
n
that has
I
inversions, is at most
. Moreover, both algorithms have implementations that run in time
. All previously published algorithms require at least
comparisons for some
c
> 1. |
---|---|
ISSN: | 0001-5903 1432-0525 |
DOI: | 10.1007/s00236-007-0061-0 |