We settle a long-standing open question, namely whether it is possible to sort a sequence of n elements stably (i.e. preserving the original relative order of the equal elements), using O(1) auxiliary space and performing O(n log n) comparisons and O(n) data moves. Munro and Raman stated this problem in [J. Algorithms, 13, 1992] and gave an in-place but unstable sorting algorithm that performs O(n) data moves and O(n1+e) comparisons. Subsequently [Algorithmica, 16, 1996] they presented a stable algorithm with these same bounds. Recently, Franceschini and Geffert [FOGS 2003] presented an unstable sorting algorithm that matches the asymptotic lower bounds on all computational resources.
Sorting Stably, In-Place, with O(n log n) Comparisons and O(n) Moves / Franceschini, Gianni. - STAMPA. - 3404:(2005), pp. 629-640. ( STACS stuttgart ) [10.1007/978-3-540-31856-9_52].
Sorting Stably, In-Place, with O(n log n) Comparisons and O(n) Moves
FRANCESCHINI, GIANNI
2005
Abstract
We settle a long-standing open question, namely whether it is possible to sort a sequence of n elements stably (i.e. preserving the original relative order of the equal elements), using O(1) auxiliary space and performing O(n log n) comparisons and O(n) data moves. Munro and Raman stated this problem in [J. Algorithms, 13, 1992] and gave an in-place but unstable sorting algorithm that performs O(n) data moves and O(n1+e) comparisons. Subsequently [Algorithmica, 16, 1996] they presented a stable algorithm with these same bounds. Recently, Franceschini and Geffert [FOGS 2003] presented an unstable sorting algorithm that matches the asymptotic lower bounds on all computational resources.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


