An In-Place Sorting with O(n log n) Comparisons and O(n) Moves
Gianni Franceschini, Viliam Geffert
Abstract
We present the first in-place algorithm for sorting an array of size n that performs, in the worst case, at most O(n log n) element comparisons and O(n) element transports. This solves a long-standing open problem, stated explicitly, e.g., in [J.I. Munro and V. Raman, Sorting with minimum data movement, J. Algorithms, 13, 374-93, 1992], of whether there exists a sorting algorithm that matches the asymptotic lower bounds on all computational resources simultaneously.
Create a lesson
Related papers
Near-Optimal Parallel M-Matrix Scaling
Chih-Hung Liu, Aaron Sidford, Ta-Wei Tu
Subgraph Counting with Local Node Differential Privacy
Sofya Raskhodnikova, Adam Smith, Connor Wagaman et al.
Tree Edit Distance: Near-Linear-Time Approximate, Sublinear, and Dynamic
Bingbing Hu, Tomasz Kociumaka, Jakob Nogler et al.
Per-State Signatures and Mean Time-to-Failure: An Algorithm for Systems With Simultaneous Failures
Guido Lagos, Simón Ávila
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Jakob Nogler, Agnès Totschnig, Virginia Vassilevska Williams
Parameterized Complexity of Isometric Path Cover: Treewidth and Diameter
Dibyayan Chakraborty, Oscar Defrain, Florent Foucaud et al.