The Movement Complexity of Sorting
Sichen Wang
Key points
From the paper's conclusion- For every $d$ and $r$ we determine the expected movement needed to sort $n$ keys: it is $n^{\beta}$ up to polylogarithmic factors, where $\beta=1+D^{r-1}/(D^{r}-(D-1)^{r})$ and $D=2d$, falling from $n^{2}$ at $r=1$ to $n^{1+1/(2d)}$ with unlimited rounds.
Abstract
The complexity of sorting is usually measured by the number of comparisons. This measure ignores the movement of the read heads between comparisons, which is a real cost on many machines. We study this cost on its own. Keys lie on a $d$-dimensional grid, two heads move over the grid and compare the keys beneath them, and the only cost is the total movement of the heads. The algorithm plans its route in $r$ rounds and sees the outcomes of each round only after running it. For every $d$ and $r$ we determine the expected movement needed to sort $n$ keys: it is $n^{\beta}$ up to polylogarithmic factors, where $\beta=1+D^{r-1}/(D^{r}-(D-1)^{r})$ and $D=2d$, falling from $n^{2}$ at $r=1$ to $n^{1+1/(2d)}$ with unlimited rounds. Our algorithm makes every round move about the same amount, and a matching lower bound holds against every algorithm.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Straightforward Entropy-Sensitive MergesortarXiv · 2026
- A Near-Optimal Generalized Sorting AlgorithmarXiv · 2026
- Generalized Sorting via Four-CyclesarXiv · 2026
- Sorting by block-reversals: closing the gaparXiv · 2026
- Tight Bounds for Distance-Unbiased SortingarXiv · 2026
- Two-Dimensional Search for a Moving Target on Rectangular and Cylindrical GridsarXiv · 2026