<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sorting |</title><link>https://sichenwang.com/tags/sorting/</link><atom:link href="https://sichenwang.com/tags/sorting/index.xml" rel="self" type="application/rss+xml"/><description>Sorting</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 31 Oct 2026 00:00:00 +0000</lastBuildDate><image><url>https://sichenwang.com/media/icon_hu_9dfcb674aa885f38.png</url><title>Sorting</title><link>https://sichenwang.com/tags/sorting/</link></image><item><title>The Movement Complexity of Sorting</title><link>https://sichenwang.com/publications/movement-complexity-of-sorting/</link><pubDate>Sat, 31 Oct 2026 00:00:00 +0000</pubDate><guid>https://sichenwang.com/publications/movement-complexity-of-sorting/</guid><description>&lt;article class="ltx_document ltx_authors_1line"&gt;
&lt;div class="ltx_pagination ltx_role_newpage"&gt;&lt;/div&gt;
&lt;section id="S1" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="introduction"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;1 &lt;/span&gt;Introduction&lt;/h2&gt;
&lt;div id="S1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The comparison model counts comparisons and nothing else, which for sorting gives the classical
$\Theta(n\log n)\text{.}$ This count is not the whole cost of sorting. On general sequential models the product
of time and space for sorting is $\Omega(n^{2}/\log n)$ &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib6" title="A time-space tradeoff for sorting on a general sequential model of computation" class="ltx_ref"&gt;BC82&lt;/a&gt;]&lt;/cite&gt;, later strengthened to
$\Omega(n^{2})$ &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib7" title="A general sequential time-space tradeoff for finding unique elements" class="ltx_ref"&gt;Bea91&lt;/a&gt;]&lt;/cite&gt;. On many machines the further cost is travel, because the two keys of a
comparison must first be brought within reach. On a Turing machine with one worktape and a two-way
read-only input tape, sorting an input of $N$ bits, made of strings of $3\log N$ bits each, takes
$\Omega(N^{3/2}/\sqrt{\log N})$ steps &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib33" title="An optimal lower bound for Turing machines with one work tape and a two-way input tape" class="ltx_ref"&gt;MS86&lt;/a&gt;; &lt;a href="#bib.bib14" title="The complexity of matrix transposition on one-tape off-line Turing machines" class="ltx_ref"&gt;DMS91&lt;/a&gt;]&lt;/cite&gt;. This bound comes from the distance the heads must
travel: two heads on tapes of length $t$ need $\Omega(t^{3/2})$ steps to reach the pairs of tape positions
given by the permutation that transposes a $\sqrt{t}\times\sqrt{t}$ matrix &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib14" title="The complexity of matrix transposition on one-tape off-line Turing machines" class="ltx_ref"&gt;DMS91&lt;/a&gt;]&lt;/cite&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Adaptivity has its own classical measure. In the parallel comparison model &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib40" title="Parallelism in comparison problems" class="ltx_ref"&gt;Val75&lt;/a&gt;]&lt;/cite&gt;, an
algorithm commits a set of comparisons in each round and learns the outcomes when the round ends, and
the exponents of the number of comparisons for sorting, selection, and merging in $r$ rounds are
known &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib40" title="Parallelism in comparison problems" class="ltx_ref"&gt;Val75&lt;/a&gt;; &lt;a href="#bib.bib12" title="Parallel sorting" class="ltx_ref"&gt;BT83&lt;/a&gt;; &lt;a href="#bib.bib23" title="Sorting and merging in rounds" class="ltx_ref"&gt;HH82&lt;/a&gt;; &lt;a href="#bib.bib2" title="Tight complexity bounds for parallel comparison sorting" class="ltx_ref"&gt;AAV86&lt;/a&gt;; &lt;a href="#bib.bib1" title="Sorting, approximate sorting, and searching in rounds" class="ltx_ref"&gt;AA88&lt;/a&gt;; &lt;a href="#bib.bib36" title="Sorting and selecting in rounds" class="ltx_ref"&gt;Pip87&lt;/a&gt;; &lt;a href="#bib.bib5" title="Parallel selection with high probability" class="ltx_ref"&gt;BB90&lt;/a&gt;]&lt;/cite&gt;. This theory charges nothing for moving
between comparisons, and the bounds on travel above say nothing about rounds. How much must a processor travel to sort $n$ keys it
cannot move, if it plans its route in $r$ rounds and learns the outcomes of each round only after running it?&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We study the simplest model with this cost. The $n$ keys lie one at each position of the grid
$[m]^{d}\text{,}$ where $n=m^{d}\text{,}$ and they carry a hidden total
order. Two heads move over the grid in unit steps, and the algorithm learns about the order only by
comparing the two keys beneath the heads. It must output the list of positions in increasing order of
rank. The positions of the two heads form a point of the &lt;em class="ltx_emph ltx_font_italic"&gt;comparison grid&lt;/em&gt; $[m]^{2d}\text{,}$ and two keys are
compared when this point reaches their pair of positions, in either order. An
$r$-round algorithm commits a route at the start of each round, as a function of its coins and of the
outcomes of earlier rounds, and it receives the outcomes at all points of the route only after running it.
Comparisons, computation, and memory are free, and the only cost is the &lt;em class="ltx_emph ltx_font_italic"&gt;movement&lt;/em&gt;, the total
$\ell_{1}$ distance the heads move. The algorithm must be correct on every input and for every outcome of
its coins, and $M_{r}^{(d)}(n)$ is the least expected movement on a worst input. For $r=\infty$ the number
of rounds is free. &lt;a href="#S2.SS1" title="2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.1&lt;/span&gt;&lt;/a&gt; gives the precise definition. The grid is the basic metric space of polynomial
growth, and the proofs use little beyond the sizes of its balls and its partitions into cubes and boxes.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Two baselines bound the answer. For $r=1\text{,}$ the oblivious case, the single route is fixed in advance and must compare
all $\binom{n}{2}$ pairs, so $M_{1}^{(d)}(n)=\Theta(n^{2})\text{.}$ For $r=\infty\text{,}$ the fully adaptive case, a merge sort attains $O(n^{1+1/(2d)})\text{,}$ and this
matches the lower bound of &lt;a href="#S4.Thmtheorem5" title="Proposition 4.5. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.5&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S1.SS0.SSS0.Px1" class="ltx_paragraph"&gt;
&lt;h4 class="ltx_title ltx_title_paragraph" id="problem"&gt;Problem.&lt;/h4&gt;
&lt;div id="S1.SS0.SSS0.Px1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For every dimension $d$ and every round budget $r\text{,}$ determine $M_{r}^{(d)}(n)\text{,}$ the least
worst-case expected movement with which an $r$-round algorithm sorts $n$ keys on $[m]^{d}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S1.SS1" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="our-results"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;1.1 &lt;/span&gt;Our Results&lt;/h3&gt;
&lt;div id="S1.SS1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We determine the exponent for every $d$ and $r\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.Thmtheorem1" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 1.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Movement Exponent)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S1.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Fix $d\geq 1$ and $r\in\{1,2,\dots\}\cup\{\infty\}\text{,}$ and let $D=2d\text{.}$ For finite $r$ put&lt;/span&gt;&lt;/p&gt;
&lt;table id="S1.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\beta_{r}^{(d)}=1+\frac{D^{\,r-1}}{D^{\,r}-(D-1)^{r}},$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;so that $\beta_{1}^{(d)}=2\text{,}$ and let $\beta_{\infty}^{(d)}=\lim_{r\to\infty}\beta_{r}^{(d)}=1+\tfrac{1}{2d}\text{.}$
Then $M_{r}^{(d)}(n)=\widetilde{\Theta}\bigl(n^{\beta_{r}^{(d)}}\bigr)\text{,}$ and
$M_{r}^{(d)}(n)=\Theta\bigl(n^{\beta_{r}^{(d)}}\bigr)$ whenever $d=1\text{,}$ $r\leq 2\text{,}$ or $r=\infty\text{.}$ The upper
bounds are attained by explicit polynomial-time algorithms, deterministic for $r=1$ and $r=\infty$ and
randomized otherwise.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S1.SS1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The exponent decreases from
$2$ at $r=1$ to $1+\tfrac{1}{2d}$ as $r\to\infty\text{,}$ each further round lowering
it by a geometrically shrinking amount (&lt;a href="#S2.Thmtheorem6" title="Remark 2.6. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Remark&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.6&lt;/span&gt;&lt;/a&gt;), and for $r\geq 2$ it also decreases in $d\text{.}$ On the
line with unlimited rounds it is $3/2\text{,}$ the exponent of the head travel on the Turing machine above
(&lt;a href="#S5.Thmtheorem4" title="Remark 5.4. ‣ 5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Remark&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.4&lt;/span&gt;&lt;/a&gt;). The number of heads does not affect it: two heads are what a comparison needs, and
any fixed number of heads changes the complexity by at most a constant factor (&lt;a href="#S7.Thmtheorem1" title="Proposition 7.1. ‣ 7 Multiple Heads ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;7.1&lt;/span&gt;&lt;/a&gt;). We call the range
$d\geq 2\text{,}$ $3\leq r&amp;lt;\infty$ the &lt;em class="ltx_emph ltx_font_italic"&gt;interior&lt;/em&gt;. The logarithmic factors hidden by $\widetilde{\Theta}$ occur only there.
&lt;a href="#S1.T1" title="In 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Table&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; lists the exponent at small parameters, and &lt;a href="#S6" title="6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6&lt;/span&gt;&lt;/a&gt; ends with the proof of the theorem.&lt;/p&gt;
&lt;/div&gt;
&lt;figure id="S1.T1" class="ltx_table"&gt;
&lt;figcaption class="ltx_caption ltx_centering"&gt;&lt;span class="ltx_tag ltx_tag_table"&gt;Table 1: &lt;/span&gt;The movement exponent $\beta_{r}^{(d)}\text{.}$ Every entry gives the exact order
$\Theta\bigl(n^{\beta_{r}^{(d)}}\bigr)\text{,}$ except those marked $\dagger\text{,}$ which lie in the interior. There
the order is known up to a polylogarithmic factor and conjectured exact (&lt;a href="#S8.Thmtheorem1" title="Conjecture 8.1. ‣ 8 Discussion ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Conjecture&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;8.1&lt;/span&gt;&lt;/a&gt;).&lt;/figcaption&gt;
&lt;table class="ltx_tabular ltx_centering ltx_guessed_headers ltx_align_middle" style="white-space:nowrap;"&gt;
&lt;thead class="ltx_thead"&gt;
&lt;tr class="ltx_tr"&gt;
&lt;th class="ltx_td ltx_th ltx_th_column ltx_th_row ltx_border_r ltx_border_tt"&gt;&lt;/th&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_column ltx_border_tt"&gt;$r=1$&lt;/th&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_column ltx_border_tt"&gt;$r=2$&lt;/th&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_column ltx_border_tt"&gt;$r=3$&lt;/th&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_column ltx_border_tt"&gt;$r=4$&lt;/th&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_column ltx_border_tt"&gt;$r=\infty$&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody class="ltx_tbody"&gt;
&lt;tr class="ltx_tr"&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_row ltx_border_r ltx_border_t" style="padding-bottom:2.0pt;"&gt;$d=1$&lt;/th&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_t" style="padding-bottom:2.0pt;"&gt;$2$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_t" style="padding-bottom:2.0pt;"&gt;$\tfrac{5}{3}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_t" style="padding-bottom:2.0pt;"&gt;$\tfrac{11}{7}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_t" style="padding-bottom:2.0pt;"&gt;$\tfrac{23}{15}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_t" style="padding-bottom:2.0pt;"&gt;$\tfrac{3}{2}$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="ltx_tr"&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_row ltx_border_r" style="padding-bottom:2.0pt;"&gt;$d=2$&lt;/th&gt;
&lt;td class="ltx_td ltx_align_center" style="padding-bottom:2.0pt;"&gt;$2$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center" style="padding-bottom:2.0pt;"&gt;$\tfrac{11}{7}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center" style="padding-bottom:2.0pt;"&gt;$\tfrac{53}{37}^{\dagger}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center" style="padding-bottom:2.0pt;"&gt;$\tfrac{239}{175}^{\dagger}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center" style="padding-bottom:2.0pt;"&gt;$\tfrac{5}{4}$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="ltx_tr"&gt;
&lt;th class="ltx_td ltx_align_center ltx_th ltx_th_row ltx_border_bb ltx_border_r"&gt;$d=3$&lt;/th&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_bb"&gt;$2$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_bb"&gt;$\tfrac{17}{11}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_bb"&gt;$\tfrac{127}{91}^{\dagger}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_bb"&gt;$\tfrac{887}{671}^{\dagger}$&lt;/td&gt;
&lt;td class="ltx_td ltx_align_center ltx_border_bb"&gt;$\tfrac{7}{6}$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/figure&gt;
&lt;div id="S1.SS1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;On the line the exponent is tied to selection rather than to sorting (&lt;a href="#S5.Thmtheorem12" title="Remark 5.12. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Remark&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.12&lt;/span&gt;&lt;/a&gt;): $\beta_{r}^{(1)}=1+\tfrac{1}{2}s_{r}\text{,}$ where $s_{r}=1+1/(2^{r}-1)$ is the
exponent of the worst-case number of comparisons that a deterministic algorithm needs to find the maximum of $n$ keys in $r$
rounds &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib40" title="Parallelism in comparison problems" class="ltx_ref"&gt;Val75&lt;/a&gt;]&lt;/cite&gt;, while the number of comparisons for sorting in $r$ rounds has exponent $1+1/r$ &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib2" title="Tight complexity bounds for parallel comparison sorting" class="ltx_ref"&gt;AAV86&lt;/a&gt;]&lt;/cite&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S1.SS2" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="overview"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;1.2 &lt;/span&gt;Overview&lt;/h3&gt;
&lt;div id="S1.SS2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The cost of a round depends on how many pairs of positions it must visit and on how these pairs are spread. Call an
unordered pair of positions a &lt;em class="ltx_emph ltx_font_italic"&gt;cell&lt;/em&gt;. If $Q$ cells are spread evenly over the $n^{2}$ points of the comparison grid,
the distance from each of them to the nearest other one, their &lt;em class="ltx_emph ltx_font_italic"&gt;spacing&lt;/em&gt;, is about $(n^{2}/Q)^{1/D}\text{,}$ and a route through them moves about $Q\cdot(n^{2}/Q)^{1/D}\text{:}$
their number times their spacing, as for tours through random point sets &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib9" title="The shortest path through many points" class="ltx_ref"&gt;BHH59&lt;/a&gt;; &lt;a href="#bib.bib37" title="Subadditive Euclidean functionals and nonlinear growth in geometric probability" class="ltx_ref"&gt;Ste81&lt;/a&gt;; &lt;a href="#bib.bib43" title="Probability Theory of Classical Euclidean Optimization Problems" class="ltx_ref"&gt;Yuk98&lt;/a&gt;]&lt;/cite&gt;. The two baselines
are instances of this product. All $\binom{n}{2}$ cells have spacing $1\text{,}$ which gives $n^{2}\text{.}$ The $\Theta(n)$ cells of
consecutive ranks, which every algorithm must compare, have spacing about $n^{1/D}$ on a random input, which gives
$n^{1+1/(2d)}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;With $r$ rounds, the early rounds can reduce the number of cells left for the final one, at the cost of their own movement.
Our algorithm makes every round move about the same amount. This gives one equation per round, and the solution of these equations
is the exponent of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt;. The lower bound leads to the same equations, which is why the two exponents agree.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S1.SS2.SSS0.Px1" class="ltx_paragraph"&gt;
&lt;h4 class="ltx_title ltx_title_paragraph" id="the-algorithm"&gt;The Algorithm.&lt;/h4&gt;
&lt;div id="S1.SS2.SSS0.Px1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The algorithm keeps &lt;em class="ltx_emph ltx_font_italic"&gt;segments&lt;/em&gt;, sets of keys of consecutive ranks whose internal order is not
yet known, and refines them round by round. In round $1$ it chooses $n/b_{0}$ random positions, the &lt;em class="ltx_emph ltx_font_italic"&gt;splitters&lt;/em&gt;, for a parameter $b_{0}\text{.}$ One head stops
on each splitter in turn while the other sweeps the grid, so the movement is $n^{2}/b_{0}\text{,}$ and the keys ranked between two consecutive
splitters form a segment of about $b_{0}$ keys. The final round, the &lt;em class="ltx_emph ltx_font_italic"&gt;cleanup&lt;/em&gt;, compares all pairs inside segments. If round $2$ is the final one, these
are about $nb_{0}$ cells, known in advance, and a serpentine route through them moves about their number times their spacing
(&lt;a href="#S5.SS1" title="5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;), as in the classical tours through given points &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib15" title="The shortest path and the shortest road through n points" class="ltx_ref"&gt;Few55&lt;/a&gt;; &lt;a href="#bib.bib34" title="Spacefilling curves and the planar travelling salesman problem" class="ltx_ref"&gt;PB89&lt;/a&gt;]&lt;/cite&gt;. Making the two movements equal gives the
exponent for $r=2\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;With more rounds, refinement rounds come in between. A refinement round selects &lt;em class="ltx_emph ltx_font_italic"&gt;pivots&lt;/em&gt;, keys that are compared with every key of
their segment, and these cut the segments further. Selecting each key independently, at the rate the refinement needs, fails: the cells of the round are then spread over
the whole grid, and the route through them moves a polynomial factor more than the other rounds. So the round selects pivots in groups
of nearby positions. It cuts the grid into cubes of side $h\text{,}$ selects each cube with probability $p\text{,}$ and takes the keys of the selected
cubes as pivots. The cells then lie in the &lt;em class="ltx_emph ltx_font_italic"&gt;product boxes&lt;/em&gt; $I\times J$ of a selected cube $J$ and another cube $I\text{,}$ and the heads
go through these boxes one after another. If the segments entering the round have about $b$ keys, the heads move about $p\,h\,nb$ inside the
boxes and about $p\,n^{2/d}(nb)^{1-1/d}/h$ between them (Lemmas &lt;a href="#S5.Thmtheorem9" title="Lemma 5.9. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;5.9&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S6.Thmtheorem3" title="Lemma 6.3. ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;6.3&lt;/span&gt;&lt;/a&gt;), and
$h=(n/b)^{1/D}$ makes the two equal.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A segment that meets no selected cube is not cut, so the refined segments can still have many keys, but they
meet few cubes. List a key’s segment in rank order, starting at the key: each new
cube is selected with probability $p\text{,}$ so a pivot appears after $1/p$ cubes in expectation. Hence the &lt;em class="ltx_emph ltx_font_italic"&gt;dispersion&lt;/em&gt;, the sum over the
keys of the number of cubes that the key’s segment meets, has expectation about $n/p\text{,}$ as for segments of $1/p$ keys. On the line, a bound
on the dispersion is all that the next round needs.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px1.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The parameters of the algorithm (&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;) are a decreasing sequence of rank scales $b_{j}=n^{a_{j}}\text{,}$ $0\leq j\leq r-2\text{,}$ the
&lt;em class="ltx_emph ltx_font_italic"&gt;schedule&lt;/em&gt;, with finest scale $g=b_{r-2}\text{.}$ On the line, round $j+1$ uses $p=1/b_{j}$ and $h=(n/b_{j-1})^{1/D}\text{,}$ so its
output has dispersion about $nb_{j}\text{,}$ as for segments of $b_{j}$ keys. For $d\geq 2$ the
samples are more elaborate, as explained below, but the movement has the same exponent. Requiring every round to move the
same amount $n^{\beta}$ gives one equation per round:&lt;/p&gt;
&lt;div class="paper-eqgroup"&gt;&lt;span class="paper-eq-anchor" id="Sx1.EGx1"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S1.Ex2"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S1.Ex3"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S1.Ex4"&gt;&lt;/span&gt;&lt;div class="paper-eqgroup-body"&gt;$$\begin{aligned}
&amp;amp; \text{splitter:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=2-a_{0}, \\
&amp;amp; \text{refinement }j\text{:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=1+\frac{1-a_{j-1}}{D}+a_{j-1}-a_{j}\qquad(1\leq j\leq r-2), \\
&amp;amp; \text{cleanup:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=1+a_{r-2}+\frac{1-a_{r-2}}{D}.
\end{aligned}$$&lt;/div&gt;&lt;div class="paper-eqgroup-no"&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p class="ltx_p"&gt;The right-hand sides are the exponents of $n^{2}/b_{0}\text{,}$ of $p\,h\,nb_{j-1}\text{,}$ and of $ng\,(n/g)^{1/D}\text{,}$ which is again a number times a
spacing. By &lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt;, the unique solution has $\beta=\beta_{r}^{(d)}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px1.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $d\geq 2$ the cleanup needs more. Visiting $Q$ cells in the product box of two cubes of side $h$ moves about $h\,Q^{1-1/D}\text{.}$ On the line
this exponent is $\tfrac{1}{2}\text{,}$ and the sum of the $\sqrt{Q}$ over the boxes is at most the dispersion. For $d\geq 2$ the exponent is larger, and
the sum of the $Q^{1-1/D}$ also depends on the sizes of the segments. So the cleanup needs small dispersion, for the tour between the product boxes, and a small
sum of squared segment sizes, for the visits inside them. Sampling cubes gives the first and sampling keys gives the second, so at $r=3$ the
refinement round draws both samples (&lt;a href="#S6.SS2" title="6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.2&lt;/span&gt;&lt;/a&gt;). For $r\geq 4$ a refinement round can be followed by another one, whose route moves between boxes of every size, so its
cost depends on the dispersion of its input at every box size. One sample controls one size, so each refinement round draws one
sample for each box size of a nested partition of the grid, up to a threshold, and the analysis keeps an upper bound on the expected
dispersion for each of these sizes (&lt;a href="#S6.SS3" title="6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.3&lt;/span&gt;&lt;/a&gt;). One factor $\log n$ comes from the number of samples and the other from the number of box sizes at which each
route moves.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S1.SS2.SSS0.Px2" class="ltx_paragraph"&gt;
&lt;h4 class="ltx_title ltx_title_paragraph" id="the-lower-bound"&gt;The Lower Bound.&lt;/h4&gt;
&lt;div id="S1.SS2.SSS0.Px2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By Yao’s principle, it suffices to consider deterministic algorithms on the &lt;em class="ltx_emph ltx_font_italic"&gt;uniform input&lt;/em&gt;, a uniformly random assignment of the ranks to
the positions &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib41" title="Probabilistic computations: toward a unified measure of complexity" class="ltx_ref"&gt;Yao77&lt;/a&gt;]&lt;/cite&gt;. Call a cell &lt;em class="ltx_emph ltx_font_italic"&gt;co-blocked at scale $b$&lt;/em&gt; if its two ranks lie in a common block
$\{(i-1)b+1,\dots,ib\}$ for some $i\text{.}$ There are $\Theta(ng)$ cells co-blocked at scale $g\text{.}$ Take one of them, $\{u,v\}\text{,}$ such that neither $u$ nor $v$
has been compared in earlier rounds with another position of their block. The earlier outcomes do not determine the order of $u$ and $v\text{,}$ because a chain of outcomes from one to the other stays inside
the block and starts with a comparison of $u$ or $v$ with another position of the block. So these outcomes are consistent with two inputs that
give $u$ and $v$ adjacent ranks, in opposite orders. The final round runs the same route on both, and only the cell $\{u,v\}$ tells them apart, so
this route must visit it (&lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt;). On the uniform input a constant fraction of these cells are at distance about $(n/g)^{1/D}$ from all
others (&lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt;). So if the earlier rounds compare only a small fraction of the positions inside their blocks, the final route moves
about $ng\,(n/g)^{1/D}$ (&lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;), and the cleanup equation says that this is $n^{\beta}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;It remains to show that rounds moving much less than $n^{\beta}$ compare few positions inside their blocks. With the
scales rounded to powers of two, every block at scale $g$ lies in a block at each scale $b_{j}\text{,}$ so it suffices that
such a round $j+1$ compares few positions inside their blocks at scale $b_{j}\text{.}$ The route of round $1$ is fixed before
any outcome is known, so each cell on it is co-blocked at scale $b_{0}$ with probability at most about $b_{0}/n\text{.}$ A route of movement $n^{\beta}$
therefore visits about $n^{\beta}b_{0}/n$ such cells, and the splitter equation says that this number is $n\text{.}$ So a much shorter route compares only a small fraction of the
positions inside their blocks. For $r=2$ we have $b_{0}=g\text{,}$ and the proof is complete.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px2.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;From round $2$ on, a route can use what the algorithm has learned to choose cells that are likely to be co-blocked, and this adaptivity is the hard part
of the lower bound. The proof handles it round by round, like the chronogram method for dynamic data-structure lower bounds &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib18" title="The cell probe complexity of dynamic data structures" class="ltx_ref"&gt;FS89&lt;/a&gt;]&lt;/cite&gt;, with rounds in
place of epochs, and like round elimination in communication complexity &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib32" title="On data structures and asymmetric communication complexity" class="ltx_ref"&gt;MNSW98&lt;/a&gt;]&lt;/cite&gt;. For round $j+1\text{,}$ two facts replace the estimate above.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px2.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The first bounds the number
of co-blocked cells that a route can visit. On the uniform input, with high probability, every route of movement $L$ visits at most about
$\bigl(1+L(b_{j-1}/n)^{1/D}\bigr)\log n$ cells co-blocked at scale $b_{j-1}$ (&lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt;). This is a property of the input alone, so it holds for
adaptive routes.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px2.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The second bounds the probability that such a cell is co-blocked at the next scale. The proof gives the algorithm more information, which
can only help it: after round $j\text{,}$ for $j\leq r-2\text{,}$ the index, or &lt;em class="ltx_emph ltx_font_italic"&gt;label&lt;/em&gt;, of the block of each position at scale $b_{j-1}$ is revealed at no cost. Given
all labels and outcomes so far, the positions of a block that have not been compared with another position of the block still receive the ranks left to them in
uniformly random order, because exchanging their ranks changes no label and no outcome. So if at least half of the block is of this kind, a cell that is co-blocked at
scale $b_{j-1}$ and contains such a position is co-blocked at scale $b_{j}$ with conditional probability only $O(b_{j}/b_{j-1})$ (&lt;a href="#S4.Thmtheorem8" title="Lemma 4.8. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.8&lt;/span&gt;&lt;/a&gt;). Blocks with fewer
such positions are counted as entirely compared.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px2.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Multiplying the two bounds, a route of movement $n^{\beta}$ in round $j+1$ visits about
$n^{\beta}(b_{j-1}/n)^{1/D}\,b_{j}/b_{j-1}$ cells of this kind, up to a logarithmic factor, and the refinement equation says that this number is $n\text{.}$ So here too a much shorter route
compares only a small fraction of the positions inside their blocks.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S1.SS2.SSS0.Px3" class="ltx_paragraph"&gt;
&lt;h4 class="ltx_title ltx_title_paragraph" id="removing-the-logarithms"&gt;Removing the Logarithms.&lt;/h4&gt;
&lt;div id="S1.SS2.SSS0.Px3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The factors $\log^{2}n$ in the upper bound and $\log n$ in the lower bound do not always occur. The factor $\log^{2}n$ comes only from the samples for many
box sizes, so the upper bound has no logarithmic factor for $d=1$ and for $r\leq 3\text{.}$ The factor $\log n$ comes only from &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt;, where the
largest number of co-blocked cells in one product box enters. For $r\leq 2$ the route of the first round is fixed in advance, so this lemma is not needed. On
the line, &lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemmas&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S4.Thmtheorem14" title="Lemma 4.14. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4.14&lt;/span&gt;&lt;/a&gt; avoid the loss: they group nearby co-blocked cells into clusters, a route visits few cells of small clusters per
unit of movement, and in expectation at most one cell lies in a large cluster. For $r=\infty\text{,}$ a merge sort over a partition of the grid into boxes matches the
bound $n^{1+1/(2d)}$ given by the cells of consecutive ranks (Propositions &lt;a href="#S4.Thmtheorem5" title="Proposition 4.5. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4.5&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S5.Thmtheorem3" title="Proposition 5.3. ‣ 5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;5.3&lt;/span&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS2.SSS0.Px3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;a href="#S2" title="2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt; defines the model and solves the equations, and &lt;a href="#S3" title="3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3&lt;/span&gt;&lt;/a&gt; proves the geometric facts used by the lower bound.
&lt;a href="#S4" title="4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt; proves the lower bound, with the exact order on the line in &lt;a href="#S4.SS4" title="4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt;, and
&lt;a href="#S5" title="5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Sections&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S6" title="6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;6&lt;/span&gt;&lt;/a&gt; prove the upper bounds. &lt;a href="#S7" title="7 Multiple Heads ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;7&lt;/span&gt;&lt;/a&gt; treats more than two
heads, and &lt;a href="#S8" title="8 Discussion ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;8&lt;/span&gt;&lt;/a&gt; discusses the remaining gap.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S1.SS3" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="related-work"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;1.3 &lt;/span&gt;Related Work&lt;/h3&gt;
&lt;div id="S1.SS3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The models closest to ours attach costs to comparisons. Priced information charges every query and asks
for the cheapest correct computation &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib13" title="Query strategies for priced information" class="ltx_ref"&gt;CFG&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;02&lt;/a&gt;]&lt;/cite&gt;, and for sorting and selection the costs have been taken
to be structured or metric &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib21" title="Sorting and selection with structured costs" class="ltx_ref"&gt;GK01&lt;/a&gt;; &lt;a href="#bib.bib22" title="Where&amp;#x27;s the winner? Max-finding and sorting with metric costs" class="ltx_ref"&gt;GK05&lt;/a&gt;]&lt;/cite&gt;. In the metric model a comparison costs the distance between its two keys.
There the costs of the comparisons add up independently, whereas here consecutive comparisons share the heads, so a
comparison costs only the move from the previous comparison. As a result, the cost of a round depends on how its
comparisons are distributed in the comparison grid, and not only on how many there are. &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;
give the upper and the lower bound for a given distribution. The benchmark also differs: these
works measure a competitive ratio against the cheapest proof of the order, while we determine the absolute cost on a
worst input. For sorting this ratio is polylogarithmic for metric costs &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib22" title="Where&amp;#x27;s the winner? Max-finding and sorting with metric costs" class="ltx_ref"&gt;GK05&lt;/a&gt;]&lt;/cite&gt;, and also when the
keys form two classes and comparisons within a class cost more than comparisons across
them &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib20" title="An algorithm for bichromatic sorting with polylog competitive ratio" class="ltx_ref"&gt;GJ24&lt;/a&gt;]&lt;/cite&gt;. For general costs the question is open. A separate line restricts which
comparisons are admissible at all, as in generalized sorting and the $1$-$\infty$ cost
model &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib24" title="Algorithms for the generalized sorting problem" class="ltx_ref"&gt;HKK11&lt;/a&gt;; &lt;a href="#bib.bib28" title="Stochastic and worst-case generalized sorting revisited" class="ltx_ref"&gt;KN21&lt;/a&gt;; &lt;a href="#bib.bib11" title="Sorting under forbidden comparisons" class="ltx_ref"&gt;BR16&lt;/a&gt;]&lt;/cite&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Sorting and selection in rounds come from Valiant’s parallel comparison model &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib40" title="Parallelism in comparison problems" class="ltx_ref"&gt;Val75&lt;/a&gt;]&lt;/cite&gt;. They were studied
extensively there &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib12" title="Parallel sorting" class="ltx_ref"&gt;BT83&lt;/a&gt;; &lt;a href="#bib.bib23" title="Sorting and merging in rounds" class="ltx_ref"&gt;HH82&lt;/a&gt;; &lt;a href="#bib.bib2" title="Tight complexity bounds for parallel comparison sorting" class="ltx_ref"&gt;AAV86&lt;/a&gt;; &lt;a href="#bib.bib1" title="Sorting, approximate sorting, and searching in rounds" class="ltx_ref"&gt;AA88&lt;/a&gt;; &lt;a href="#bib.bib36" title="Sorting and selecting in rounds" class="ltx_ref"&gt;Pip87&lt;/a&gt;; &lt;a href="#bib.bib5" title="Parallel selection with high probability" class="ltx_ref"&gt;BB90&lt;/a&gt;]&lt;/cite&gt; and remain active &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib10" title="Sorted top-k in rounds" class="ltx_ref"&gt;BMP19&lt;/a&gt;]&lt;/cite&gt;. These results count
comparisons, and the place of a comparison plays no role in them. We keep the round structure and replace the cost by
movement, and on the line the movement exponent is determined by the exponent $s_{r}$ of &lt;a href="#S1.SS1" title="1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS3.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A universal tour orders $n$ points once and serves every subset in that order. In the plane, the space-filling curve
gives a competitive ratio of $\Theta(\log n)$ &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib34" title="Spacefilling curves and the planar travelling salesman problem" class="ltx_ref"&gt;PB89&lt;/a&gt;; &lt;a href="#bib.bib8" title="Worst-case examples for the spacefilling curve heuristic for the Euclidean traveling salesman problem" class="ltx_ref"&gt;BG89&lt;/a&gt;]&lt;/cite&gt;, and no universal tour has a constant
ratio &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib25" title="Improved lower and upper bounds for universal TSP in planar metrics" class="ltx_ref"&gt;HKL06&lt;/a&gt;; &lt;a href="#bib.bib29" title="Lower bounds for the universal TSP on the plane" class="ltx_ref"&gt;Kra26&lt;/a&gt;]&lt;/cite&gt;. On general metrics, sparse partitions &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib27" title="Universal approximations for TSP, Steiner tree, and set cover" class="ltx_ref"&gt;JLN&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;05&lt;/a&gt;; &lt;a href="#bib.bib17" title="Scattering and sparse partitions, and their applications" class="ltx_ref"&gt;Fil24&lt;/a&gt;]&lt;/cite&gt; and tree
covers &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib19" title="Oblivious network design" class="ltx_ref"&gt;GHR06&lt;/a&gt;]&lt;/cite&gt; give polylogarithmic ratios. The a priori TSP asks the same question in expectation &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib26" title="A priori solution of a traveling salesman problem in which a random subset of the customers are visited" class="ltx_ref"&gt;Jai88&lt;/a&gt;]&lt;/cite&gt;. These problems share
with ours the commitment of a route before it is known which visits matter. There the tour is fixed once and judged by
its ratio to the best tour for the subset, while our algorithm commits a new route every round and we determine the
absolute movement.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S1.SS3.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Travel has also been studied for element distinctness, on the Turing machine above &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib35" title="Element distinctness and sorting on one-tape off-line Turing machines" class="ltx_ref"&gt;Pet08&lt;/a&gt;]&lt;/cite&gt; and on the one-tape
machine without an input tape &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib31" title="New lower bounds for element distinctness on a one-tape Turing machine" class="ltx_ref"&gt;LO94&lt;/a&gt;; &lt;a href="#bib.bib4" title="Element distinctness on one-tape Turing machines: a complete solution" class="ltx_ref"&gt;BABP03&lt;/a&gt;]&lt;/cite&gt;. Other models charge for moving data. On a mesh-connected computer,
records travel along the links to their destinations &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib39" title="Sorting on a mesh-connected parallel computer" class="ltx_ref"&gt;TK77&lt;/a&gt;]&lt;/cite&gt;, and on a VLSI chip, the information that must cross the
chip gives area-time trade-offs &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib38" title="The VLSI complexity of sorting" class="ltx_ref"&gt;Tho83&lt;/a&gt;]&lt;/cite&gt;. Token swapping rearranges labeled tokens along the edges of a
graph and counts the swaps &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib42" title="Swapping labeled tokens on graphs" class="ltx_ref"&gt;YDI&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;15&lt;/a&gt;]&lt;/cite&gt;. External-memory sorting transports records between memory levels, and
its classical lower bound treats the records as indivisible &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib3" title="The input/output complexity of sorting and related problems" class="ltx_ref"&gt;AV88&lt;/a&gt;]&lt;/cite&gt;. Under the conjecture of Li and Li that, in undirected
networks with several source-sink pairs, network coding achieves no higher throughput than routing &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib30" title="Network coding: the case of multiple unicast sessions" class="ltx_ref"&gt;LL04&lt;/a&gt;]&lt;/cite&gt;, the
same bound holds without this assumption &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib16" title="Lower bounds for external memory integer sorting via network coding" class="ltx_ref"&gt;FHLS19&lt;/a&gt;]&lt;/cite&gt;. Here the keys stay in their positions, so the
lower bound needs neither assumption, and the comparisons it counts are forced by correctness alone (&lt;a href="#S4.Thmtheorem11" title="Remark 4.11. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Remark&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.11&lt;/span&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S2" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="preliminaries"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;2 &lt;/span&gt;Preliminaries&lt;/h2&gt;
&lt;div id="S2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;This section makes the model of &lt;a href="#S1" title="1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; precise and solves the equations of &lt;a href="#S1.SS2" title="1.2 Overview ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.2&lt;/span&gt;&lt;/a&gt;, which
give the exponent and the rank scales used by both bounds.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S2.SS1" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-model"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;2.1 &lt;/span&gt;The Model&lt;/h3&gt;
&lt;div id="S2.Thmtheorem1" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 2.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(The Movement Model)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Fix $d\geq 1$ and $m\geq 2\text{,}$ let $n=m^{d}\text{,}$ and write $[m]=\{1,\dots,m\}\text{.}$&lt;/p&gt;
&lt;ol id="S2.I1" class="ltx_enumerate"&gt;
&lt;li id="S2.I1.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;1.&lt;/span&gt;
&lt;div id="S2.I1.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Input and output.&lt;/em&gt; Every position $x\in[m]^{d}$ holds one key, and the keys carry a
hidden total order: the input is a bijection $\pi\colon[m]^{d}\to[n]\text{,}$ and
$\operatorname{rk}_{\pi}(x)=\pi(x)$ is the rank of the key at $x\text{.}$ The algorithm learns about $\pi$ only
through the outcomes of item 3. The output is the list of positions in increasing order of
rank.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S2.I1.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;2.&lt;/span&gt;
&lt;div id="S2.I1.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Configurations and routes.&lt;/em&gt; Two heads occupy positions $x,y\in[m]^{d}\text{,}$ and the pair
$(x,y)$ is their &lt;em class="ltx_emph ltx_font_italic"&gt;configuration&lt;/em&gt;. The configurations are the points of the
&lt;em class="ltx_emph ltx_font_italic"&gt;comparison grid&lt;/em&gt; $[m]^{D}\text{,}$ where $D=2d\text{.}$ A &lt;em class="ltx_emph ltx_font_italic"&gt;route&lt;/em&gt; is a sequence of
configurations $z_{0},\dots,z_{L}$ with $\lVert z_{t+1}-z_{t}\rVert_{1}=1$ for $0\leq t&amp;lt;L\text{.}$
The &lt;em class="ltx_emph ltx_font_italic"&gt;movement&lt;/em&gt; of the route is $L\text{.}$ Both heads start at the position $(1,\dots,1)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S2.I1.i3" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;3.&lt;/span&gt;
&lt;div id="S2.I1.i3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Comparisons.&lt;/em&gt; The &lt;em class="ltx_emph ltx_font_italic"&gt;outcome&lt;/em&gt; at a configuration $(x,y)$ is whether
$\operatorname{rk}_{\pi}(x)&amp;lt;\operatorname{rk}_{\pi}(y)\text{.}$ Comparisons, computation, and memory are free.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S2.I1.i4" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;4.&lt;/span&gt;
&lt;div id="S2.I1.i4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Rounds.&lt;/em&gt; An &lt;em class="ltx_emph ltx_font_italic"&gt;$r$-round algorithm&lt;/em&gt; proceeds in $r$ rounds. At the start of each
round it commits, as a function of its random coins and of the outcomes received in
earlier rounds, a route that starts at the current configuration. It then runs the route
and receives the outcomes at all configurations on it. No choice made within a round
depends on outcomes of that round.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S2.I1.i5" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;5.&lt;/span&gt;
&lt;div id="S2.I1.i5.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Correctness and cost.&lt;/em&gt; The algorithm must output the correct order for every input
and every outcome of its coins. We
write $\mathrm{Move}(\mathrm{ALG},\pi)$ for the total movement of an algorithm
$\mathrm{ALG}$ on input $\pi\text{,}$ and&lt;/p&gt;
&lt;table id="S2.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$M_{r}^{(d)}(n)=\inf_{\mathrm{ALG}}\ \max_{\pi}\ \mathbb{E}\bigl[\mathrm{Move}(\mathrm{ALG},\pi)\bigr],$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;the infimum over $r$-round algorithms. For $r=\infty\text{,}$ $M_{\infty}^{(d)}(n)=\inf_{r}M_{r}^{(d)}(n)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.Thmtheorem2" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 2.2&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Cells)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;cell&lt;/em&gt; is an unordered pair $\{x,y\}$ of distinct positions. Its two &lt;em class="ltx_emph ltx_font_italic"&gt;orientations&lt;/em&gt; are
the configurations $(x,y)$ and $(y,x)\text{.}$ On cells, the metric $\operatorname{dist}$ is&lt;/p&gt;
&lt;table id="S2.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\operatorname{dist}\bigl(\{x,y\},\{x^{\prime},y^{\prime}\}\bigr)=\min\bigl\{\lVert x-x^{\prime}\rVert_{1}+\lVert y-y^{\prime}\rVert_{1},\ \lVert x-y^{\prime}\rVert_{1}+\lVert y-x^{\prime}\rVert_{1}\bigr\},$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;and for a cell $w$ and a set $W$ of cells we put $\operatorname{dist}(w,W)=\min_{w^{\prime}\in W}\operatorname{dist}(w,w^{\prime})\text{,}$ with
$\operatorname{dist}(w,\emptyset)=+\infty\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.Thmtheorem3" class="ltx_theorem ltx_theorem_observation"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Observation 2.3&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem3.p1" class="ltx_para"&gt;
&lt;ol id="S2.I2" class="ltx_enumerate"&gt;
&lt;li id="S2.I2.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(a)&lt;/span&gt;
&lt;div id="S2.I2.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;A route of movement &lt;/span&gt;$L$&lt;span class="ltx_text ltx_font_italic"&gt; visits at most &lt;/span&gt;$L+1$&lt;span class="ltx_text ltx_font_italic"&gt; configurations.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S2.I2.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(b)&lt;/span&gt;
&lt;div id="S2.I2.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;The two orientations of a cell carry the same information, and a configuration &lt;/span&gt;$(x,x)$&lt;span class="ltx_text ltx_font_italic"&gt;
carries none. On the configurations with &lt;/span&gt;$x\neq y$&lt;span class="ltx_text ltx_font_italic"&gt;, the map
&lt;/span&gt;$(x,y)\mapsto\{x,y\}$&lt;span class="ltx_text ltx_font_italic"&gt; is &lt;/span&gt;$1$&lt;span class="ltx_text ltx_font_italic"&gt;-Lipschitz from &lt;/span&gt;$\ell_{1}$&lt;span class="ltx_text ltx_font_italic"&gt; to &lt;/span&gt;$\operatorname{dist}$&lt;span class="ltx_text ltx_font_italic"&gt;. Hence deleting the
configurations &lt;/span&gt;$(x,x)$&lt;span class="ltx_text ltx_font_italic"&gt; from a route of movement &lt;/span&gt;$L$&lt;span class="ltx_text ltx_font_italic"&gt; leaves a sequence of cells whose
&lt;/span&gt;$\operatorname{dist}$&lt;span class="ltx_text ltx_font_italic"&gt;-length, the sum of the &lt;/span&gt;$\operatorname{dist}$&lt;span class="ltx_text ltx_font_italic"&gt; distances between consecutive cells, is at most &lt;/span&gt;$L$&lt;span class="ltx_text ltx_font_italic"&gt;. The number of cells within &lt;/span&gt;$\operatorname{dist}$&lt;span class="ltx_text ltx_font_italic"&gt;-distance &lt;/span&gt;$\rho$&lt;span class="ltx_text ltx_font_italic"&gt; of a cell
&lt;/span&gt;$\{x,y\}$&lt;span class="ltx_text ltx_font_italic"&gt; is at most the number of points of &lt;/span&gt;$[m]^{D}$&lt;span class="ltx_text ltx_font_italic"&gt; within &lt;/span&gt;$\ell_{1}$&lt;span class="ltx_text ltx_font_italic"&gt;-distance &lt;/span&gt;$\rho$&lt;span class="ltx_text ltx_font_italic"&gt; of
&lt;/span&gt;$(x,y)$&lt;span class="ltx_text ltx_font_italic"&gt;.
On the line, &lt;/span&gt;$(x,y)\mapsto(\min\{x,y\},\max\{x,y\})$&lt;span class="ltx_text ltx_font_italic"&gt; folds the configurations onto
&lt;/span&gt;$\{x\leq y\}$&lt;span class="ltx_text ltx_font_italic"&gt; and the cells onto &lt;/span&gt;$\{x&amp;lt;y\}$&lt;span class="ltx_text ltx_font_italic"&gt;, and &lt;/span&gt;$\operatorname{dist}$&lt;span class="ltx_text ltx_font_italic"&gt; is the &lt;/span&gt;$\ell_{1}$&lt;span class="ltx_text ltx_font_italic"&gt; distance between
the folded cells.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S2.SS1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Part (a) holds because the route consists of $z_{0},\dots,z_{L}\text{.}$ For (b), when $x\neq y$ the
outcome at $(y,x)$ is the negation of the outcome at $(x,y)\text{,}$ and the outcome at $(x,x)$ is always
negative. By definition, $\operatorname{dist}(\{x,y\},\{x^{\prime},y^{\prime}\})$ is the smaller of the $\ell_{1}$ distances from
$(x,y)$ to the two orientations of $\{x^{\prime},y^{\prime}\}\text{,}$ so the $\ell_{1}$ distance of two configurations is
at least the $\operatorname{dist}$ of their cells, which is the Lipschitz property. Since the swap
$(x,y)\mapsto(y,x)$ is an isometry of $\ell_{1}\text{,}$ $\operatorname{dist}$ is a metric on cells. Between two
consecutive configurations that survive the deletion, the route moves at least their $\ell_{1}$
distance, so the cells have $\operatorname{dist}$-length at most $L\text{.}$ A cell within $\operatorname{dist}$-distance $\rho$ of
$\{x,y\}$ has an orientation within $\ell_{1}$-distance $\rho$ of $(x,y)\text{,}$ and distinct cells have no
orientation in common, which gives the count. On the line, if $x&amp;lt;y$ and $x^{\prime}&amp;lt;y^{\prime}\text{,}$ then
$t\mapsto|t-y^{\prime}|-|t-x^{\prime}|$ is nonincreasing, and comparing its values at $x$ and at $y$ gives
$|x-x^{\prime}|+|y-y^{\prime}|\leq|x-y^{\prime}|+|y-x^{\prime}|\text{.}$ So the minimum in $\operatorname{dist}$ is the $\ell_{1}$ distance between
$(x,y)$ and $(x^{\prime},y^{\prime})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.SS1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Since the keys do not move, we identify each key with its position, so a set of keys is a set of
positions. When $\pi$ is fixed we write $\operatorname{rk}$ for $\operatorname{rk}_{\pi}\text{.}$ The algorithm &lt;em class="ltx_emph ltx_font_italic"&gt;compares&lt;/em&gt; $x$
and $y$ in round $t$ if the route of round $t$ visits an orientation of $\{x,y\}\text{.}$ In the same
way, a route visits a set of cells if it visits an orientation of each, and a cell lies in a set of
configurations if one of its orientations does.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S2.SS1.SSS0.Px1" class="ltx_paragraph"&gt;
&lt;h4 class="ltx_title ltx_title_paragraph" id="notation"&gt;Notation.&lt;/h4&gt;
&lt;div id="S2.SS1.SSS0.Px1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Throughout, $d$ and $r$ are fixed and asymptotic statements refer to $n\to\infty\text{.}$ A subscript on
an asymptotic symbol lists the parameters other than $n$ on which the hidden constant depends, in
the order $d\text{,}$ $r\text{,}$ and, in &lt;a href="#S7" title="7 Multiple Heads ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;7&lt;/span&gt;&lt;/a&gt;, $k\text{,}$ as in $O_{d}$ or $\Omega_{d,r}\text{.}$ A symbol without a subscript hides an
absolute constant. &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt; carries no subscripts, and its constants depend on
$d$ and $r\text{.}$ A tilde, as in $\widetilde{\Theta}\text{,}$ also hides factors polylogarithmic in $n\text{.}$
Logarithms are to base $2\text{.}$ When the algorithm and the input are clear, we write $\mathrm{Move}$
for $\mathrm{Move}(\mathrm{ALG},\pi)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S2.SS1.SSS0.Px1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;box&lt;/em&gt; is a product of intervals of integers, viewed as a set of lattice points. Its
&lt;em class="ltx_emph ltx_font_italic"&gt;side&lt;/em&gt; along an axis is the number of its points on a line parallel to that axis, and a
&lt;em class="ltx_emph ltx_font_italic"&gt;cube&lt;/em&gt; is a box whose sides are equal. A &lt;em class="ltx_emph ltx_font_italic"&gt;ball&lt;/em&gt; is the set of grid points within a given
$\ell_{1}$ distance of a center. When we partition the line into
intervals of $h$ positions, or $[m]^{d}$ into cubes of side $H\text{,}$ the last piece along each axis may
be shorter, which affects only constants.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S2.SS2" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-scale-schedule"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;2.2 &lt;/span&gt;The Scale Schedule&lt;/h3&gt;
&lt;div id="S2.Thmtheorem4" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 2.4&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Scales and Blocks)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;scale&lt;/em&gt; is a number $b$ with $1\leq b\leq n\text{.}$ For an integer scale $b\text{,}$ the &lt;em class="ltx_emph ltx_font_italic"&gt;scale-$b$ blocks&lt;/em&gt; are the sets of ranks
$\{(i-1)b+1,\dots,ib\}\cap[n]$ for $i=1,\dots,\lceil n/b\rceil\text{.}$ Each holds $b$ ranks except
possibly the last, and $i$ is the &lt;em class="ltx_emph ltx_font_italic"&gt;label&lt;/em&gt; of the $i$-th block. A position lies in a block if
its rank does. The scale $b$ is &lt;em class="ltx_emph ltx_font_italic"&gt;dyadic&lt;/em&gt; if it is a power of two. Every block of a dyadic
scale lies in a block of each larger dyadic scale. For finite $r\geq 2\text{,}$ a &lt;em class="ltx_emph ltx_font_italic"&gt;schedule&lt;/em&gt; is a
sequence $b_{j}=n^{a_{j}}\text{,}$ $0\leq j\leq r-2\text{,}$ with exponents $1&amp;gt;a_{0}&amp;gt;a_{1}&amp;gt;\dots&amp;gt;a_{r-2}&amp;gt;0\text{.}$ Its
finest term is $g=b_{r-2}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.SS2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For finite $r\geq 2\text{,}$ both bounds use the schedule determined by the following system in the
unknowns $\beta,a_{0},\dots,a_{r-2}\text{.}$ It has one equation for the splitter round of the algorithm,
one for each refinement round $j=1,\dots,r-2\text{,}$ and one for the cleanup round. Each states that the
movement of that round is $n^{\beta}\text{,}$ and &lt;a href="#S1.SS2" title="1.2 Overview ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.2&lt;/span&gt;&lt;/a&gt; explains the three expressions.&lt;/p&gt;
&lt;div class="paper-eqgroup"&gt;&lt;span class="paper-eq-anchor" id="Sx1.EGx2"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S2.E1"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S2.E2"&gt;&lt;/span&gt;&lt;span class="paper-eq-anchor" id="S2.E3"&gt;&lt;/span&gt;&lt;div class="paper-eqgroup-body"&gt;$$\begin{aligned}
&amp;amp; \text{splitter:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=2-a_{0}, \\
&amp;amp; \text{refinement }j\text{:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=1+\frac{1-a_{j-1}}{D}+a_{j-1}-a_{j}\qquad(1\leq j\leq r-2), \\
&amp;amp; \text{cleanup:}\qquad &amp;amp; \displaystyle\beta &amp;amp; \displaystyle=1+a_{r-2}+\frac{1-a_{r-2}}{D}.
\end{aligned}$$&lt;/div&gt;&lt;div class="paper-eqgroup-no paper-eqgroup-no-rows"&gt;&lt;span class="paper-eqgroup-number"&gt;(2.1)&lt;/span&gt;&lt;span class="paper-eqgroup-number"&gt;(2.2)&lt;/span&gt;&lt;span class="paper-eqgroup-number"&gt;(2.3)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.Thmtheorem5" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 2.5&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem5.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $r\geq 2$ and let $q=(D-1)/D\text{.}$ The system of &lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equations&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt; to &lt;a href="#S2.E3" title="Equation 2.3 ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt; has
the unique solution&lt;/span&gt;&lt;/p&gt;
&lt;table id="S2.Ex3" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\beta=\beta_{r}^{(d)}=1+\frac{1-q}{1-q^{\,r}},\qquad a_{j}=\frac{q^{\,j+1}-q^{\,r}}{1-q^{\,r}}\quad(0\leq j\leq r-2),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;and $1&amp;gt;a_{0}&amp;gt;a_{1}&amp;gt;\dots&amp;gt;a_{r-2}&amp;gt;0\text{,}$ so the $a_{j}$ define a schedule. We write
$\delta=\beta_{r}^{(d)}-1=(1-q)/(1-q^{\,r})\text{,}$ so $a_{0}=1-\delta\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S2.SS2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For a solution, write $\delta=\beta-1$ and $t_{j}=1-a_{j}\text{.}$ &lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt; gives $t_{0}=\delta\text{.}$
Since $q=1-1/D\text{,}$ &lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; reads $t_{j}=q\,t_{j-1}+\delta\text{,}$ so&lt;/p&gt;
&lt;table id="S2.Ex4" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$t_{j}=\delta\,(1+q+\dots+q^{\,j})\qquad(0\leq j\leq r-2),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;and &lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equations&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S2.E2" title="Equation 2.2 ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; determine every $a_{j}$ from $\delta\text{.}$ &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt; reads
$\delta=1-q\,t_{r-2}\text{,}$ that is, $\delta\,(1+q+\dots+q^{\,r-1})=1\text{,}$ whose unique solution is
$\delta=(1-q)/(1-q^{\,r})\text{.}$ Hence $\beta=\beta_{r}^{(d)}\text{,}$ and $t_{j}=(1-q^{\,j+1})/(1-q^{\,r})$ gives
$a_{j}=(q^{\,j+1}-q^{\,r})/(1-q^{\,r})\text{.}$ Finally,
$a_{j}-a_{j+1}=q^{\,j+1}(1-q)/(1-q^{\,r})&amp;gt;0$ for $0\leq j\leq r-3\text{,}$
$a_{r-2}=q^{\,r-1}(1-q)/(1-q^{\,r})&amp;gt;0\text{,}$ and $a_{0}=1-\delta&amp;lt;1\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S2.SS2.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;From now on, for given $d$ and finite $r\geq 2\text{,}$ the exponents $a_{0},\dots,a_{r-2}$ are those of
&lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt;, $b_{j}=n^{a_{j}}$ is their schedule, and $g=b_{r-2}\text{.}$ The algorithms use the
$b_{j}$ as real parameters. In &lt;a href="#S4" title="4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt;, where blocks must nest, $b_{j}$ denotes the largest
power of two not exceeding $n^{a_{j}}\text{,}$ which differs from $n^{a_{j}}$ by a factor less than $2\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S2.Thmtheorem6" class="ltx_theorem ltx_theorem_remark"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Remark 2.6&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_italic"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S2.Thmtheorem6.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Since $(1-q)/(1-q^{\,r})=1/(1+q+\dots+q^{\,r-1})\text{,}$ and the sum $1+q+\dots+q^{\,r-1}$ increases
strictly in $r$ and, for $r\geq 2\text{,}$ in $q=1-1/(2d)\text{,}$ the exponent $\beta_{r}^{(d)}$ decreases strictly in $r$
and, for $r\geq 2\text{,}$ in $d\text{.}$ It lies in $(1+\tfrac{1}{2d},\,2]\text{.}$ Its distance to the fully adaptive
exponent satisfies&lt;/p&gt;
&lt;table id="S2.Ex5" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\beta_{r}^{(d)}-\Bigl(1+\frac{1}{2d}\Bigr)=\frac{q^{\,r}(1-q)}{1-q^{\,r}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S3" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="geometry-of-the-comparison-grid"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;3 &lt;/span&gt;Geometry of the Comparison Grid&lt;/h2&gt;
&lt;div id="S3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;This section proves three facts about the comparison grid that the lower bound uses. A route that
visits many cells far apart from one another has large movement (&lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;). The other two facts
concern the &lt;em class="ltx_emph ltx_font_italic"&gt;uniform input&lt;/em&gt;, a uniformly random bijection $\pi\colon[m]^{d}\to[n]\text{.}$ With
probability at least $7/8\text{,}$ at least half of the cells whose two positions lie in a common block of
ranks are far from all other such cells (&lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt;). With probability at least $1-n^{-10}\text{,}$
every route, however it is chosen, visits few such cells per unit of movement (&lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.Thmtheorem1" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 3.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Co-Blocked Cells)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S3.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Two positions are &lt;em class="ltx_emph ltx_font_italic"&gt;co-blocked&lt;/em&gt; at an integer scale $b$ if their ranks lie in the same scale-$b$ block. A
cell is co-blocked at scale $b$ if its two positions are. We write $\mathcal{C}_{b}$ for the
set of cells co-blocked at scale $b\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The set $\mathcal{C}_{b}$ depends on the input, but its size does not. For integer $b$ with $2\leq b\leq n$ we have $\tfrac{1}{4}n(b-1)\leq|\mathcal{C}_{b}|\leq\tfrac{1}{2}n(b-1)\text{,}$ and in particular
$|\mathcal{C}_{b}|\geq nb/8\text{.}$ Indeed, $2|\mathcal{C}_{b}|$ is the sum over all positions $x$ of
the number of other positions co-blocked with $x\text{.}$ Every position is co-blocked with at most $b-1$
others, which gives the upper bound. At least $n/2$ positions lie in blocks of exactly $b$ ranks,
since $b\lfloor n/b\rfloor\geq n/2\text{,}$ and each of them is co-blocked with exactly $b-1$ others, which
gives the lower bound. On the uniform input, two fixed positions are co-blocked at scale $b$ with
probability at most $b/n\text{:}$ given the rank of one, the rank of the other is uniform over the
remaining $n-1$ ranks, at most $b-1$ of which lie in its block, and $(b-1)/(n-1)\leq b/n\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.Thmtheorem2" class="ltx_theorem ltx_theorem_fact"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Fact 3.2&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S3.Thmtheorem2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $Y$ be a metric space with metric $\operatorname{dist}_{Y}\text{,}$ and let $W\subseteq Y$ be finite with
$|W|\geq 2\text{.}$ For $w\in W$ let $\nu_{W}(w)=\min_{w^{\prime}\in W\setminus\{w\}}\operatorname{dist}_{Y}(w,w^{\prime})\text{.}$ Then every
finite sequence of points of $Y$ that contains every point of $W$ has length at least
$\tfrac{1}{2}\sum_{w\in W}\nu_{W}(w)\text{,}$ where the length of a sequence is the sum of the distances
between consecutive points.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S3.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Keeping only the first occurrence of each point of $W$ gives a path through $W$ that, by the
triangle inequality, is no longer than the sequence. So the sequence is at least as long as a
minimum spanning tree of $W\text{.}$ Charge each $w\in W$ to a shortest edge of this tree at $w\text{.}$ That
edge has length at least $\nu_{W}(w)\text{,}$ and each edge is charged at most twice, so
$\sum_{w\in W}\nu_{W}(w)$ is at most twice the length of the tree.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S3.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We apply &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt; to cells with the metric $\operatorname{dist}\text{.}$ Let $\rho&amp;gt;0\text{,}$ and let a route of movement
$L$ visit every cell of a set $W$ of at least two cells that are pairwise more than $\rho$ apart.
Deleting the configurations $(x,x)$ from the route leaves a sequence of cells of $\operatorname{dist}$-length at
most $L$ that contains every cell of $W$ (&lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b)). Since $\nu_{W}(w)&amp;gt;\rho$ for every
$w\in W\text{,}$ &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt; gives $L\geq\tfrac{1}{2}|W|\rho\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.Thmtheorem3" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 3.3&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S3.Thmtheorem3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every integer scale $b\geq 2$ there is a radius $\rho=\Theta_{d}\bigl((n/b)^{1/D}\bigr)$ such that, with
probability at least $7/8$ over the uniform input, at least half of the cells $w\in\mathcal{C}_{b}$
satisfy $\operatorname{dist}(w,\mathcal{C}_{b}\setminus\{w\})&amp;gt;\rho\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S3.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We bound the expected number of pairs of cells of $\mathcal{C}_{b}$ that are close to each other
and apply Markov’s inequality. Let $\rho=\varepsilon_{0}(n/b)^{1/D}\text{,}$ where $0&amp;lt;\varepsilon_{0}\leq 1$ depends only
on $d$ and is chosen below. Distinct cells are at distance at least $1\text{,}$ so if $\rho&amp;lt;1$ every cell
satisfies the condition. Assume therefore that $\rho\geq 1\text{.}$ Let $Z$ be the number of ordered pairs $(w,w^{\prime})$ of
distinct cells of $\mathcal{C}_{b}$ with $\operatorname{dist}(w,w^{\prime})\leq\rho\text{.}$ A cell $w\in\mathcal{C}_{b}$ with
$\operatorname{dist}(w,\mathcal{C}_{b}\setminus\{w\})\leq\rho$ is the first entry of such a pair, so at most $Z$
cells violate the condition. It therefore suffices to show that
$\mathbb{E}Z\leq\tfrac{1}{16}|\mathcal{C}_{b}|\text{:}$ then Markov’s inequality applied to $Z$ gives
$Z\leq\tfrac{1}{2}|\mathcal{C}_{b}|$ with probability at least $7/8\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A ball of radius $\rho$ in $[m]^{d}$ contains at most $(2\rho+1)^{d}\leq(3\rho)^{d}$ positions, and
by &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b) at most $(3\rho)^{D}$ cells lie within distance $\rho$ of a given cell. Two
distinct cells share at most one position, so every pair counted by $Z$ falls into exactly one of
the following two cases.&lt;/p&gt;
&lt;ul id="S3.I1" class="ltx_itemize"&gt;
&lt;li id="S3.I1.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;•&lt;/span&gt;
&lt;div id="S3.I1.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The cells share a position: $w=\{u,v\}$ and $w^{\prime}=\{u,v^{\prime}\}$ with $v\neq v^{\prime}\text{.}$ Both lie in
$\mathcal{C}_{b}$ only if the ranks of $u\text{,}$ $v\text{,}$ and $v^{\prime}$ lie in one block. Given the rank of
$u\text{,}$ this has probability at most $\frac{b-1}{n-1}\cdot\frac{b-2}{n-2}\leq(b/n)^{2}\text{.}$ The
condition $\operatorname{dist}(w,w^{\prime})\leq\rho$ requires $\lVert v-v^{\prime}\rVert_{1}\leq\rho\text{,}$ or
$\lVert u-v^{\prime}\rVert_{1}+\lVert v-u\rVert_{1}\leq\rho\text{,}$ in which case both $v$ and $v^{\prime}$ lie
within distance $\rho$ of $u\text{.}$ There are therefore at most $n^{2}(3\rho)^{d}+n(3\rho)^{2d}$
such triples $(u,v,v^{\prime})\text{,}$ and these pairs contribute at most&lt;/p&gt;
&lt;table id="S3.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\Bigl(\frac{b}{n}\Bigr)^{2}\bigl(n^{2}(3\rho)^{d}+n(3\rho)^{2d}\bigr)=3^{d}\varepsilon_{0}^{d}\,nb\Bigl(\frac{b}{n}\Bigr)^{1/2}+9^{d}\varepsilon_{0}^{2d}\,b\leq 2\cdot 9^{d}\varepsilon_{0}^{d}\,nb.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S3.I1.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;•&lt;/span&gt;
&lt;div id="S3.I1.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The cells have four distinct positions. There are at most $\tfrac{1}{2}n^{2}(3\rho)^{D}$ such
pairs. For each of them both cells lie in $\mathcal{C}_{b}$ with probability $O(b^{2}/n^{2})\text{,}$
because the first cell is co-blocked with probability at most $b/n$ and, given the ranks of
its positions, the second with probability at most $(b-1)/(n-3)\text{.}$ These pairs contribute&lt;/p&gt;
&lt;table id="S3.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$O\Bigl(\frac{b^{2}}{n^{2}}\Bigr)\cdot n^{2}(3\rho)^{D}=O\bigl(9^{d}\varepsilon_{0}^{2d}\,nb\bigr).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="ltx_p"&gt;Since $|\mathcal{C}_{b}|\geq nb/8$ and $\varepsilon_{0}\leq 1\text{,}$ there is a constant $c_{d}$ depending only
on $d$ such that the two contributions give $\mathbb{E}Z\leq c_{d}\,\varepsilon_{0}^{d}\,|\mathcal{C}_{b}|\text{.}$
Choosing $\varepsilon_{0}$ with $c_{d}\varepsilon_{0}^{d}\leq\tfrac{1}{16}$ completes the proof.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S3.Thmtheorem4" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 3.4&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S3.Thmtheorem4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Fix a constant $\alpha&amp;lt;1\text{.}$ There is a constant $c$ depending only on $d$ and $\alpha$ with the
following property. For a dyadic scale $b\leq n^{\alpha}\text{,}$ let $E_{b}$ be the event that every
route visits at most $c\bigl(1+L(b/n)^{1/D}\bigr)\log n$ cells of $\mathcal{C}_{b}\text{,}$ where $L$ is the
movement of the route. Then, for sufficiently large $n\text{,}$ with probability at least $1-n^{-10}$ over
the uniform input, $E_{b}$ holds for every dyadic scale $b\leq n^{\alpha}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S3.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We partition the comparison grid into products of two cubes, show that with high probability none
of these products contains many cells of $\mathcal{C}_{b}\text{,}$ and then cut a route into pieces that
each stay in few of them. Let $n$ be large enough for the estimates below, and fix a dyadic scale
$b\leq n^{\alpha}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Let $s=\lceil(n/b)^{1/D}\rceil$ and partition $[m]^{d}$ into cubes of side $s\text{,}$ clipped at the
boundary. Since $(n/b)^{1/D}\geq 1\text{,}$ each cube contains at most $s^{d}\leq V$ positions, where
$V=2^{d}(n/b)^{1/2}\text{.}$ A &lt;em class="ltx_emph ltx_font_italic"&gt;product box&lt;/em&gt; is a set $I\times J\subseteq[m]^{D}$ for two of these
cubes $I$ and $J\text{.}$ There are at most $n^{2}$ product boxes. The &lt;em class="ltx_emph ltx_font_italic"&gt;load&lt;/em&gt; of $I\times J$ is
$|\mathcal{C}_{b}\cap(I\times J)|\text{,}$ the number of cells of $\mathcal{C}_{b}$ that lie in
$I\times J\text{.}$ Cells that share a position are correlated, while disjoint cells are nearly independent, so we
show that a product box of large load contains either many disjoint cells or a block with many of its positions.
Let $\zeta=\lceil 30/(1-\alpha)\rceil\text{,}$ $\mu=\lceil\max\{12\cdot 4^{d},\,13\log n\}\rceil\text{,}$
and $\Lambda_{0}=2\zeta\mu=O_{d,\alpha}(\log n)\text{.}$ We show that a fixed product box $I\times J$ has
load at least $\Lambda_{0}$ with probability at most $2n^{-13}\text{.}$ View the cells counted by the load
as the edges of a graph on $I\cup J\text{.}$ Every edge joins two positions of one block. If every block
contains fewer than $\zeta$ positions of $I\cup J\text{,}$ then every vertex has degree less than $\zeta\text{,}$
and a greedy matching, which discards fewer than $2\zeta$ edges for each edge it keeps, finds $\mu$
disjoint edges among any $\Lambda_{0}=2\zeta\mu$ edges. Hence, if the load is at least
$\Lambda_{0}\text{,}$ one of the following two events occurs.&lt;/p&gt;
&lt;ul id="S3.I2" class="ltx_itemize"&gt;
&lt;li id="S3.I2.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;•&lt;/span&gt;
&lt;div id="S3.I2.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Some block contains at least $\zeta$ positions of $I\cup J\text{.}$ The probability that $\zeta$
given positions all lie in a given block is at most $(b/n)^{\zeta}\text{,}$ and $I\cup J$ has at
most $2V$ positions. A union bound over the at most $n$ blocks and the at most
$(2V)^{\zeta}$ sets of $\zeta$ positions bounds the probability of this event by&lt;/p&gt;
&lt;table id="S3.Ex3" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$n\Bigl(\frac{2Vb}{n}\Bigr)^{\zeta}\leq n\bigl(2^{d+1}n^{-(1-\alpha)/2}\bigr)^{\zeta}\leq n^{-13},$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;using $b\leq n^{\alpha}$ and $(1-\alpha)\zeta/2\geq 15\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S3.I2.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;•&lt;/span&gt;
&lt;div id="S3.I2.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Some $\mu$ disjoint cells of $\mathcal{C}_{b}$ lie in $I\times J\text{.}$ At most $V^{2}$ cells
lie in $I\times J\text{,}$ so there are at most $(V^{2})^{\mu}/\mu!$ sets of $\mu$ disjoint cells in
$I\times J\text{.}$ Given the ranks of the positions of the earlier cells of such a set, the next
cell is co-blocked with probability at most $(b-1)/(n-2\mu)\leq 2b/n\text{,}$ so all its cells are
co-blocked with probability at most $(2b/n)^{\mu}\text{.}$ Since $V^{2}b/n=4^{d}$ and
$\mu!\geq(\mu/3)^{\mu}\text{,}$ a union bound over these sets bounds the probability of this event
by&lt;/p&gt;
&lt;table id="S3.Ex4" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\frac{(2\cdot 4^{d})^{\mu}}{\mu!}\leq\Bigl(\frac{6\cdot 4^{d}}{\mu}\Bigr)^{\mu}\leq 2^{-\mu}\leq n^{-13}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="ltx_p"&gt;A union bound over the at most $\log n+1$ dyadic scales $b\leq n^{\alpha}$ and the at most $n^{2}$
product boxes of each shows that, with probability at least $1-n^{-10}\text{,}$ at every dyadic scale
$b\leq n^{\alpha}$ every product box has load less than $\Lambda_{0}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S3.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;On this event we bound the number of cells of $\mathcal{C}_{b}$ that a route visits. Cut a route
$z_{0},\dots,z_{L}$ into the pieces $z_{is},\dots,z_{\min\{(i+1)s,L\}}$ for
$0\leq i\leq\lfloor L/s\rfloor\text{.}$ There are at most $1+L/s\leq 1+L(b/n)^{1/D}$ of them. Every
configuration $(x^{\prime},y^{\prime})$ of a piece lies within $\ell_{1}$-distance $s$ of the first configuration
$(x,y)$ of the piece, so $x^{\prime}$ lies in the cube of side $2s+1$ centered at $x\text{,}$ and $y^{\prime}$ in the cube
of side $2s+1$ centered at $y\text{.}$ Along each axis, $2s+1$ consecutive integers meet at most three
intervals of the partition, so each of these two cubes meets at most $3^{d}$ cubes of the
partition, and the piece stays in at most $9^{d}$ product boxes. Every cell that the piece visits
lies in one of them, so the piece visits fewer than $9^{d}\Lambda_{0}$ cells of $\mathcal{C}_{b}\text{,}$
and the route visits fewer than $9^{d}\Lambda_{0}\bigl(1+L(b/n)^{1/D}\bigr)\text{.}$ Since
$\Lambda_{0}=O_{d,\alpha}(\log n)\text{,}$ this is the bound of $E_{b}$ for a suitable constant $c$
depending only on $d$ and $\alpha\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S3.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The logarithm in &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; comes from the largest load over all product boxes. The
expected load of a fixed product box is at most $4^{d}\text{,}$ since at most $4^{d}n/b$ cells lie in it,
each co-blocked with probability at most $b/n\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S4" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="the-lower-bound-1"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;4 &lt;/span&gt;The Lower Bound&lt;/h2&gt;
&lt;div id="S4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;This section proves the lower-bound half of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem1" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 4.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Lower Bound)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $d\geq 1$ and $r\geq 1\text{,}$ $M_{r}^{(d)}(n)=\Omega_{d,r}\bigl(n^{\beta_{r}^{(d)}}/\log n\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The proof has the same plan for every finite $r\geq 2\text{.}$ Correctness forces the final round to visit every cell that is
co-blocked at the finest scale and whose positions the earlier rounds have not compared inside their block
(&lt;a href="#S4.SS1" title="4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;). Unless an earlier round already has movement about $n^{\beta_{r}^{(d)}}\text{,}$ up to a logarithmic factor, many such cells
remain and lie far apart, so the final round has this movement. For $r\leq 2$ this argument is short and loses no
logarithmic factor. &lt;a href="#S4.SS2" title="4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt; gives it, together with the bound $\Omega_{d}(n^{1+1/(2d)})$ for every $r\text{,}$
including $r=\infty\text{.}$ For $r\geq 3$ the middle rounds are adaptive, and &lt;a href="#S4.SS3" title="4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; controls what they can
learn. &lt;a href="#S4.SS4" title="4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt; removes the logarithmic factor on the line.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The lower bounds are proved on the uniform input. Fixing the coins of an $r$-round algorithm that is
correct on every input and for every outcome of its coins gives a deterministic $r$-round algorithm
that is correct on every input. Hence, by Yao’s principle &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib41" title="Probabilistic computations: toward a unified measure of complexity" class="ltx_ref"&gt;Yao77&lt;/a&gt;]&lt;/cite&gt;, a lower bound on the
expected movement on the uniform input that holds for every deterministic $r$-round algorithm
correct on every input is a lower bound on $M_{r}^{(d)}(n)\text{.}$ The lemmas of &lt;a href="#S4.SS1" title="4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;
hold for every input, and the uniform input is used only when we count.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S4.SS1" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-augmented-model-and-forced-comparisons"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;4.1 &lt;/span&gt;The Augmented Model and Forced Comparisons&lt;/h3&gt;
&lt;div id="S4.SS1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For finite $r\geq 2\text{,}$ let $\beta=\beta_{r}^{(d)}\text{.}$ Recall from &lt;a href="#S2.SS2" title="2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.2&lt;/span&gt;&lt;/a&gt; that in this
section $b_{j}$ is the largest power of two not exceeding $n^{a_{j}}\text{,}$ where $a_{0}&amp;gt;\dots&amp;gt;a_{r-2}$
are the exponents of &lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt;, and that $g=b_{r-2}\text{.}$ Thus
$n^{a_{j}}/2&amp;lt;b_{j}\leq n^{a_{j}}\text{.}$ The scales $b_{j}$ are powers of two, so every scale-$b_{j}$ block
lies in a scale-$b_{i}$ block for $i&amp;lt;j\text{.}$ Since $a_{r-2}&amp;gt;0$ and $a_{j-1}&amp;gt;a_{j}\text{,}$ for $n$ larger than a
constant depending on $d$ and $r$ we have $g\geq 2$ and $b_{j-1}\geq 2b_{j}$ for $1\leq j\leq r-2\text{,}$ and we
assume this throughout the section.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A scale-$b$ block is &lt;em class="ltx_emph ltx_font_italic"&gt;full&lt;/em&gt; if it holds $b$ ranks. Otherwise it is &lt;em class="ltx_emph ltx_font_italic"&gt;partial&lt;/em&gt;. Every
$b_{j}$ divides $b_{0}\text{,}$ so the positions whose rank lies in a partial block of some scale $b_{j}$
are exactly those of rank greater than $b_{0}\lfloor n/b_{0}\rfloor\text{,}$ and there are fewer than
$b_{0}$ of them. The proofs below set these positions aside, because their counts need blocks of exactly $b$ ranks.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;From round $2$ on, a route can use earlier outcomes to choose cells that are likely to be co-blocked, so the
probability $b/n$ no longer applies to the cells it visits. We therefore give the algorithm more information, which can
only help it, in a form that leaves, inside most blocks, the ranks of the positions not yet compared in the block
uniformly random (&lt;a href="#S4.Thmtheorem8" title="Lemma 4.8. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.8&lt;/span&gt;&lt;/a&gt;). In the &lt;em class="ltx_emph ltx_font_italic"&gt;augmented model&lt;/em&gt;, after round $j\text{,}$ for $1\leq j\leq r-2\text{,}$ the label of the
scale-$b_{j-1}$ block of every position is revealed at no cost, and the route of each later round
may depend on the revealed labels. Thus the route of round $1$ depends on no outcome and no label,
and for $j\geq 1$ the route of round $j+1$ may depend on the outcomes of rounds $1,\dots,j$ and on the
labels revealed after them. The &lt;em class="ltx_emph ltx_font_italic"&gt;revealed scales&lt;/em&gt; are $b_{0},\dots,b_{r-3}\text{,}$ and the labels at the
finest scale $g$ are never revealed. An algorithm of the original model is an algorithm of the
augmented model that ignores the labels, so a lower bound in the augmented model is a lower bound in
the original one. Once the labels at a scale are revealed, a comparison of two positions in
different blocks of that scale has a known outcome, so all further information about the ranks comes
from comparisons inside these blocks.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We now show which comparisons correctness forces. Let $P_{t}$ be the partial order on positions generated by the relations $x&amp;lt;y\text{,}$ where $\{x,y\}$
ranges over the cells compared in rounds $1,\dots,t$ and $\operatorname{rk}(x)&amp;lt;\operatorname{rk}(y)\text{.}$ Revealed labels separate
only positions in different blocks, so they do not help to order two positions that have the same
labels:&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem2" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.2&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let a deterministic $r$-round algorithm in the augmented model be correct on every input, and fix an
input. If two positions $u$ and $v$ are incomparable in $P_{r-1}$ and have the same label at every
revealed scale, then the route of round $r$ visits the cell $\{u,v\}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS1.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We construct two inputs that agree with the given input on all revealed labels and on all outcomes
of rounds $1,\dots,r-1\text{,}$ but order $u$ and $v$ oppositely. Correctness then forces round $r$ to
compare $u$ and $v\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;If $r\leq 2\text{,}$ nothing is revealed, and we let $\lambda(x)=1$ for every position $x\text{.}$ If $r\geq 3\text{,}$ let
$\lambda(x)$ be the label of $x$ at the finest revealed scale $b_{r-3}\text{.}$ The revealed partitions
nest, so $\lambda(x)$ determines the labels of $x$ at all revealed scales. In both cases
$\lambda(u)=\lambda(v)\text{.}$ Let $P^{\prime}$ be the partial order generated by $P_{r-1}$ and the relations $x&amp;lt;y$
for all positions $x,y$ with $\lambda(x)&amp;lt;\lambda(y)\text{.}$ The given input extends $P^{\prime}\text{,}$ because blocks are intervals of ranks ordered
by their labels.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The positions $u$ and $v$ are incomparable in $P^{\prime}\text{.}$ Indeed, along a relation of $P_{r-1}$ the label
$\lambda$ does not decrease, because the two positions of a compared cell are ordered by rank and
every block is an interval of ranks. Along an added relation, $\lambda$ increases strictly. Hence
$\lambda$ does not decrease along a chain of $P^{\prime}$ from $u$ to $v\text{,}$ and since
$\lambda(u)=\lambda(v)\text{,}$ it is constant on the chain. So the chain uses no added relation and lies
in $P_{r-1}\text{,}$ which contradicts the incomparability of $u$ and $v$ in $P_{r-1}\text{.}$ The same argument
rules out a chain from $v$ to $u\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We now build the two inputs. List first the positions that lie below $u$ or $v$ in $P^{\prime}\text{,}$ in an
order that extends $P^{\prime}\text{;}$ then $u$ and $v\text{,}$ in either order; then the remaining positions, in an
order that extends $P^{\prime}\text{.}$ No remaining position lies below a position of the first part, and since
$u$ and $v$ are incomparable in $P^{\prime}\text{,}$ neither of them lies below a position of the first part. So
both lists extend $P^{\prime}\text{.}$ Read as rank assignments, they are two inputs $\pi_{1}$ and $\pi_{2}$ that
differ by exchanging two adjacent ranks at $u$ and $v\text{.}$ For $r\geq 3\text{,}$ both have the given labels at
every revealed scale: in a linear extension of $P^{\prime}$ the positions with $\lambda=i$ receive
consecutive ranks, and there are as many of them as the block with label $i$ has ranks, so they
receive exactly those ranks.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Finally we compare the executions. Since $\pi_{1}$ and $\pi_{2}$ extend $P_{r-1}$ and have the given
labels, induction over the rounds shows that on both inputs the algorithm runs the same routes in
rounds $1,\dots,r-1$ as on the given input and receives the same outcomes, so it also runs the same
route in round $r\text{.}$ A comparison other than $\{u,v\}$ has the same outcome on $\pi_{1}$ and
$\pi_{2}\text{:}$ if it involves neither $u$ nor $v\text{,}$ its two ranks are unchanged, and if it involves $u$
or $v$ and a third position, the rank of the third position lies on the same side of the two
adjacent ranks. If the route of round $r$ did not visit $\{u,v\}\text{,}$ all outcomes on $\pi_{1}$ and
$\pi_{2}$ would agree, the algorithm would output the same list on both inputs, and it would be
wrong on one of them.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Two positions of one block can be ordered only through a comparison inside the block:&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem3" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.3&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $P$ be the partial order generated, in the same way as $P_{t}\text{,}$ by the outcomes of a set of
comparisons. If $u&amp;lt;_{P}v$ and $u$ and $v$ lie in a common scale-$b$ block, then one of these
comparisons involves $u$ and another position of this block.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS1.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Write $u&amp;lt;_{P}v$ as a chain $u=x_{0},x_{1},\dots,x_{i}=v$ in which every two consecutive positions
form a compared cell and have increasing ranks. The ranks along the chain lie between $\operatorname{rk}(u)$ and
$\operatorname{rk}(v)\text{,}$ hence in the block. So the first cell of the chain, $\{u,x_{1}\}\text{,}$ is a comparison of $u$
with another position of the block.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS1.p12" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Together, &lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemmas&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S4.Thmtheorem3" title="Lemma 4.3. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; show that round $r$ must visit every cell co-blocked at scale
$g$ whose two positions have not been compared, in rounds $1,\dots,r-1\text{,}$ with other positions of
their scale-$g$ block. Indeed, by &lt;a href="#S4.Thmtheorem3" title="Lemma 4.3. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; the two positions are incomparable in $P_{r-1}\text{,}$
and since every revealed scale is coarser than $g\text{,}$ they have the same revealed labels.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S4.SS2" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="two-rounds-and-the-fully-adaptive-bound"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;4.2 &lt;/span&gt;Two Rounds and the Fully Adaptive Bound&lt;/h3&gt;
&lt;div id="S4.SS2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The proof for $r=2$ has four stages, which the proof for $r\geq 3$ in &lt;a href="#S4.SS3" title="4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; follows. The route of
round $1$ is fixed before any outcome is known, so there is no adaptivity to control, &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; is not needed,
and no logarithmic factor is lost.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem4" class="ltx_theorem ltx_theorem_proposition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Proposition 4.4&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $d$ and every $r\leq 2\text{,}$ $M_{r}^{(d)}(n)=\Omega_{d}\bigl(n^{\beta_{r}^{(d)}}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By Yao’s principle, fix a deterministic $r$-round algorithm that is correct on every input and let
$\pi$ be uniform. We show that $\mathbb{E}[\mathrm{Move}]=\Omega_{d}\bigl(n^{\beta_{r}^{(d)}}\bigr)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r=1\text{,}$ the order $P_{0}$ is empty and no label is revealed, so by &lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt; the route
visits every cell. By &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(a), $\mathrm{Move}\geq\binom{n}{2}-1=\Omega(n^{2})\text{,}$ and
$\beta_{1}^{(d)}=2\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Now let $r=2\text{,}$ so that $g=b_{0}$ and, by &lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt;, $\beta=2-a_{0}\text{.}$ Write $L_{1}$ and
$L_{2}$ for the movements of the two routes. No outcome is known before round $1\text{,}$ so the route of
round $1$ and $L_{1}$ do not depend on $\pi\text{.}$ Let $\varepsilon=1/192\text{.}$ If $L_{1}\geq\varepsilon n^{\beta}\text{,}$ then
$\mathrm{Move}\geq\varepsilon n^{\beta}$ and there is nothing to prove, so assume $L_{1}&amp;lt;\varepsilon n^{\beta}\text{.}$
Call a position &lt;em class="ltx_emph ltx_font_italic"&gt;clean&lt;/em&gt; if its rank lies in a full scale-$g$ block and it lies in no cell that
round $1$ visits and that is co-blocked at scale $g\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Exposure.&lt;/em&gt; The route of round $1$ visits at most $L_{1}+1$ cells (&lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(a)), each
co-blocked at scale $g$ with probability at most $g/n\text{,}$ and fewer than $g$ positions lie in a partial
block. So the expected number of positions that are not clean is less than
$g+2(L_{1}+1)g/n\leq n^{a_{0}}+2\varepsilon n^{\beta+a_{0}-1}+2\text{.}$ Since $\beta+a_{0}-1=1\text{,}$ this is
$n/96+o(n)\text{,}$ which is at most $n/64$ for large $n\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Survivors.&lt;/em&gt; Every position lies in fewer than $g$ cells of $\mathcal{C}_{g}\text{,}$ so the expected
number of cells of $\mathcal{C}_{g}$ with a position that is not clean is at most
$gn/64\leq|\mathcal{C}_{g}|/8\text{.}$ By Markov’s inequality, with probability at least $1/2$ at most
$|\mathcal{C}_{g}|/4$ cells of $\mathcal{C}_{g}$ have such a position. By &lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt; at
scale $g\text{,}$ with probability at least $7/8$ at least half of the cells $w\in\mathcal{C}_{g}$ satisfy
$\operatorname{dist}(w,\mathcal{C}_{g}\setminus\{w\})&amp;gt;\rho\text{,}$ where $\rho=\Theta_{d}\bigl((n/g)^{1/D}\bigr)\text{.}$ On the
intersection of the two events, which has probability at least $1-\tfrac{1}{2}-\tfrac{1}{8}=\tfrac{3}{8}\text{,}$ let
$\mathcal{H}$ be the set of cells of $\mathcal{C}_{g}$ that have two clean positions and satisfy this
condition. Then $|\mathcal{H}|\geq|\mathcal{C}_{g}|/4\geq ng/32\text{,}$ and any two cells of $\mathcal{H}$
are more than $\rho$ apart.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Forcing.&lt;/em&gt; Let $\{u,v\}\in\mathcal{H}\text{.}$ Since $u$ and $v$ are clean, neither has been compared in
round $1$ with another position of its scale-$g$ block, so by &lt;a href="#S4.Thmtheorem3" title="Lemma 4.3. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; they are
incomparable in $P_{1}\text{.}$ No label is revealed, so by &lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt; the route of round $2$ visits
$\{u,v\}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Cost of the Final Round.&lt;/em&gt; Since $|\mathcal{H}|\geq 2\text{,}$ &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b) and &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;
give&lt;/p&gt;
&lt;table id="S4.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$L_{2}\ \geq\ \tfrac{1}{2}|\mathcal{H}|\rho\ =\ \Omega_{d}\bigl(ng\,(n/g)^{1/D}\bigr)\ =\ \Omega_{d}\bigl(n^{1+a_{0}+(1-a_{0})/D}\bigr)\ =\ \Omega_{d}(n^{\beta}),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;where the second step uses $g&amp;gt;n^{a_{0}}/2$ and the last is &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt; for $r=2\text{.}$ So, when
$L_{1}&amp;lt;\varepsilon n^{\beta}\text{,}$ we have $L_{2}=\Omega_{d}(n^{\beta})$ on an event of probability at least $3/8\text{,}$ and hence
$\mathbb{E}[L_{2}]=\Omega_{d}(n^{\beta})\text{.}$ In both cases
$\mathbb{E}[\mathrm{Move}]=\Omega_{d}(n^{\beta})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS2.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next bound holds for every number of rounds and needs no schedule. It uses the cells of
$\mathcal{C}_{2}\text{,}$ which join the positions of ranks $2i-1$ and $2i\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem5" class="ltx_theorem ltx_theorem_proposition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Proposition 4.5&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem5.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $d$ and every $r\text{,}$ including $r=\infty\text{,}$
$M_{r}^{(d)}(n)=\Omega_{d}\bigl(n^{1+1/(2d)}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS2.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Let $r$ be finite. By Yao’s principle, fix a deterministic $r$-round algorithm that is correct on
every input and let $\pi$ be uniform. Every cell $\{u,v\}\in\mathcal{C}_{2}$ joins the positions of ranks $2i-1$ and $2i$ for some $i\text{,}$ and every
correct algorithm must compare it. Indeed, if the algorithm never compares $u$ and $v\text{,}$ then
exchanging their two ranks changes the outcome of no comparison that it makes. So, by induction
over the rounds, it runs the same routes on both inputs and gives the same output, which is wrong on
one of them. By &lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt; at scale $2\text{,}$ with probability at least $7/8$ at least half of
the $\lfloor n/2\rfloor$ cells $w\in\mathcal{C}_{2}$ satisfy $\operatorname{dist}(w,\mathcal{C}_{2}\setminus\{w\})&amp;gt;\rho\text{,}$
where $\rho=\Theta_{d}(n^{1/(2d)})\text{,}$ and these cells are pairwise more than $\rho$ apart. The routes of
all rounds, joined end to end, form one route of movement $\mathrm{Move}$ that visits all of them,
so by &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b) and &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;,
$\mathrm{Move}\geq\tfrac{1}{2}\cdot\tfrac{1}{2}\lfloor n/2\rfloor\cdot\rho=\Omega_{d}(n^{1+1/(2d)})$ on this
event. Hence $\mathbb{E}[\mathrm{Move}]=\Omega_{d}(n^{1+1/(2d)})\text{.}$ The constant depends only on $d\text{,}$
so the bound also holds for $M_{\infty}^{(d)}(n)=\inf_{r}M_{r}^{(d)}(n)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S4.SS3" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="adaptive-rounds"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;4.3 &lt;/span&gt;Adaptive Rounds&lt;/h3&gt;
&lt;div id="S4.SS3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Throughout &lt;a href="#S4.SS3" title="4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Sections&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S4.SS4" title="4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt;, let $r\geq 3\text{,}$ fix a deterministic
$r$-round algorithm in the augmented model that is correct on every input, let $\pi$ be uniform, and
write $L_{t}$ for the movement of its route in round $t\text{.}$ Since rounds $2,\dots,r-1$ are adaptive, we keep
track of what the first $r-1$ rounds can have learned. The bad set contains, scale by scale, the
positions that these rounds compare inside their blocks. It also contains all positions of
every block in which more than half of the positions are already bad, so that every other block keeps at
least half of its positions outside the bad set, which &lt;a href="#S4.Thmtheorem8" title="Lemma 4.8. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.8&lt;/span&gt;&lt;/a&gt; uses.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem6" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 4.6&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(The Bad Set)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem6.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The &lt;em class="ltx_emph ltx_font_italic"&gt;bad set&lt;/em&gt; is built in levels $j=0,1,\dots,r-2\text{,}$ and level $j$ concerns round $j+1\text{.}$ It starts from the set $\mathcal{A}_{-1}$ of positions whose rank lies in a partial block
of some scale $b_{i}\text{.}$ Level $j$ has two steps.&lt;/p&gt;
&lt;ol id="S4.I1" class="ltx_enumerate"&gt;
&lt;li id="S4.I1.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(a)&lt;/span&gt;
&lt;div id="S4.I1.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $j\geq 1\text{,}$ a scale-$b_{j-1}$ block is &lt;em class="ltx_emph ltx_font_italic"&gt;heavy at level $j$&lt;/em&gt; if more than half of its
positions lie in $\mathcal{A}_{j-1}\text{.}$ Let $\mathcal{A}_{j}^{-}$ consist of
$\mathcal{A}_{j-1}$ and all positions of the blocks that are heavy at level $j\text{.}$ Let
$\mathcal{A}_{0}^{-}=\mathcal{A}_{-1}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S4.I1.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(b)&lt;/span&gt;
&lt;div id="S4.I1.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Let $X_{j}$ be the set of positions outside $\mathcal{A}_{j}^{-}$ that lie in a cell visited
in round $j+1$ and co-blocked at scale $b_{j}\text{,}$ and let
$\mathcal{A}_{j}=\mathcal{A}_{j}^{-}\cup X_{j}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="ltx_p"&gt;The bad set is $\mathcal{A}=\mathcal{A}_{r-2}\text{.}$ A position is &lt;em class="ltx_emph ltx_font_italic"&gt;bad&lt;/em&gt; if it lies in
$\mathcal{A}\text{,}$ and &lt;em class="ltx_emph ltx_font_italic"&gt;clean&lt;/em&gt; otherwise. It is &lt;em class="ltx_emph ltx_font_italic"&gt;clean at level $j$&lt;/em&gt; if it lies outside
$\mathcal{A}_{j}^{-}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem7" class="ltx_theorem ltx_theorem_observation"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Observation 4.7&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem7.p1" class="ltx_para"&gt;
&lt;ol id="S4.I2" class="ltx_enumerate"&gt;
&lt;li id="S4.I2.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(a)&lt;/span&gt;
&lt;div id="S4.I2.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For &lt;/span&gt;$1\leq j\leq r-2$&lt;span class="ltx_text ltx_font_italic"&gt;, a position clean at level &lt;/span&gt;$j$&lt;span class="ltx_text ltx_font_italic"&gt; lies in a full scale-&lt;/span&gt;$b_{j-1}$&lt;span class="ltx_text ltx_font_italic"&gt; block that
is not heavy at level &lt;/span&gt;$j$&lt;span class="ltx_text ltx_font_italic"&gt;, and in rounds &lt;/span&gt;$1,\dots,j$&lt;span class="ltx_text ltx_font_italic"&gt; it has not been compared with another
position of this block.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S4.I2.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(b)&lt;/span&gt;
&lt;div id="S4.I2.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;A clean position has not been compared, in rounds &lt;/span&gt;$1,\dots,r-1$&lt;span class="ltx_text ltx_font_italic"&gt;, with another position of
its scale-&lt;/span&gt;$g$&lt;span class="ltx_text ltx_font_italic"&gt; block.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For every $i\text{,}$ both positions of a cell that round $i+1$ visits and that is co-blocked at scale
$b_{i}$ lie in $\mathcal{A}_{i}\text{.}$ Let $x$ be clean at level $j\text{,}$ and suppose that in round
$i+1\leq j$ it was compared with another position $y$ of its scale-$b_{j-1}$ block. The cell
$\{x,y\}$ is co-blocked at scale $b_{j-1}\text{,}$ hence at the coarser scale $b_{i}\text{,}$ so
$x\in\mathcal{A}_{i}\subseteq\mathcal{A}_{j}^{-}\text{,}$ a contradiction. The block of $x$ is full because
$\mathcal{A}_{-1}\subseteq\mathcal{A}_{j}^{-}\text{,}$ and it is not heavy because otherwise
$x\in\mathcal{A}_{j}^{-}\text{.}$ This proves (a). For (b), let $x$ be clean, and suppose that in round
$i+1\leq r-1$ it was compared with another position $y$ of its scale-$g$ block. The cell $\{x,y\}$ is
co-blocked at scale $g\text{,}$ hence at scale $b_{i}\text{,}$ so $x\in\mathcal{A}_{i}\subseteq\mathcal{A}\text{,}$ a
contradiction.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;To keep the bad set small, we bound $\mathbb{E}|X_{j}|$ for $1\leq j\leq r-2$ by combining two facts. A position enters $X_{j}$
only if it is clean at level $j$ and lies in a cell that round $j+1$ visits and that is co-blocked
at scale $b_{j}\text{,}$ and hence also at scale $b_{j-1}\text{.}$ &lt;a href="#S4.Thmtheorem8" title="Lemma 4.8. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.8&lt;/span&gt;&lt;/a&gt; below shows that a cell
that is co-blocked at scale $b_{j-1}$ and contains a position clean at level $j$ is co-blocked at scale $b_{j}$
with conditional probability $O(b_{j}/b_{j-1})\text{,}$ given what the algorithm knows before round
$j+1\text{,}$ and &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; shows that a short route visits few cells co-blocked at scale
$b_{j-1}\text{.}$ &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt; combines the two.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $1\leq j\leq r-2\text{,}$ let $\mathcal{F}_{j}$ be the $\sigma$-field generated by the labels at scales
$b_{0},\dots,b_{j-1}$ and the outcomes of rounds $1,\dots,j\text{.}$ In words, $\mathcal{F}_{j}$ is what
the algorithm knows when it commits the route of round $j+1\text{.}$ An &lt;em class="ltx_emph ltx_font_italic"&gt;atom&lt;/em&gt; of $\mathcal{F}_{j}$ is
one possible value of these labels and outcomes. Given an atom, that route is fixed. The lemma below
conditions on $\mathcal{F}_{j}$ and refers to the positions clean at level $j\text{,}$ so we check that these positions are
determined by $\mathcal{F}_{j}\text{.}$ By induction on $i\text{,}$ the sets $\mathcal{A}_{i-1}$ and
$\mathcal{A}_{i}^{-}$ are determined by $\mathcal{F}_{j}$ for every $i\leq j\text{.}$ The set
$\mathcal{A}_{-1}$ is determined by the labels at scale $b_{0}\text{.}$ Whether a block is heavy at level
$i$ depends only on $\mathcal{A}_{i-1}$ and the labels at scale $b_{i-1}\text{.}$ For $i&amp;lt;j\text{,}$ the set
$X_{i}$ depends only on $\mathcal{A}_{i}^{-}\text{,}$ the route of round $i+1\text{,}$ and the labels at scale
$b_{i}\text{,}$ and the last two are determined by $\mathcal{F}_{i+1}\subseteq\mathcal{F}_{j}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem8" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.8&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem8.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $1\leq j\leq r-2\text{,}$ and let $\{u,v\}$ be a cell. On the event that
$\{u,v\}$ is co-blocked at scale $b_{j-1}$ and $u$ is clean at level $j\text{,}$&lt;/span&gt;&lt;/p&gt;
&lt;table id="S4.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\Pr\bigl[\{u,v\}\text{ is co-blocked at scale }b_{j}\bigm|\mathcal{F}_{j}\bigr]\leq\frac{4b_{j}}{b_{j-1}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS3.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Fix an atom of $\mathcal{F}_{j}$ on which $\{u,v\}$ is co-blocked at scale $b_{j-1}$ and $u$ is
clean at level $j\text{,}$ and let $B$ be the scale-$b_{j-1}$ block of $u\text{.}$ By &lt;a href="#S4.Thmtheorem7" title="Observation 4.7. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.7&lt;/span&gt;&lt;/a&gt;(a), $B$ is
full and not heavy at level $j\text{.}$ Since $\mathcal{A}_{j}^{-}$ adds to $\mathcal{A}_{j-1}$ only
positions of heavy blocks, at most half of the $b_{j-1}$ positions of $B$ lie in
$\mathcal{A}_{j}^{-}\text{,}$ so the set $Y_{B}$ of positions of $B$ that are clean at level $j$ has at
least $b_{j-1}/2$ elements. Condition further on the ranks of all positions outside $Y_{B}\text{.}$ The
ranks of $B$ not assigned to these positions are the &lt;em class="ltx_emph ltx_font_italic"&gt;free slots&lt;/em&gt;. The positions of $Y_{B}$
occupy them.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We show that $\operatorname{rk}$ restricted to $Y_{B}$ is a uniformly random bijection onto the free slots. Since
$\pi$ is uniform, it suffices to show that permuting the ranks of $Y_{B}$ among the free slots does
not change the atom of $\mathcal{F}_{j}\text{.}$ Such a permutation keeps every rank inside $B\text{,}$ so it
changes no label at scales $b_{0},\dots,b_{j-1}\text{.}$ By &lt;a href="#S4.Thmtheorem7" title="Observation 4.7. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.7&lt;/span&gt;&lt;/a&gt;(a), every comparison of
rounds $1,\dots,j$ that involves a position of $Y_{B}$ has its other position outside $B\text{.}$ The rank
of that position lies above all ranks of $B$ or below all of them, so the outcome does not change.
The outcome of a comparison that involves no position of $Y_{B}$ does not change either. By induction
over the rounds, the routes and outcomes of rounds $1,\dots,j$ do not change, so the atom of
$\mathcal{F}_{j}$ does not change.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;It remains to count. Since $\{u,v\}$ is co-blocked at scale $b_{j-1}\text{,}$ $v$ lies in $B\text{.}$ If
$v\notin Y_{B}\text{,}$ the rank of $v$ is fixed, and $\operatorname{rk}(u)$ is uniform over at least $b_{j-1}/2$ free
slots, of which at most $b_{j}$ lie in the scale-$b_{j}$ block of $\operatorname{rk}(v)\text{,}$ so the probability is at
most $2b_{j}/b_{j-1}\text{.}$ If $v\in Y_{B}\text{,}$ condition also on $\operatorname{rk}(v)\text{.}$ Then $\operatorname{rk}(u)$ is uniform over the
remaining at least $b_{j-1}/2-1$ free slots, of which at most $b_{j}$ lie in the scale-$b_{j}$ block
of $\operatorname{rk}(v)\text{,}$ so the probability is at most $b_{j}/(b_{j-1}/2-1)\leq 4b_{j}/b_{j-1}\text{,}$ because
$b_{j-1}\geq 2b_{j}\geq 4\text{.}$ These bounds hold for every value of the further conditioning and every
such atom of $\mathcal{F}_{j}\text{,}$ which proves the lemma.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem9" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.9&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem9.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;We have $\mathbb{E}|X_{0}|\leq 2(L_{1}+1)\,b_{0}/n\text{,}$ and for every
$1\leq j\leq r-2\text{,}$&lt;/span&gt;&lt;/p&gt;
&lt;table id="S4.Ex3" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}|X_{j}|=O_{d,r}\Bigl(\frac{b_{j}}{b_{j-1}}\Bigl(1+\mathbb{E}[L_{j+1}]\Bigl(\frac{b_{j-1}}{n}\Bigr)^{1/D}\Bigr)\log n\Bigr).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS3.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;No outcome and no label is known before round $1\text{,}$ so its route and $L_{1}$ do not depend on $\pi\text{,}$
and by &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(a) the route visits at most $L_{1}+1$ cells. Each of them is co-blocked at scale
$b_{0}$ with probability at most $b_{0}/n$ and contributes at most two positions to $X_{0}\text{,}$ which
gives the bound on $\mathbb{E}|X_{0}|\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Now let $1\leq j\leq r-2\text{,}$ and fix an atom of $\mathcal{F}_{j}\text{.}$ The route of round $j+1$ is then
fixed, and so is the set $K_{j}$ of the cells that it visits, that are co-blocked at scale
$b_{j-1}\text{,}$ and that contain a position clean at level $j\text{.}$ Every position of $X_{j}$ is clean at
level $j$ and lies in a cell visited in round $j+1$ and co-blocked at scale $b_{j}\text{,}$ hence also at
scale $b_{j-1}\text{,}$ so it lies in a cell of $K_{j}$ that is co-blocked at scale $b_{j}\text{.}$ Applying
&lt;a href="#S4.Thmtheorem8" title="Lemma 4.8. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.8&lt;/span&gt;&lt;/a&gt; to each cell of $K_{j}\text{,}$ with $u$ a position clean at level $j\text{,}$ gives&lt;/p&gt;
&lt;table id="S4.Ex4" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}\bigl[|X_{j}|\bigm|\mathcal{F}_{j}\bigr]\leq 2\cdot|K_{j}|\cdot\frac{4b_{j}}{b_{j-1}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;We bound $|K_{j}|$ by &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; with $\alpha=a_{0}\text{,}$ which applies at scale $b_{j-1}$
because $a_{0}&amp;lt;1$ and $b_{j-1}\leq b_{0}\leq n^{a_{0}}\text{.}$ Its constant $c$ then depends only on $d$
and $r\text{.}$ The event $E_{b_{j-1}}$ depends only on $\mathcal{C}_{b_{j-1}}\text{,}$ which the labels at scale
$b_{j-1}$ determine, so it is determined by $\mathcal{F}_{j}\text{.}$ On $E_{b_{j-1}}$ we have
$|K_{j}|\leq c\bigl(1+L_{j+1}(b_{j-1}/n)^{1/D}\bigr)\log n\text{,}$ so taking expectations gives&lt;/p&gt;
&lt;table id="S4.Ex5" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}\bigl[|X_{j}|\,\mathbf{1}_{E_{b_{j-1}}}\bigr]\leq\frac{8c\,b_{j}}{b_{j-1}}\Bigl(1+\mathbb{E}[L_{j+1}]\Bigl(\frac{b_{j-1}}{n}\Bigr)^{1/D}\Bigr)\log n.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Off $E_{b_{j-1}}$ we use $|X_{j}|\leq n\text{.}$ The complement of $E_{b_{j-1}}$ has probability at most
$n^{-10}$ for large $n\text{,}$ so it contributes at most $n^{-9}\text{,}$ which is at most $b_{j}/b_{j-1}$ because
$b_{j}\geq 1$ and $b_{j-1}\leq n\text{.}$ Adding the two parts proves the bound on $\mathbb{E}|X_{j}|\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The first stage of the proof of &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt; uses &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt; together with the following observation.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem10" class="ltx_theorem ltx_theorem_observation"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Observation 4.10&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem10.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For $0\leq j\leq r-2\text{,}$ $|\mathcal{A}_{j}|\leq 3|\mathcal{A}_{j-1}|+|X_{j}|\text{.}$ Consequently
$\mathbb{E}|\mathcal{A}|\leq 3^{r-1}\bigl(|\mathcal{A}_{-1}|+\max_{0\leq j\leq r-2}\mathbb{E}|X_{j}|\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS3.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;At level $j\geq 1\text{,}$ a full heavy block holds more than $b_{j-1}/2$ positions of $\mathcal{A}_{j-1}\text{,}$
so at most $2|\mathcal{A}_{j-1}|/b_{j-1}$ full blocks are heavy, and together they hold at most
$2|\mathcal{A}_{j-1}|$ positions. The positions of a partial block lie in
$\mathcal{A}_{-1}\subseteq\mathcal{A}_{j-1}$ already. Hence $|\mathcal{A}_{j}^{-}|\leq 3|\mathcal{A}_{j-1}|\text{,}$ also for $j=0\text{,}$ and the first claim follows from
$\mathcal{A}_{j}=\mathcal{A}_{j}^{-}\cup X_{j}\text{.}$ Iterating it over the $r-1$ levels gives
$|\mathcal{A}|\leq 3^{r-1}|\mathcal{A}_{-1}|+\sum_{j=0}^{r-2}3^{r-2-j}|X_{j}|\text{,}$ and the second claim
follows by taking expectations, because $\sum_{j=0}^{r-2}3^{r-2-j}&amp;lt;3^{r-1}\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof of &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;.&lt;/h6&gt;
&lt;div id="S4.SS3.p12" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r\leq 2$ the theorem is &lt;a href="#S4.Thmtheorem4" title="Proposition 4.4. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt;, so let $r\geq 3\text{.}$ By Yao’s principle, and because
an algorithm of the original model is an algorithm of the augmented model that ignores the labels,
it suffices to show that the algorithm fixed in &lt;a href="#S4.SS3" title="4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; has
$\mathbb{E}[\mathrm{Move}]=\Omega_{d,r}(n^{\beta}/\log n)\text{.}$ The proof has the four stages of the
proof of &lt;a href="#S4.Thmtheorem4" title="Proposition 4.4. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt;. The new difficulty is that rounds $2,\dots,r-1$ are adaptive. We
first show that the bad set is small, then find many cells of $\mathcal{C}_{g}$ with clean positions
that are pairwise far apart, show that round $r$ visits all of them, and bound the movement of a
route that does so.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p13" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Recall that $L_{t}$ is the movement of the route of round $t\text{,}$ so that
$\mathrm{Move}=L_{1}+\dots+L_{r}\text{.}$ Let $T=\varepsilon n^{\beta}/\log n\text{,}$ where $\varepsilon&amp;gt;0$ depends only on
$d$ and $r$ and is chosen below. If $\mathbb{E}[L_{t}]\geq T/100$ for
some $t\leq r-1\text{,}$ then $\mathbb{E}[\mathrm{Move}]\geq T/100\text{,}$ and we call this Case 1. Otherwise
$\mathbb{E}[L_{t}]&amp;lt;T/100$ for every $t\leq r-1\text{.}$ This is Case 2, which we assume until the last
paragraph.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p14" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Exposure.&lt;/em&gt; We show that $\mathbb{E}|\mathcal{A}|\leq n/64$ for large $n\text{.}$ By
&lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt; and Case 2, $\mathbb{E}|X_{0}|\leq 2(T/100+1)b_{0}/n\text{.}$ Since
$b_{0}\leq n^{a_{0}}$ and, by &lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt;, $\beta+a_{0}-1=1\text{,}$ this gives
$\mathbb{E}|X_{0}|\leq\varepsilon n/50+2\text{.}$ For $1\leq j\leq r-2\text{,}$ let $C$ be the constant of &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt;,
which depends only on $d$ and $r\text{.}$ With Case 2 and $T\log n=\varepsilon n^{\beta}\text{,}$ that lemma gives
$\mathbb{E}|X_{j}|\leq C\log n+C\varepsilon\,(b_{j}/b_{j-1})\,n^{\beta}(b_{j-1}/n)^{1/D}\text{.}$
Since $b_{j}\leq n^{a_{j}}\text{,}$ $b_{j-1}&amp;gt;n^{a_{j-1}}/2\text{,}$ and $1-1/D&amp;gt;0\text{,}$&lt;/p&gt;
&lt;table id="S4.Ex6" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\frac{b_{j}}{b_{j-1}}\,n^{\beta}\Bigl(\frac{b_{j-1}}{n}\Bigr)^{1/D}=n^{\beta-1/D}\,b_{j}\,b_{j-1}^{-(1-1/D)}\leq 2\,n^{\beta+a_{j}-a_{j-1}+(a_{j-1}-1)/D}=2n,$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;where the last step is &lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt;. Hence $\mathbb{E}|X_{j}|\leq C\log n+2C\varepsilon n\text{.}$ By
&lt;a href="#S4.Thmtheorem10" title="Observation 4.10. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.10&lt;/span&gt;&lt;/a&gt; and $|\mathcal{A}_{-1}|&amp;lt;b_{0}\leq n^{a_{0}}\text{,}$
$\mathbb{E}|\mathcal{A}|\leq 3^{r-1}\bigl(n^{a_{0}}+(2C+1/50)\,\varepsilon n+C\log n+2\bigr)\text{.}$ Choose $\varepsilon$ with
$3^{r-1}(2C+1/50)\,\varepsilon\leq 1/128\text{.}$ Then $\mathbb{E}|\mathcal{A}|\leq n/64$ for large $n\text{,}$ since $a_{0}&amp;lt;1\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p15" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Survivors.&lt;/em&gt; Every position lies in fewer than $g$ cells of $\mathcal{C}_{g}\text{,}$ so at most
$g|\mathcal{A}|$ cells of $\mathcal{C}_{g}$ have a bad position. Since
$\mathbb{E}[g|\mathcal{A}|]\leq ng/64\leq|\mathcal{C}_{g}|/8\text{,}$ Markov’s inequality applied to the
number of these cells shows that, with probability at least $1/2\text{,}$ at most $|\mathcal{C}_{g}|/4$
cells of $\mathcal{C}_{g}$ have a bad position. By &lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt; at scale $g\text{,}$ with probability
at least $7/8$ at least half of the cells $w\in\mathcal{C}_{g}$ satisfy
$\operatorname{dist}(w,\mathcal{C}_{g}\setminus\{w\})&amp;gt;\rho\text{,}$ where $\rho=\Theta_{d}\bigl((n/g)^{1/D}\bigr)\text{.}$ On the
intersection of the two events, which has probability at least $1-\tfrac{1}{2}-\tfrac{1}{8}=\tfrac{3}{8}\text{,}$ let
$\mathcal{H}$ be the set of cells of $\mathcal{C}_{g}$ that have two clean positions and satisfy this
condition. Then $|\mathcal{H}|\geq|\mathcal{C}_{g}|/4\geq ng/32\text{,}$ and any two cells of $\mathcal{H}$
are more than $\rho$ apart.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p16" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Forcing.&lt;/em&gt; Let $\{u,v\}\in\mathcal{H}\text{.}$ Both $u$ and $v$ are clean, so by &lt;a href="#S4.Thmtheorem7" title="Observation 4.7. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.7&lt;/span&gt;&lt;/a&gt;(b)
neither has been compared, in rounds $1,\dots,r-1\text{,}$ with another position of its scale-$g$ block.
By &lt;a href="#S4.Thmtheorem3" title="Lemma 4.3. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt;, applied to $P_{r-1}\text{,}$ the positions $u$ and $v$ are incomparable in $P_{r-1}\text{.}$
The revealed scales $b_{0},\dots,b_{r-3}$ are coarser than $g\text{,}$ and $u$ and $v$ are co-blocked at
scale $g\text{,}$ so they have the same label at every revealed scale. By &lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt;, the route of
round $r$ visits $\{u,v\}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p17" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Cost of the Final Round.&lt;/em&gt; By the previous stage, the route of round $r$ visits every cell of
$\mathcal{H}\text{.}$ Since $|\mathcal{H}|\geq 2$ and the cells of $\mathcal{H}$ are pairwise more than
$\rho$ apart, &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b) and &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt; give&lt;/p&gt;
&lt;table id="S4.Ex7" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$L_{r}\ \geq\ \tfrac{1}{2}|\mathcal{H}|\rho\ =\ \Omega_{d}\bigl(ng\,(n/g)^{1/D}\bigr)\ =\ \Omega_{d}\bigl(n^{1+a_{r-2}+(1-a_{r-2})/D}\bigr)\ =\ \Omega_{d}(n^{\beta}),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;where the second step uses $g&amp;gt;n^{a_{r-2}}/2$ and the last is &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt;. So
$L_{r}=\Omega_{d}(n^{\beta})$ on an event of probability at least $3/8\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS3.p18" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;In Case 2 this gives $\mathbb{E}[L_{r}]=\Omega_{d}(n^{\beta})\text{,}$ and in Case 1 we have
$\mathbb{E}[\mathrm{Move}]\geq T/100=\varepsilon n^{\beta}/(100\log n)\text{.}$ In both cases
$\mathbb{E}[\mathrm{Move}]=\Omega_{d,r}(n^{\beta}/\log n)\text{,}$ which proves &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem11" class="ltx_theorem ltx_theorem_remark"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Remark 4.11&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_italic"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem11.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt; holds with free computation and memory: comparisons are the algorithm’s only access to
the order. After Yao’s principle fixes
a deterministic algorithm, the proof of &lt;a href="#S4.Thmtheorem2" title="Lemma 4.2. ‣ 4.1 The Augmented Model and Forced Comparisons ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.2&lt;/span&gt;&lt;/a&gt; gives, for every pair of positions with
the same revealed labels that the first $r-1$ rounds leave incomparable, two inputs that agree on all
revealed labels and on all outcomes of these rounds but order the pair oppositely. Hence no computation on these outcomes orders the pair, and
the comparisons of the final round, with their movement, are required of every correct algorithm.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S4.SS4" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="exact-order-on-the-line"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;4.4 &lt;/span&gt;Exact Order on the Line&lt;/h3&gt;
&lt;div id="S4.SS4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The logarithmic factor in &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt; comes from &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; alone, and on the line we remove it. In this
subsection $d=1\text{,}$ and we write $\beta_{r}=\beta_{r}^{(1)}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem12" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 4.12&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem12.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For $d=1$ and every fixed $r\geq 1\text{,}$ $M_{r}^{(1)}(n)=\Omega_{r}\bigl(n^{\beta_{r}}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Together with &lt;a href="#S5.Thmtheorem11" title="Theorem 5.11. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.11&lt;/span&gt;&lt;/a&gt;, it gives $M_{r}^{(1)}(n)=\Theta_{r}\bigl(n^{\beta_{r}}\bigr)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The logarithm in &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; comes from a product box that holds about $\log n$ cells, and such boxes
are rare. So we group nearby cells into clusters. Small clusters are far apart for their size, so a route must
move to visit their cells, and large clusters almost never occur. The bound that replaces &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; has an
additive term $\Xi_{b}\text{,}$ which counts the cells of large clusters and which we define first.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Fix a dyadic scale $b\leq\sqrt{n}\text{,}$ and identify each cell with its fold, a point of
$\{(x,y):x&amp;lt;y\}\text{.}$ By &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b), the distance $\operatorname{dist}$ between two cells is the $\ell_{1}$ distance between their folds. Let $H=\lceil\sqrt{n/b}\rceil\text{,}$
let $\varepsilon_{\star}&amp;gt;0$ and $n_{0}$ be absolute constants chosen in the proof of &lt;a href="#S4.Thmtheorem14" title="Lemma 4.14. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.14&lt;/span&gt;&lt;/a&gt;,
and put&lt;/p&gt;
&lt;table id="S4.Ex8" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\rho_{t}=\varepsilon_{\star}H\,4^{t}\quad(0\leq t\leq t_{\star}),\qquad t_{\star}=\lceil\log\log n\rceil,\qquad\kappa=2^{t_{\star}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;cluster&lt;/em&gt; is a set of cells of $\mathcal{C}_{b}\text{.}$ Clusters are formed in phases
$t=0,1,\dots,t_{\star}\text{,}$ and the clusters of phase $0$ are the single cells of $\mathcal{C}_{b}\text{.}$
Two clusters of phase $t$ are &lt;em class="ltx_emph ltx_font_italic"&gt;close&lt;/em&gt; if some cell of one lies within distance $\rho_{t}$ of
some cell of the other. Phase $t$ merges each connected component of the closeness relation that
contains two or more clusters into one cluster of phase $t+1\text{.}$ A cluster of phase $t$ that is close
to no other cluster is &lt;em class="ltx_emph ltx_font_italic"&gt;isolated&lt;/em&gt;. An isolated cluster &lt;em class="ltx_emph ltx_font_italic"&gt;retires&lt;/em&gt; if it has at most
$2^{t+1}$ cells. Otherwise it is also a cluster of phase $t+1\text{.}$ The &lt;em class="ltx_emph ltx_font_italic"&gt;residual clusters&lt;/em&gt; are the
clusters of phase $t_{\star}+1\text{.}$ For $n\geq n_{0}\text{,}$ let $\Xi_{b}$ be the total number of cells in residual
clusters, and for $n&amp;lt;n_{0}\text{,}$ let $\Xi_{b}=0\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By induction on $t\text{,}$ every cluster of phase $t$ has at least $2^{t}$ cells: a merged component
consists of at least two clusters with at least $2^{t}$ cells each, and an isolated cluster that
does not retire has more than $2^{t+1}$ cells. In particular every residual cluster has at least
$2\kappa$ cells, and every cell of $\mathcal{C}_{b}$ ends in exactly one retired or residual cluster.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;From one phase to the next, the distance $\rho_{t}$ grows by a factor of $4\text{,}$ while the largest size
of a retiring cluster only doubles. So the clusters that retire in a phase are far apart for their
size.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem13" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.13&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem13.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $d=1\text{.}$ There are absolute constants $C$ and $C^{\prime}$ such that, for every input and every dyadic
scale $b\leq\sqrt{n}\text{,}$ every route of movement $L$ visits at most $C\,L\sqrt{b/n}+\Xi_{b}+C^{\prime}\log n$
cells of $\mathcal{C}_{b}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt; is the analog of &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt; on the line, and the next lemma shows
that its additive term $\Xi_{b}$ is at most $1$ in expectation.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem14" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.14&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem14.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $d=1\text{.}$ For a suitable choice of the absolute constants $\varepsilon_{\star}&amp;gt;0$ and $n_{0}\text{,}$
$\mathbb{E}[\Xi_{b}]\leq 1$ over the uniform input, for every dyadic scale $b\leq\sqrt{n}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;With these two lemmas, &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt; has the following analog on the line.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.Thmtheorem15" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 4.15&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S4.Thmtheorem15.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;We have $\mathbb{E}|X_{0}|\leq 2(L_{1}+1)\,b_{0}/n\text{,}$ and for every
$1\leq j\leq r-2\text{,}$&lt;/span&gt;&lt;/p&gt;
&lt;table id="S4.Ex9" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}|X_{j}|\leq\frac{8b_{j}}{b_{j-1}}\Bigl(C\,\mathbb{E}[L_{j+1}]\Bigl(\frac{b_{j-1}}{n}\Bigr)^{1/2}+C^{\prime}\log n+1\Bigr),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;where $C$ and $C^{\prime}$ are the constants of &lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S4.SS4.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The bound on $\mathbb{E}|X_{0}|$ is that of &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt;. Let $1\leq j\leq r-2\text{.}$ At $q=1/2$ we
have $\delta=1/\bigl(2(1-2^{-r})\bigr)&amp;gt;1/2\text{,}$ so $a_{0}=1-\delta&amp;lt;1/2$ and
$b_{j-1}\leq b_{0}&amp;lt;\sqrt{n}\text{,}$ so &lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt; applies at scale $b_{j-1}\text{.}$ We follow
the proof of &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt; with &lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt; in place of &lt;a href="#S3.Thmtheorem4" title="Lemma 3.4. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.4&lt;/span&gt;&lt;/a&gt;. As
there, $\mathbb{E}\bigl[|X_{j}|\bigm|\mathcal{F}_{j}\bigr]\leq(8b_{j}/b_{j-1})|K_{j}|\text{.}$ By
&lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt;, $|K_{j}|\leq C\,L_{j+1}(b_{j-1}/n)^{1/2}+\Xi_{b_{j-1}}+C^{\prime}\log n$ on every
input. Taking expectations and using $\mathbb{E}[\Xi_{b_{j-1}}]\leq 1$ (&lt;a href="#S4.Thmtheorem14" title="Lemma 4.14. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.14&lt;/span&gt;&lt;/a&gt;) gives the
bound.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof of &lt;a href="#S4.Thmtheorem12" title="Theorem 4.12. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.12&lt;/span&gt;&lt;/a&gt;.&lt;/h6&gt;
&lt;div id="S4.SS4.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r\leq 2$ the theorem is &lt;a href="#S4.Thmtheorem4" title="Proposition 4.4. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt;, so let $r\geq 3\text{.}$ As in the proof of
&lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;, it suffices to show that the algorithm fixed in &lt;a href="#S4.SS3" title="4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.3&lt;/span&gt;&lt;/a&gt; has
$\mathbb{E}[\mathrm{Move}]=\Omega_{r}(n^{\beta_{r}})\text{.}$ We follow the proof of &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt; with three
changes.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;First, $T=\varepsilon_{r}n^{\beta_{r}}\text{,}$ where $\varepsilon_{r}&amp;gt;0$ depends only on $r$ and is chosen below.
Cases 1 and 2 are defined with this $T\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p12" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Second, the first stage uses &lt;a href="#S4.Thmtheorem15" title="Lemma 4.15. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.15&lt;/span&gt;&lt;/a&gt; in place of &lt;a href="#S4.Thmtheorem9" title="Lemma 4.9. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.9&lt;/span&gt;&lt;/a&gt;. In Case 2 it
gives $\mathbb{E}|X_{0}|\leq 2(T/100+1)b_{0}/n\leq\varepsilon_{r}n/50+2\text{,}$ as in the proof of &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;,
and, for $1\leq j\leq r-2\text{,}$&lt;/p&gt;
&lt;table id="S4.Ex10" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}|X_{j}|\leq\frac{8b_{j}}{b_{j-1}}\Bigl(\frac{C\,T}{100}\Bigl(\frac{b_{j-1}}{n}\Bigr)^{1/2}+C^{\prime}\log n+1\Bigr)\leq\frac{C}{4}\,\varepsilon_{r}n+8C^{\prime}\log n+8,$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;because $(b_{j}/b_{j-1})\,n^{\beta_{r}}(b_{j-1}/n)^{1/2}\leq 2n$ by the computation in the proof of
&lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt; with $D=2\text{.}$ By &lt;a href="#S4.Thmtheorem10" title="Observation 4.10. ‣ 4.3 Adaptive Rounds ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.10&lt;/span&gt;&lt;/a&gt;,
$\mathbb{E}|\mathcal{A}|\leq 3^{r-1}\bigl(b_{0}+(C/4+1/50)\,\varepsilon_{r}n+8C^{\prime}\log n+10\bigr)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p13" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Third, choose $\varepsilon_{r}$ with $3^{r-1}(C/4+1/50)\,\varepsilon_{r}\leq 1/128\text{.}$ Then
$\mathbb{E}|\mathcal{A}|\leq n/64$ for large $n\text{.}$ The remaining stages use only this bound, and they
give $\mathbb{E}[L_{r}]=\Omega_{r}(n^{\beta_{r}})$ in Case 2. In Case 1,
$\mathbb{E}[\mathrm{Move}]\geq\varepsilon_{r}n^{\beta_{r}}/100\text{.}$ Hence
$\mathbb{E}[\mathrm{Move}]=\Omega_{r}(n^{\beta_{r}})\text{,}$ which proves &lt;a href="#S4.Thmtheorem12" title="Theorem 4.12. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.12&lt;/span&gt;&lt;/a&gt;.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof of &lt;a href="#S4.Thmtheorem13" title="Lemma 4.13. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.13&lt;/span&gt;&lt;/a&gt;.&lt;/h6&gt;
&lt;div id="S4.SS4.p14" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;If $n&amp;lt;n_{0}\text{,}$ then $\Xi_{b}=0\text{,}$ and a route visits at most $|\mathcal{C}_{b}|\leq nb/2\leq n^{3/2}\leq n_{0}^{3/2}$ cells of $\mathcal{C}_{b}\text{.}$ Let $n\geq n_{0}\text{.}$ Deleting the configurations $(x,x)$ from
a route of movement $L$ and folding the others gives a sequence of folds of $\ell_{1}$-length at most
$L$ (&lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b)), and the cells of $\mathcal{C}_{b}$ that the route visits are those whose folds occur in this sequence. The
residual clusters contain $\Xi_{b}$ cells in all, and every other cell of $\mathcal{C}_{b}$ lies in
a retired cluster. Fix a phase $t\text{.}$ Two clusters that retire in phase $t$ are isolated in phase
$t\text{,}$ so every cell of one is more than $\rho_{t}$ from every cell of the other. Order the clusters
retired in phase $t$ that have a cell in the sequence by the first occurrence of one of their cells.
Consecutive first occurrences are more than $\rho_{t}$ apart, so at most $1+L/\rho_{t}$ of these
clusters have a cell in the sequence, and each of them has at most $2^{t+1}$ cells. Summing over the
phases, the route visits at most&lt;/p&gt;
&lt;table id="S4.Ex11" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\sum_{t=0}^{t_{\star}}2^{t+1}\Bigl(1+\frac{L}{\rho_{t}}\Bigr)\leq 2^{t_{\star}+2}+\frac{L}{\rho_{0}}\sum_{t\geq 0}\frac{2^{t+1}}{4^{t}}=2^{t_{\star}+2}+\frac{4L}{\rho_{0}}$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;cells of retired clusters. Since $2^{t_{\star}}&amp;lt;2\log n$ and $\rho_{0}=\varepsilon_{\star}H\geq\varepsilon_{\star}\sqrt{n/b}\text{,}$ this is at most $8\log n+(4/\varepsilon_{\star})L\sqrt{b/n}\text{.}$ Adding the $\Xi_{b}$
cells of residual clusters gives the bound for $n\geq n_{0}\text{.}$ Hence the lemma holds with
$C=4/\varepsilon_{\star}$ and $C^{\prime}=\max\{8,n_{0}^{3/2}\}\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof of &lt;a href="#S4.Thmtheorem14" title="Lemma 4.14. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.14&lt;/span&gt;&lt;/a&gt;.&lt;/h6&gt;
&lt;div id="S4.SS4.p15" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;If $n&amp;lt;n_{0}\text{,}$ then $\Xi_{b}=0\text{,}$ so let $n\geq n_{0}\text{,}$ where $n_{0}$ is chosen at the end of the
proof. We charge $\Xi_{b}$ to sets of between $\kappa$ and $2\kappa$ cells of $\mathcal{C}_{b}$ that
carry a tree of short edges, bound the probability that a fixed set of cells lies in
$\mathcal{C}_{b}\text{,}$ and bound the expected number of such sets.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p16" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For a finite set $W$ of cells, its &lt;em class="ltx_emph ltx_font_italic"&gt;position graph&lt;/em&gt; has the positions occurring in $W$ as
vertices and the cells of $W$ as edges. Let $c(W)$ be its number of vertices minus its number of
components, which is the number of rank constraints that $W\subseteq\mathcal{C}_{b}$ imposes, and let $h(W)=|W|-c(W)$ be its cyclomatic number. We say that $W$ is &lt;em class="ltx_emph ltx_font_italic"&gt;eligible&lt;/em&gt; if
some tree with vertex set $W$ carries a phase $\ell(e)\in\{0,\dots,t_{\star}\}$ on each of its
edges $e=\{w,w^{\prime}\}$ such that $\lVert w-w^{\prime}\rVert_{1}\leq\rho_{\ell(e)}$ for every edge and
$\sum_{e}\ell(e)\leq C_{0}|W|\text{,}$ where $C_{0}=16\text{.}$ A &lt;em class="ltx_emph ltx_font_italic"&gt;witness&lt;/em&gt; is an eligible subset of
$\mathcal{C}_{b}$ with between $\kappa$ and $2\kappa$ cells. Let $N_{s}$ be the number of eligible subsets of
$\mathcal{C}_{b}$ with $s$ cells.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p17" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Charging.&lt;/em&gt; Let $F$ be a residual cluster. Its merge history gives a tree with vertex set $F\text{:}$
when phase $t$ merges a component of close clusters, choose a spanning tree of the component and,
for each of its edges, a pair of cells, one in each of the two clusters, at distance at most
$\rho_{t}\text{,}$ and these pairs become tree edges with phase $t\text{.}$ A merge in phase $t$ adds fewer edges than
it merges clusters, and every cluster of phase $t$ has at least $2^{t}$ cells, so at most
$2^{-t}|F|$ tree edges have phase $t\text{,}$ and the phases sum to at most
$\sum_{t\geq 0}t\,2^{-t}|F|=2|F|\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p18" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We cut this tree into connected pieces. Root the tree and collect edges from
the leaves upward: at each vertex, add the edge to each child together with the edges left over at
that child, and emit the collected edges as one piece as soon as they number at least $\kappa-1\text{.}$
Every collected set is connected, and the edges left over at a vertex number fewer than $\kappa-1\text{,}$
so each piece has between $\kappa-1$ and $2\kappa-3$ edges and hence between $\kappa$ and $2\kappa$
cells. The pieces have disjoint edge sets, and fewer than $\kappa-1$ edges remain at the root. The
tree has $|F|-1$ edges and $|F|\geq 2\kappa\text{,}$ so there are more than
$(|F|-\kappa)/(2\kappa)\geq|F|/(4\kappa)$ pieces.
Their phase sums total at most $2|F|\text{,}$ so fewer than $|F|/(8\kappa)$ pieces have phase sum above
$16\kappa\text{.}$ Each of the remaining, more than $|F|/(8\kappa)\text{,}$ pieces has a cell set $W$ with
$|W|\geq\kappa$ and phase sum at most $16\kappa\leq C_{0}|W|\text{,}$ so $W$ is a witness. Distinct pieces
have distinct cell sets, since a connected subtree with cell set $W$ contains every tree edge inside
$W\text{,}$ and distinct residual clusters are disjoint. Hence each residual cluster $F$ yields more than
$|F|/(8\kappa)$ witnesses, all distinct, and&lt;/p&gt;
&lt;table id="S4.Ex12" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\Xi_{b}\ \leq\ 8\kappa\sum_{s=\kappa}^{2\kappa}N_{s}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p19" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;Witness Probability.&lt;/em&gt; Fix a set $W$ of $s\leq 2\kappa$ cells. Reveal the ranks of its positions
one component of the position graph at a time, each component in an order in which every vertex $x$
after the first has a neighbor $x^{\prime}$ earlier in the order. If $W\subseteq\mathcal{C}_{b}\text{,}$ then every
such $x$ receives a rank in the scale-$b$ block of $x^{\prime}\text{.}$ Given the earlier ranks, this block contains
at most $b$ of the at least $n-2s\geq n/4$ unrevealed ranks, so this happens with probability at most $4b/n\text{.}$ There are $c(W)$ such vertices, so
$\Pr[W\subseteq\mathcal{C}_{b}]\leq(4b/n)^{c(W)}=(4b/n)^{s-h(W)}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p20" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;First Moment.&lt;/em&gt; Let $N_{s}^{(h)}$ be the number of eligible subsets of $\mathcal{C}_{b}$ with
$s$ cells and cyclomatic number $h\text{.}$ We bound $\mathbb{E}[N_{s}^{(h)}]$ for $h\leq\eta s/t_{\star}$
here, where $\eta$ is chosen below, and treat larger $h$ in the next paragraph. Given an eligible set
$W$ with $s$ cells, fix a tree as in the definition of eligibility, root it, order the children of
each vertex, and add the cells of $W$ one at a time in the preorder of this ordered rooted tree, so
that every cell comes after its parent. Adding a cell increases $c$ of the set added so far by one,
unless its two positions already lie in one component of the position graph of that set. We then say
that the cell &lt;em class="ltx_emph ltx_font_italic"&gt;closes a cycle&lt;/em&gt;. Since $c(W)=s-h\text{,}$ exactly $h$ cells close a cycle. Hence $W$ is encoded by the ordered rooted tree,
at most $4^{s}$ choices; the phases of its edges, which sum to at most $C_{0}s\text{,}$ at most
$2^{(C_{0}+1)s}$ choices; the set of cells that close a cycle, at most $2^{s}$ choices; and the
placement of the cells in preorder. A cell that closes a cycle is one of at most $(2s)^{2}$ pairs of
positions already present. The root is one of at most $n^{2}/2$ cells. Every other cell lies within
distance $\rho_{\ell}$ of its parent, where $\ell$ is the phase of the tree edge to its parent, so it
has at most $(2\rho_{\ell}+1)^{2}\leq 9\rho_{\ell}^{2}$ placements, since
$\rho_{\ell}\geq\varepsilon_{\star}H\geq\varepsilon_{\star}n^{1/4}\geq 1$ for $n\geq n_{0}\text{.}$ The bound
$\Pr[W\subseteq\mathcal{C}_{b}]\leq(4b/n)^{s-h}$ gives a factor $4b/n$ for each of the $s-h$ cells
that close no cycle. Since $H^{2}\leq 4n/b\text{,}$ we have
$9\rho_{\ell}^{2}\cdot 4b/n\leq 144\,\varepsilon_{\star}^{2}16^{\ell}\text{,}$ and the phases give
$\prod_{e}16^{\ell(e)}\leq 16^{C_{0}s}\text{.}$ Collecting the factors,&lt;/p&gt;
&lt;table id="S4.Ex13" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}\bigl[N_{s}^{(h)}\bigr]\leq 2nb\;\varepsilon_{\star}^{-2}\,\bigl(C_{1}\varepsilon_{\star}^{2}\bigr)^{s}\,\bigl(4s^{2}/\varepsilon_{\star}^{2}\bigr)^{h}$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;for an absolute constant $C_{1}\text{.}$ Let $\varepsilon_{\star}^{2}=1/(16C_{1})$ and
$\eta=\bigl(6+2\log(1/\varepsilon_{\star})\bigr)^{-1}\text{.}$ If $h\leq\eta s/t_{\star}\text{,}$ then
$(4s^{2}/\varepsilon_{\star}^{2})^{h}\leq 2^{s}\text{.}$ Indeed, $s\leq 2\kappa&amp;lt;4\log n$ gives
$\log(4s^{2})\leq 6+2\log\log n\leq 6t_{\star}$ for $n\geq n_{0}\text{,}$ so
$h\log(4s^{2}/\varepsilon_{\star}^{2})\leq(\eta s/t_{\star})\bigl(6t_{\star}+2\log(1/\varepsilon_{\star})\bigr)\leq s\text{.}$
Hence $\mathbb{E}[N_{s}^{(h)}]\leq 2nb\,\varepsilon_{\star}^{-2}8^{-s}\text{,}$ and summing over the at most $s$
values of $h$ gives $\sum_{h\leq\eta s/t_{\star}}\mathbb{E}[N_{s}^{(h)}]\leq nb\,4^{-s}$ for
$s\geq\kappa$ and $n\geq n_{0}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p21" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;em class="ltx_emph ltx_font_italic"&gt;High Cyclomatic Number.&lt;/em&gt; Let $N_{s}^{\mathrm{high}}$ be the number of eligible subsets $W$ of
$\mathcal{C}_{b}$ with $s$ cells and $h(W)&amp;gt;\eta s/t_{\star}\text{.}$ For these we use the geometry of the
set instead. Tree edges join cells at distance at most $\rho_{t_{\star}}=\varepsilon_{\star}H\kappa^{2}\text{,}$ so
every cell of $W$ lies within distance $(s-1)\rho_{t_{\star}}$ of the root, and all positions of $W$
lie in the two intervals of radius $R=s\rho_{t_{\star}}$ around the two positions of the root. These
intervals contain $V\leq 4R+2=O\bigl(\sqrt{n/b}\,\log^{3}n\bigr)$ positions. Let $N_{s,\omega,\tau}$ be
the number of these sets whose position graph has $\omega$ vertices and $\tau$ components. Such a set
is encoded by its root, at most $n^{2}$ choices, its other $\omega-2$ positions, at most
$V^{\omega-2}$ choices, and its $s$ cells as pairs of its positions, at most $(2s)^{2s}$ choices.
With $\gamma=4b/n$ and $z=\omega-2\tau\text{,}$ the bound on $\Pr[W\subseteq\mathcal{C}_{b}]$ gives&lt;/p&gt;
&lt;table id="S4.Ex14" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}[N_{s,\omega,\tau}]\leq n^{2}(2s)^{2s}V^{\omega-2}\gamma^{\omega-\tau}=n^{2}(2s)^{2s}V^{-2}\,\bigl(V^{2}\gamma\bigr)^{\tau}\,\bigl(V\gamma\bigr)^{z}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Here $V^{2}\gamma=O(\log^{6}n)\text{,}$ and $V\gamma\leq n^{-1/5}$ for $n\geq n_{0}$ because $b\leq\sqrt{n}\text{.}$
The position graph is simple, so a component with two vertices contributes nothing to $z$ or to $h\text{.}$
A component with $\omega^{\prime}\geq 3$ vertices contributes $\omega^{\prime}-2\geq\omega^{\prime}/3$ to $z\text{,}$ so
$z\geq\omega_{3}/3\text{,}$ where $\omega_{3}$ is the number of vertices in components with at least three vertices. Also
$h\leq\omega_{3}^{2}/2\text{,}$ because $h$ is at most the number of edges in these components. Hence
$z\geq\sqrt{2h}/3\text{,}$ and $h&amp;gt;\eta s/t_{\star}\geq\eta\kappa/t_{\star}$ gives
$z=\Omega\bigl(\sqrt{\log n/\log\log n}\bigr)\text{.}$ So $(V\gamma)^{z}=n^{-\Omega(\sqrt{\log n/\log\log n})}\text{,}$
whereas $n^{2}(2s)^{2s}(V^{2}\gamma)^{\tau}=\exp\bigl(O(\log n\,\log\log n)\bigr)$ because
$s,\tau\leq 4\log n\text{.}$ For $n\geq n_{0}$ the product is at most $n^{-22}\text{,}$ and summing over the at most
$(2s)^{2}\leq n^{2}$ pairs $(\omega,\tau)$ gives $\mathbb{E}[N_{s}^{\mathrm{high}}]\leq n^{-20}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S4.SS4.p22" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $\kappa\leq s\leq 2\kappa$ the two regimes give $\mathbb{E}[N_{s}]\leq nb\,4^{-s}+n^{-20}\text{.}$ Since
$4^{-\kappa}\leq n^{-2}$ and $b\leq\sqrt{n}\text{,}$&lt;/p&gt;
&lt;table id="S4.Ex15" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}[\Xi_{b}]\ \leq\ 8\kappa\sum_{s=\kappa}^{2\kappa}\mathbb{E}[N_{s}]\ \leq\ 8\kappa(\kappa+1)\bigl(n^{-1/2}+n^{-20}\bigr)\ \leq\ 1,$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;where $n_{0}$ is chosen so large that this inequality and the estimates above hold for all
$n\geq n_{0}\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S5" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="routing-and-the-sampling-algorithm"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;5 &lt;/span&gt;Routing and the Sampling Algorithm&lt;/h2&gt;
&lt;div id="S5.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The upper bounds of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt; are attained by algorithms in which every route visits configurations
known when the round starts, and &lt;a href="#S5.SS1" title="5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt; bounds the movement this takes. A merge sort
then gives the fully adaptive bound (&lt;a href="#S5.SS2" title="5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.2&lt;/span&gt;&lt;/a&gt;). For a fixed number $r\geq 2$ of rounds, the sampling
algorithm refines the rank order round by round (&lt;a href="#S5.SS3" title="5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.3&lt;/span&gt;&lt;/a&gt;). On the line, each refinement round
selects intervals of one length (&lt;a href="#S5.SS4" title="5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.4&lt;/span&gt;&lt;/a&gt;), and &lt;a href="#S6" title="6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6&lt;/span&gt;&lt;/a&gt; treats $d\geq 2\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S5.SS1" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="routing"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;5.1 &lt;/span&gt;Routing&lt;/h3&gt;
&lt;div id="S5.SS1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next lemma bounds the movement needed to visit a known set of configurations.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem1" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;ol id="S5.I1" class="ltx_enumerate"&gt;
&lt;li id="S5.I1.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(i)&lt;/span&gt;
&lt;div id="S5.I1.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let &lt;/span&gt;$\mathcal{Q}$&lt;span class="ltx_text ltx_font_italic"&gt; be a set of &lt;/span&gt;$Q\geq 1$&lt;span class="ltx_text ltx_font_italic"&gt; points of a box in &lt;/span&gt;$\mathbb{Z}^{D^{\prime}}$&lt;span class="ltx_text ltx_font_italic"&gt; whose sides are at
most &lt;/span&gt;$m^{\prime}$&lt;span class="ltx_text ltx_font_italic"&gt;. From any given point of the box, a lattice path inside the box, that is, a
sequence of points with consecutive points at &lt;/span&gt;$\ell_{1}$&lt;span class="ltx_text ltx_font_italic"&gt; distance &lt;/span&gt;$1$&lt;span class="ltx_text ltx_font_italic"&gt;, visits all points of
&lt;/span&gt;$\mathcal{Q}$&lt;span class="ltx_text ltx_font_italic"&gt; and has length &lt;/span&gt;$O_{D^{\prime}}\bigl(m^{\prime}Q^{1-1/D^{\prime}}+m^{\prime}\bigr)$&lt;span class="ltx_text ltx_font_italic"&gt;. The path can be computed
from &lt;/span&gt;$\mathcal{Q}$&lt;span class="ltx_text ltx_font_italic"&gt; in polynomial time.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S5.I1.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(ii)&lt;/span&gt;
&lt;div id="S5.I1.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;In the comparison grid, any &lt;/span&gt;$Q\geq 1$&lt;span class="ltx_text ltx_font_italic"&gt; configurations are visited by a route that starts at
the current configuration and has movement &lt;/span&gt;$O_{d}\bigl(n^{1/d}Q^{1-1/D}+n^{1/d}\bigr)$&lt;span class="ltx_text ltx_font_italic"&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For (i), we cut the box into small cubes and traverse them in &lt;em class="ltx_emph ltx_font_italic"&gt;serpentine order&lt;/em&gt;, visiting the
points of $\mathcal{Q}$ in each cube on the way. This order is lexicographic, except that the direction along
each axis is reversed at every step along an earlier axis. Let $\Delta=\lceil m^{\prime}Q^{-1/D^{\prime}}\rceil$ and cut the box into
cubes of side $\Delta\text{.}$ There are at most $(m^{\prime}/\Delta+1)^{D^{\prime}}\leq(Q^{1/D^{\prime}}+1)^{D^{\prime}}\leq 2^{D^{\prime}}Q$ of
them. Consecutive cubes of the serpentine order are adjacent, so the path moves $O_{D^{\prime}}(\Delta)$
from one cube to the next. Inside a cube it moves $O_{D^{\prime}}(\Delta)$ from one point of $\mathcal{Q}$
to the next. Together with the $O_{D^{\prime}}(m^{\prime})$ steps from the given point to the first cube, this gives
length $O_{D^{\prime}}(\Delta Q+m^{\prime})\text{.}$ Since the box has at most $m^{\prime D^{\prime}}$ points, $Q^{1/D^{\prime}}\leq m^{\prime}\text{,}$ so
$\Delta Q\leq m^{\prime}Q^{1-1/D^{\prime}}+Q\leq 2m^{\prime}Q^{1-1/D^{\prime}}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Part (ii) is (i) for the box $[m]^{D}\text{,}$ with $D^{\prime}=D$ and $m^{\prime}=m=n^{1/d}\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS1.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Merging two sorted lists by walking them in rank order can move the heads far for every comparison. The next
lemma instead advances many binary searches in one round, so that one route serves them all.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem2" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.2&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $R\subseteq[m]^{d}$ be a box of aspect ratio $O_{d}(1)$ with $|R|\geq 2\text{,}$ and let its positions be
partitioned into two lists, each sorted by rank. A deterministic algorithm finds the rank order of
$R$ in $O\bigl((\log|R|)^{2}\bigr)$ rounds with total movement $O_{d}\bigl(|R|^{1+1/(2d)}\bigr)\text{.}$
Its routes stay in $R\times R\text{,}$ and the bound holds whichever configuration of $R\times R$ each round
starts from.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS1.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The algorithm splits the two lists at the median of their union by binary search, recurses on the
two parts, and advances all binary searches of one depth together. Write $N=|R|\text{.}$ A subproblem consists of a sublist of consecutive entries of each
list, $s$ entries in all, and asks for the $t=\lceil s/2\rceil$ lowest keys of their union. For
$1\leq i\leq t\text{,}$ the $i$-th entry of the first sublist, if it exists, has $i-1$ entries of its sublist below it, so it
is among these $t$ keys exactly when at most $t-i$ entries of the second sublist lie below it.
Equivalently, it lies below the $(t-i+1)$-th entry of the second sublist, or that entry does not
exist. This condition is monotone in $i\text{,}$ so a binary search on $i$ finds the $t$ lowest keys with
$O(\log(s+2))$ comparisons of one entry of each sublist. The $t$ lowest keys form a prefix of each sublist, so the two parts are
again subproblems, of sizes $\lceil s/2\rceil$ and $\lfloor s/2\rfloor\text{.}$ The recursion stops at subproblems with an empty
sublist, which are already sorted, and this gives the rank order of $R\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS1.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Each round advances every binary search of the current depth by one comparison. At depth $\lambda$
there are at most $2^{\lambda}$ subproblems of size at most $\lceil N/2^{\lambda}\rceil\text{,}$ so this
depth takes $O\bigl(\log(N/2^{\lambda}+2)\bigr)$ rounds. There are $O(\log N)$ depths, which gives
the bound on the rounds. A round at depth $\lambda$ visits at most $2^{\lambda}$ known configurations
of $R\times R\text{,}$ a box whose sides are $O_{d}(N^{1/d})\text{.}$ By &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i), from any given
configuration of $R\times R$ its movement is $O_{d}\bigl(N^{1/d}2^{(1-1/D)\lambda}+N^{1/d}\bigr)\text{.}$
Substituting $i=\lceil\log_{2}N\rceil-\lambda\text{,}$ the main terms total&lt;/p&gt;
&lt;table id="S5.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$O_{d}\Bigl(N^{1/d}\sum_{\lambda}2^{(1-1/D)\lambda}\log\bigl(N/2^{\lambda}+2\bigr)\Bigr)=O_{d}\Bigl(N^{1/d}N^{1-1/D}\sum_{i\geq 0}(i+2)\,2^{-(1-1/D)i}\Bigr)=O_{d}\bigl(N^{1+1/(2d)}\bigr),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;since the series converges and $1/d-1/D=1/(2d)\text{.}$ The additive terms total
$O_{d}\bigl(N^{1/d}(\log N)^{2}\bigr)=O_{d}\bigl(N^{1+1/(2d)}\bigr)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S5.SS2" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-fully-adaptive-bound"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;5.2 &lt;/span&gt;The Fully Adaptive Bound&lt;/h3&gt;
&lt;div id="S5.SS2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r=\infty\text{,}$ a merge sort over a partition of the grid into boxes gives the upper bound in every
dimension. Together with &lt;a href="#S4.Thmtheorem5" title="Proposition 4.5. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.5&lt;/span&gt;&lt;/a&gt;, it determines $M_{\infty}^{(d)}(n)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem3" class="ltx_theorem ltx_theorem_proposition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Proposition 5.3&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every $d\geq 1\text{,}$ a deterministic algorithm sorts in $O\bigl((\log n)^{3}\bigr)$ rounds with movement
$O_{d}\bigl(n^{1+1/(2d)}\bigr)\text{.}$ Hence $M_{\infty}^{(d)}(n)=O_{d}\bigl(n^{1+1/(2d)}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We sort by merging along a tree of boxes of depth $T=d\lceil\log_{2}m\rceil\leq\log_{2}n+d\text{.}$ The root
is $[m]^{d}\text{.}$ At depth $t\text{,}$ every box whose side along axis $t\bmod d$ is $s\geq 2$ is halved along
that axis, into sides $\lceil s/2\rceil$ and $\lfloor s/2\rfloor\text{.}$ A box whose side along this axis is
$1$ has itself as its only child. At depth $T$ all boxes are single positions. The boxes of one depth
form a grid and have aspect ratio $O(1)\text{.}$ At height $i\text{,}$ that is, at depth $T-i\text{,}$ there are at most
$2^{T-i}\leq 2^{d}n/2^{i}$ boxes, and each has at most $2^{i}$ positions, because a box has at most two
children. The algorithm processes the heights in increasing order and merges the two halves of each
halved box by &lt;a href="#S5.Thmtheorem2" title="Lemma 5.2. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.2&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS2.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By &lt;a href="#S5.Thmtheorem2" title="Lemma 5.2. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.2&lt;/span&gt;&lt;/a&gt;, the movement inside the boxes of height $i$ is
$O_{d}\bigl((n/2^{i})\cdot 2^{i(1+1/(2d))}\bigr)=O_{d}\bigl(n\,2^{i/(2d)}\bigr)\text{.}$ Summing over
$i\leq T$ gives a geometric series dominated by its last term, so the total is
$O_{d}\bigl(n\,2^{T/(2d)}\bigr)=O_{d}\bigl(n^{1+1/(2d)}\bigr)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS2.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The merges of one height share their rounds: a round of the algorithm is one round of each merge, and
its route visits the boxes in the serpentine order of their grid. The heads cross from one box to
the next with movement $O_{d}(2^{i/d})\text{,}$ so these crossings, together with the move to the first box,
add $O_{d}\bigl((n/2^{i})\,2^{i/d}+n^{1/d}\bigr)=O_{d}(n)$ per round. Each merge takes
$O\bigl((\log n)^{2}\bigr)$ rounds and there are $O(\log n)$ heights, so the algorithm has $O\bigl((\log n)^{3}\bigr)$ rounds
and the crossings total $O_{d}\bigl(n(\log n)^{3}\bigr)=O_{d}\bigl(n^{1+1/(2d)}\bigr)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem4" class="ltx_theorem ltx_theorem_remark"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Remark 5.4&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_italic"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;At $d=1$ the tree of boxes is the merge tree of ordinary merge sort, with the merges of &lt;a href="#S5.Thmtheorem2" title="Lemma 5.2. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.2&lt;/span&gt;&lt;/a&gt;. The exponent $3/2$ agrees with the bound of Maass and
Schnitger for sorting on a Turing machine with one worktape and a two-way read-only input
tape &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib33" title="An optimal lower bound for Turing machines with one work tape and a two-way input tape" class="ltx_ref"&gt;MS86&lt;/a&gt;; &lt;a href="#bib.bib14" title="The complexity of matrix transposition on one-tape off-line Turing machines" class="ltx_ref"&gt;DMS91&lt;/a&gt;]&lt;/cite&gt;. Their input consists of bit strings, so the agreement is up to logarithmic
factors.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S5.SS3" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-sampling-algorithm"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;5.3 &lt;/span&gt;The Sampling Algorithm&lt;/h3&gt;
&lt;div id="S5.SS3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Between rounds, the sampling algorithm knows the
rank order only up to a partition of the keys into sets of consecutive ranks.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem5" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 5.5&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Segment)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem5.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;segment&lt;/em&gt; is a nonempty set of positions whose ranks form an interval of $[n]$ known to the
algorithm. A segment may be a single position.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The comparisons that remain are the pairs within segments, and the movement they take depends on
where each segment lies: a segment with many keys in a small region needs little movement. The following
quantity records this, by weighting each key with the number of boxes that its segment meets.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem6" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 5.6&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Dispersion)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem6.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For a partition $\mathcal{P}$ of $[m]^{d}$ into boxes and a family of disjoint segments, let
$\mathcal{P}(G)$ be the set of boxes of $\mathcal{P}$ that a segment $G$ meets. The &lt;em class="ltx_emph ltx_font_italic"&gt;dispersion&lt;/em&gt;
of the family is&lt;/p&gt;
&lt;table id="S5.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$S_{\mathcal{P}}=\sum_{G}|G|\,|\mathcal{P}(G)|.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Splitting a segment never raises the dispersion: if $G_{1},G_{2}\subseteq G$ are disjoint, then
$\mathcal{P}(G_{i})\subseteq\mathcal{P}(G)\text{,}$ so
$|G_{1}|\,|\mathcal{P}(G_{1})|+|G_{2}|\,|\mathcal{P}(G_{2})|\leq|G|\,|\mathcal{P}(G)|\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The algorithm has $r$ rounds. The first chooses random positions, the &lt;em class="ltx_emph ltx_font_italic"&gt;splitters&lt;/em&gt;. The next
$r-2$ are &lt;em class="ltx_emph ltx_font_italic"&gt;refinement rounds&lt;/em&gt;, which draw samples, and the last is the &lt;em class="ltx_emph ltx_font_italic"&gt;cleanup&lt;/em&gt;. A
&lt;em class="ltx_emph ltx_font_italic"&gt;sample&lt;/em&gt; is given by a partition $\mathcal{P}$ of $[m]^{d}$ into boxes and a rate $p\in(0,1]\text{.}$ Drawing it selects each box of $\mathcal{P}$ independently with
probability $p\text{,}$ and the keys in selected boxes that lie in segments are its &lt;em class="ltx_emph ltx_font_italic"&gt;pivots&lt;/em&gt;. The
splitters and the pivots are called &lt;em class="ltx_emph ltx_font_italic"&gt;resolved keys&lt;/em&gt;, since the order of each of them relative
to every other key is known after its round. Resolved keys lie in no segment.&lt;/p&gt;
&lt;/div&gt;
&lt;figure id="alg1" class="ltx_float ltx_float_algorithm ltx_framed ltx_framed_top"&gt;
&lt;figcaption class="ltx_caption"&gt;&lt;span class="ltx_tag ltx_tag_float"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Algorithm 1&lt;/span&gt; &lt;/span&gt; The sampling algorithm&lt;/figcaption&gt;
&lt;div class="ltx_listing ltx_listing"&gt;
&lt;div id="alg1.l0" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Parameters:&amp;lt;/span&amp;gt; $r\geq 2\text{;}$ the exponents $a_{0}&amp;amp;gt;\dots&amp;amp;gt;a_{r-2}$ of &amp;lt;a href=&amp;quot;#S2.Thmtheorem5&amp;quot; title=&amp;quot;Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Lemma&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;2.5&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;, with $b_{j}=n^{a_{j}}\text{;}$
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the samples of each refinement round; a route procedure for each refinement round and for the
cleanup round.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l1" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;1:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $1$ (splitter).&amp;lt;/span&amp;gt; Choose $\lceil n/b_{0}\rceil$ positions uniformly at random
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;without replacement, the splitters.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l2" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;2:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   The required configurations are all $(u,v)$ with $u\neq v$ and $v$ a splitter. For each
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;splitter $v$ in turn, place the second head on $v$ and sweep the first head through $[m]^{d}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l3" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;3:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   The splitters become resolved keys. In rank order, they cut the other positions into sets,
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the nonempty sets are the segments.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l4" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;4:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; $j=1,\dots,r-2$ &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;do&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg1.l5" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;5:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $j+1$ (refinement).&amp;lt;/span&amp;gt; Draw the samples of this round independently. The pivots
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;of the round are the pivots of its samples.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l6" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;6:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      The required configurations are all $(u,v)$ with $u\neq v$ and $v$ a pivot in the
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;segment of $u\text{.}$ Visit them by the route procedure.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l7" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;7:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      The pivots become resolved keys. In each segment, the nonempty maximal pivot-free sets of
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;consecutive ranks become the new segments.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l8" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;8:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg1.l9" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;9:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $r$ (cleanup).&amp;lt;/span&amp;gt; The required configurations are, for each cell whose two positions lie
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in one segment, one fixed orientation. Visit them by the route procedure.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg1.l10" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;10:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Sort each segment, and output the resolved keys and the segments in rank order.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/figure&gt;
&lt;div id="S5.SS3.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; is a template: each instance below specifies the samples and the routes. The
state between rounds is the sequence of resolved keys and nonempty segments in rank order, and the
analysis tracks the dispersion of the segments. The required configurations of a round are known when the round
starts, so its route depends only on the coins and on the outcomes of earlier rounds, and in every
instance it is computed in polynomial time. Line &lt;a href="#alg1.l2" title="In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt; moves $O(n)$ per splitter, so
round $1$ has movement $O(n\lceil n/b_{0}\rceil)=O(n^{2-a_{0}})\text{,}$ and $2-a_{0}=\beta_{r}^{(d)}$ by
&lt;a href="#S2.E1" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.1)&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The algorithm is correct for every input and every outcome of its coins. Every key other than a
splitter is compared with all splitters in round $1\text{,}$ so its segment is known. In a refinement round,
every key of a segment, pivots included, is compared with all other pivots of this segment, so the
new state is known. The cleanup compares all pairs within a segment, and the state determines the
order of every other pair.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next lemma bounds the &lt;em class="ltx_emph ltx_font_italic"&gt;squared mass&lt;/em&gt; $A=\sum_{G}|G|^{2}$ of the family after round $1\text{,}$ which counts the ordered pairs of
keys in a common segment. The
squared mass is the dispersion for the partition into single positions, where $|\mathcal{P}(G)|=|G|\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem7" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.7&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem7.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Fix an input and choose $s$ positions uniformly at random without replacement, where $1\leq s\leq n\text{.}$ In rank order, the chosen positions cut the other positions into sets $G_{0},\dots,G_{s}\text{,}$ which may be empty. Then
$\mathbb{E}\sum_{i}|G_{i}|^{2}\leq 3n^{2}/s\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS3.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The sum $\sum_{i}|G_{i}|^{2}$ counts the ordered pairs of ranks that lie in a common set, and we bound
the probability of each pair. Since the input is a bijection, the chosen ranks form a uniformly random
set of $s$ ranks. Two ranks at distance $\Delta$ lie in a common set only if none of the $\Delta$ ranks starting at the lower one is
chosen, which has probability at most $(1-s/n)^{\Delta}\leq\exp(-s\Delta/n)\text{.}$ Hence&lt;/p&gt;
&lt;table id="S5.Ex3" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}\sum_{i}|G_{i}|^{2}\ \leq\ n+2n\sum_{\Delta\geq 1}\exp(-s\Delta/n)\ \leq\ n+\frac{2n^{2}}{s}\ \leq\ \frac{3n^{2}}{s},$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;using $\sum_{\Delta\geq 1}\exp(-s\Delta/n)=(\exp(s/n)-1)^{-1}\leq n/s\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A sample of rate $p$ leaves dispersion about $n/p$ for its own partition, in every dimension and whatever the
family that enters the round.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem8" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.8&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem8.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Fix an input and a family of disjoint segments, and draw a sample with partition $\mathcal{P}$ and
rate $p\text{.}$ Within each segment, the pivots split the other keys into &lt;em class="ltx_emph ltx_font_upright"&gt;refined segments&lt;/em&gt;, the
nonempty maximal pivot-free sets of consecutive ranks. For a key $u$ in a segment, let $G_{u}$ be its
refined segment if $u$ is not a pivot, and $G_{u}=\emptyset$ otherwise. Then
$\mathbb{E}|\mathcal{P}(G_{u})|\leq 3/p\text{,}$ and hence the dispersion of the refined segments satisfies
$\mathbb{E}[S_{\mathcal{P}}]\leq 3n/p\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS3.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We bound the number of boxes that $G_{u}$ meets above and below $u\text{,}$ and then sum over the keys. List
the segment of $u$ in rank order. Let $R_{u}^{+}$ be the number of boxes of $\mathcal{P}\text{,}$ other
than the box of $u\text{,}$ that the keys above $u$ meet before the first pivot above $u\text{.}$ If
$R_{u}^{+}\geq t\text{,}$ then the first $t$ such boxes in rank order are all unselected. These boxes are determined by the input and the family, and each is selected independently with probability $p\text{,}$ so $\Pr[R_{u}^{+}\geq t]\leq(1-p)^{t}\text{,}$ and $\mathbb{E}[R_{u}^{+}]\leq 1/p\text{.}$
Define $R_{u}^{-}$ in the same way for the keys below $u\text{.}$ Then
$|\mathcal{P}(G_{u})|\leq 1+R_{u}^{-}+R_{u}^{+}\text{,}$ whose expectation is at most $3/p\text{.}$ Finally,
$S_{\mathcal{P}}=\sum_{u}|\mathcal{P}(G_{u})|\text{,}$ and there are at most $n$ keys.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS3.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The later rounds tour the product boxes of a partition and visit the required configurations inside each of them. Fix a family of disjoint
segments and a partition $\mathcal{P}$ of $[m]^{d}$ into boxes. For $I,J\in\mathcal{P}\text{,}$ the set
$I\times J$ is a product box, and we write $Q_{I,J}=\sum_{G}|G\cap I|\,|G\cap J|\text{.}$ The product box
$I\times J$ is &lt;em class="ltx_emph ltx_font_italic"&gt;occupied&lt;/em&gt; if $Q_{I,J}&amp;gt;0\text{,}$ and $P$ is the number of occupied product boxes. If this
family enters a refinement round or the cleanup, a required configuration in $I\times J$ is a pair
$(u,v)$ with $u\in I\text{,}$ $v\in J\text{,}$ and $u$ and $v$ in a common segment, so at most $Q_{I,J}$ required
configurations lie in $I\times J\text{.}$ The number of occupied product boxes bounds the tour, and on the line the sum of the
$\sqrt{Q_{I,J}}$ bounds the visits. The dispersion bounds both:&lt;/p&gt;
&lt;table id="S5.E1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$P\ \leq\ \sum_{G}|\mathcal{P}(G)|^{2}\ \leq\ S_{\mathcal{P}},\qquad\sum_{I,J}\sqrt{Q_{I,J}}\ \leq\ \sum_{G}\Bigl(\sum_{I}\sqrt{|G\cap I|}\Bigr)^{2}\ \leq\ S_{\mathcal{P}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;td rowspan="1" class="ltx_eqn_cell ltx_eqn_eqno ltx_align_middle ltx_align_right"&gt;&lt;span class="ltx_tag ltx_tag_equation ltx_align_right"&gt;(5.1)&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;For the first chain, a segment contributes to $Q_{I,J}$ only if it meets both $I$ and $J\text{,}$ which
holds for $|\mathcal{P}(G)|^{2}$ product boxes, and $|\mathcal{P}(G)|\leq|G|\text{.}$ For the second chain,
the first step is the subadditivity of the square root over the segments, and the second is the
Cauchy–Schwarz inequality over the $|\mathcal{P}(G)|$ nonzero terms $\sqrt{|G\cap I|}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S5.SS4" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="the-upper-bound-on-the-line"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;5.4 &lt;/span&gt;The Upper Bound on the Line&lt;/h3&gt;
&lt;div id="S5.SS4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;On the line, the dispersion bounds both the tour of the next round and its visits (&lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt;), so each refinement round draws one sample. In this
subsection $d=1\text{,}$ so $D=2$ and $q=\tfrac{1}{2}\text{,}$ and we write $\beta=\beta_{r}\text{.}$ An
&lt;em class="ltx_emph ltx_font_italic"&gt;interval of length $h$&lt;/em&gt; is a set of $h$ consecutive positions. We partition the line into
intervals of length $h\text{,}$ the last possibly shorter, and write $\mathcal{P}_{h}(G)$ and $S_{h}$ for
this partition. An interval of length $h$ meets at most two intervals of length $h^{\prime}\geq h\text{,}$ so
$S_{h^{\prime}}\leq 2S_{h}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $1\leq j\leq r-1\text{,}$ let
$h_{j}=\lceil\sqrt{n/b_{j-1}}\rceil\text{,}$ so that $h_{1}\leq\dots\leq h_{r-1}=\lceil\sqrt{n/g}\rceil\text{,}$ and
for $1\leq j\leq r-2\text{,}$ let $p_{j}=n^{-a_{j}}\text{.}$ &lt;a href="#alg2" title="In 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt; is the instance of
&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; with these parameters. We also apply &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) to coarser grids whose points are intervals, cubes, or product
boxes. A step of the lattice path then moves the heads to an adjacent interval, cube, or product box.&lt;/p&gt;
&lt;/div&gt;
&lt;figure id="alg2" class="ltx_float ltx_float_algorithm ltx_framed ltx_framed_top"&gt;
&lt;figcaption class="ltx_caption"&gt;&lt;span class="ltx_tag ltx_tag_float"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Algorithm 2&lt;/span&gt; &lt;/span&gt; The line algorithm&lt;/figcaption&gt;
&lt;div class="ltx_listing ltx_listing"&gt;
&lt;div id="alg2.l0" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Parameters:&amp;lt;/span&amp;gt; $d=1\text{;}$ $r\geq 2\text{;}$ $h_{j}$ and $p_{j}$ as above.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l1" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;1:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $1$ (splitter).&amp;lt;/span&amp;gt; Lines &amp;lt;a href=&amp;quot;#alg1.l1&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;–&amp;lt;a href=&amp;quot;#alg1.l3&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;3&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg2.l2" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;2:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; $j=1,\dots,r-2$ &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;do&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l3" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;3:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $j+1$ (refinement).&amp;lt;/span&amp;gt; Draw one sample: intervals of length $h_{j}\text{,}$ rate
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$p_{j}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg2.l4" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;4:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; each selected interval $J\text{,}$ in order on the line &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;do&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l5" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;5:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;         Place the second head at the left endpoint of $J\text{,}$ and sweep the first head along the
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;line from left to right.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg2.l6" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;6:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;         When the first head reaches an interval $I$ with $Q_{I,J}&amp;amp;gt;0\text{,}$ visit the required configurations
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in $I\times J$ by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i). Then return the second head to the left endpoint of
$J$ and the first head to its place in the sweep.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg2.l7" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;7:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l8" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;8:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      Update the state as in Line &amp;lt;a href=&amp;quot;#alg1.l7&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;7&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l9" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;9:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg2.l10" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;10:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $r$ (cleanup).&amp;lt;/span&amp;gt; With $h=h_{r-1}\text{,}$ move along the lattice path of
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) through the occupied product boxes on the grid of $\lceil n/h\rceil^{2}$
product boxes. On first arrival at an occupied $I\times J\text{,}$ visit the required configurations in it by
&lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i).&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg2.l11" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;11:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Output as in Line &amp;lt;a href=&amp;quot;#alg1.l10&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;10&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/figure&gt;
&lt;div id="S5.SS4.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next two lemmas bound the movement of these routes for any family of segments.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem9" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.9&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem9.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let a family of disjoint segments have dispersion $S_{h}$ for intervals of length $h\text{,}$ and let
$p\in(0,1]\text{.}$ For a sample with intervals of length $h$ and rate $p\text{,}$ the route of
Lines &lt;a href="#alg2.l4" title="In Algorithm 2 ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt;–&lt;a href="#alg2.l6" title="In Algorithm 2 ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;6&lt;/span&gt;&lt;/a&gt; of &lt;a href="#alg2" title="In 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt; visits all required configurations and
has expected movement $O\bigl(p\,n^{2}/h+p\,h\,S_{h}+n\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS4.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The route visits all required configurations, because every required configuration lies in a product box $I\times J$
with $J$ selected and $Q_{I,J}&amp;gt;0\text{.}$ The first head moves at most $2n$ per selected interval on its
sweep, and the second head moves at most $2n$ between selected intervals over the whole round. In
expectation there are at most $p(n/h+1)$ selected intervals, so these moves total
$O(p\,n^{2}/h+n)\text{.}$ For an occupied $I\times J$ with $J$ selected, at most $Q_{I,J}$ required configurations lie
in $I\times J\text{,}$ so by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) visiting them and returning takes movement
$O\bigl(h\sqrt{Q_{I,J}}\bigr)\text{,}$ because $Q_{I,J}\geq 1\text{.}$ Each $J$ is selected with probability $p\text{,}$ so by
&lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt; these visits have expected total $O\bigl(p\,h\sum_{I,J}\sqrt{Q_{I,J}}\bigr)=O(p\,h\,S_{h})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem10" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 5.10&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem10.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let a family of disjoint segments have dispersion $S_{h}$ for intervals of length $h\text{.}$ The route of
Line &lt;a href="#alg2.l10" title="In Algorithm 2 ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;10&lt;/span&gt;&lt;/a&gt; of &lt;a href="#alg2" title="In 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt;, run with this $h\text{,}$ visits the required configurations of the
cleanup and has movement $O\bigl(n\sqrt{S_{h}}+h\,S_{h}+n\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS4.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By &lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt;, $P\leq S_{h}\text{.}$ By &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) on the grid of $\lceil n/h\rceil^{2}$ product
boxes, the lattice path has $O\bigl(\lceil n/h\rceil\sqrt{P}+\lceil n/h\rceil\bigr)$ steps, each of
movement $O(h)\text{,}$ so it contributes $O\bigl(n\sqrt{S_{h}}+n\bigr)\text{.}$ Each occupied $I\times J$ holds at
most $Q_{I,J}$ required configurations, so by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) visiting them and returning takes
movement $O\bigl(h\sqrt{Q_{I,J}}\bigr)\text{,}$ because $Q_{I,J}\geq 1\text{.}$ By &lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt;, these visits total
$O(h\,S_{h})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem11" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 5.11&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem11.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $r\text{,}$ an $r$-round algorithm sorts the line with expected movement
$O_{r}\bigl(n^{\beta_{r}}\bigr)$ on every input, and its output is correct for every outcome of its
coins. For $r\geq 2$ this is &lt;a href="#alg2" title="In 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S5.SS4.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r=1\text{,}$ a serpentine route through $[n]^{2}$ visits every cell, with movement
$O(n^{2})=O(n^{\beta_{1}})\text{,}$ and it is deterministic. Let $r\geq 2\text{.}$ Correctness was shown after
&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;. We bound the rounds in turn, writing $L_{t}$ for the movement of round $t\text{.}$ The
expectations are over the coins.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Round $1$ has movement $O(n^{\beta})\text{,}$ as noted after &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;. By &lt;a href="#S5.Thmtheorem7" title="Lemma 5.7. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.7&lt;/span&gt;&lt;/a&gt;
with $s=\lceil n/b_{0}\rceil\text{,}$ its output has squared mass $A$ with $\mathbb{E}[A]\leq 3nb_{0}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We first bound the dispersion of the family that enters each later round: for $1\leq j\leq r-1\text{,}$ the family entering
round $j+1$ satisfies $\mathbb{E}[S_{h_{j}}]\leq 6nb_{j-1}\text{.}$ For $j=1$ this holds because $A$ is the
dispersion for intervals of length $1\text{,}$ so $S_{h_{1}}\leq 2A\text{.}$ For $j\geq 2\text{,}$ &lt;a href="#S5.Thmtheorem8" title="Lemma 5.8. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.8&lt;/span&gt;&lt;/a&gt; applied
to round $j$ gives $\mathbb{E}[S_{h_{j-1}}]\leq 3n/p_{j-1}=3nb_{j-1}\text{,}$ whatever the family entering round $j\text{,}$ and
$S_{h_{j}}\leq 2S_{h_{j-1}}$ because $h_{j-1}\leq h_{j}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Now let $1\leq j\leq r-2\text{.}$ By &lt;a href="#S5.Thmtheorem9" title="Lemma 5.9. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.9&lt;/span&gt;&lt;/a&gt;,&lt;/p&gt;
&lt;table id="S5.Ex4" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}[L_{j+1}]=O\bigl(p_{j}n^{2}/h_{j}+p_{j}h_{j}\,nb_{j-1}+n\bigr)=O\bigl(p_{j}\,n\sqrt{nb_{j-1}}+n\bigr),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;because $\sqrt{n/b_{j-1}}\leq h_{j}\leq 2\sqrt{n/b_{j-1}}\text{.}$ The exponent of $p_{j}\,n\sqrt{nb_{j-1}}$
is $\tfrac{3}{2}+a_{j-1}/2-a_{j}\text{,}$ which equals $\beta$ by &lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; with $D=2\text{.}$ Hence
$\mathbb{E}[L_{j+1}]=O(n^{\beta})\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For round $r\text{,}$ let $h=h_{r-1}\text{.}$ By &lt;a href="#S5.Thmtheorem10" title="Lemma 5.10. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.10&lt;/span&gt;&lt;/a&gt; and Jensen’s inequality for the square root,&lt;/p&gt;
&lt;table id="S5.Ex5" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}[L_{r}]=O\bigl(n\sqrt{ng}+\sqrt{n/g}\cdot ng+n\bigr)=O\bigl(n^{3/2}\sqrt{g}\bigr).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;The exponent $\tfrac{3}{2}+a_{r-2}/2$ equals $\beta$ by &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt; with $D=2\text{.}$ Summing over the
$r$ rounds gives $\mathbb{E}[\mathrm{Move}]=O_{r}(n^{\beta})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S5.SS4.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Together with &lt;a href="#S4.Thmtheorem12" title="Theorem 4.12. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.12&lt;/span&gt;&lt;/a&gt;, this gives the exact order on the line.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S5.Thmtheorem12" class="ltx_theorem ltx_theorem_remark"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Remark 5.12&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_italic"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S5.Thmtheorem12.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;On the line, $\beta_{r}=1+\tfrac{1}{2}s_{r}\text{,}$ where $s_{r}=1+1/(2^{r}-1)$ is the
exponent of the worst-case number of comparisons that a deterministic algorithm needs to find the
maximum of $n$ keys, or to merge two sorted lists, in $r$ rounds &lt;cite class="ltx_cite ltx_citemacro_cite"&gt;[&lt;a href="#bib.bib40" title="Parallelism in comparison problems" class="ltx_ref"&gt;Val75&lt;/a&gt;; &lt;a href="#bib.bib23" title="Sorting and merging in rounds" class="ltx_ref"&gt;HH82&lt;/a&gt;]&lt;/cite&gt;. Here $g=n^{1/(2^{r}-1)}\text{,}$ so the finest scale of &lt;a href="#S4" title="4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt; has
$\Theta(ng)=\Theta(n^{s_{r}})$ co-blocked cells. Unless an earlier round already has expected movement $\Omega(n^{\beta_{r}})\text{,}$ with
constant probability the final round must visit a constant fraction of them, pairwise at distance
$\Omega\bigl((n/g)^{1/2}\bigr)\text{,}$ which takes movement $\Omega(n^{\beta_{r}})\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S6" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="higher-dimensions"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;6 &lt;/span&gt;Higher Dimensions&lt;/h2&gt;
&lt;div id="S6.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $d\geq 2$ the movement of a round depends on the dispersion of its input at more than one box size, and a
refinement round controls each size with a sample of its own. The three ranges of $r$ use three kinds of
refinement: none for $r\leq 2$ (&lt;a href="#S6.SS1" title="6.1 At Most Two Rounds ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.1&lt;/span&gt;&lt;/a&gt;), two independent samples in one round for $r=3$
(&lt;a href="#S6.SS2" title="6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.2&lt;/span&gt;&lt;/a&gt;), and one sample for each box size of a nested partition for $r\geq 4$
(&lt;a href="#S6.SS3" title="6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Section&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.3&lt;/span&gt;&lt;/a&gt;). The section ends with the proof of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;section id="S6.SS1" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="at-most-two-rounds"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;6.1 &lt;/span&gt;At Most Two Rounds&lt;/h3&gt;
&lt;div id="S6.SS1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r\leq 2$ there is no refinement round: a serpentine route sorts in one round, and for $r=2$ the cleanup
after the splitters is a visit to a known set of configurations.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem1" class="ltx_theorem ltx_theorem_proposition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Proposition 6.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $d\geq 2\text{.}$ Then (i) $M_{1}^{(d)}(n)=O_{d}(n^{2})\text{,}$ attained by a deterministic algorithm, and
(ii) $M_{2}^{(d)}(n)=O_{d}\bigl(n^{\beta_{2}^{(d)}}\bigr)\text{,}$ where $\beta_{2}^{(d)}=\tfrac{6d-1}{4d-1}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS1.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r=1\text{,}$ a serpentine route through $[m]^{D}$ visits every cell, with movement $O_{d}(n^{2})\text{,}$ and it
is deterministic.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS1.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For $r=2\text{,}$ we run &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; without refinement rounds, with $b_{0}=n^{a_{0}}$ for the
exponent $a_{0}$ of &lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt; at $r=2\text{.}$ Round $1$ has movement $O(n^{\beta})\text{,}$ where
$\beta=\beta_{2}^{(d)}\text{.}$ By &lt;a href="#S5.Thmtheorem7" title="Lemma 5.7. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.7&lt;/span&gt;&lt;/a&gt; with $s=\lceil n/b_{0}\rceil\text{,}$ its output has
squared mass $A$ with $\mathbb{E}[A]\leq 3nb_{0}\text{.}$ Round $2$ has at most $A$ required configurations, and they
are known, so by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(ii) and Jensen’s inequality for the concave function
$t\mapsto t^{1-1/D}\text{,}$ its expected movement is
$O_{d}\bigl(n^{1/d}(nb_{0})^{1-1/D}+n^{1/d}\bigr)\text{.}$ The exponent
$\tfrac{1}{d}+(1+a_{0})\bigl(1-\tfrac{1}{D}\bigr)$ equals $1+a_{0}+(1-a_{0})/D\text{,}$ because $1/d=2/D\text{,}$ and this
is $\beta$ by &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt;.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S6.SS2" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="two-samples-at-r3"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;6.2 &lt;/span&gt;Two Samples at $r=3$
&lt;/h3&gt;
&lt;div id="S6.SS2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The cost of the cleanup has two parts. Its route moves along a lattice path through the occupied
product boxes $I\times J$ of two cubes of side $H\text{,}$ and inside each of them it visits the required configurations, with
movement $O_{d}\bigl(H\,Q_{I,J}^{1-1/D}+H\bigr)$ by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i). On the line, $1-1/D=\tfrac{1}{2}\text{,}$ so by
&lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt; the dispersion bounds both parts, and one sample of intervals suffices. For $d\geq 2$ the
exponent $1-1/D$ is larger, and we bound a visit by $H\,Q_{I,J}\text{,}$ whose sum over the boxes is $H$ times the squared mass. Sampling cubes controls the
dispersion, which bounds the lattice path, and sampling keys controls the squared mass, which bounds the visits, so
the refinement round does both.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We write $\mathcal{P}_{H}(G)$ and $S_{H}$ for the partition of $[m]^{d}$ into cubes of side $H\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem2" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 6.2&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Cube and Key Samples)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;cube sample&lt;/em&gt; is a sample whose partition consists of the cubes of side $H\text{.}$ A &lt;em class="ltx_emph ltx_font_italic"&gt;key
sample&lt;/em&gt; is a sample on the partition into single positions.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Take $a_{0}&amp;gt;a_{1}$ from &lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt; at $r=3\text{,}$ and let $b_{0}=n^{a_{0}}\text{,}$ $A_{\star}=nb_{0}\text{,}$
and $H=\lceil n^{(1-a_{0})/D}\rceil\text{.}$ Let $p=n^{-a_{1}}$ and
$\sigma=n^{-(a_{0}-a_{1})}\text{.}$ Both rates lie in $(0,1)\text{.}$ The rate $p$ is for the tour of the cleanup, since a cube
sample leaves dispersion about $n/p\text{,}$ and the rate $\sigma$ is for its visits, since a key sample leaves squared mass about
$n/\sigma\text{.}$ The minimum corner of a cube is its point
with all coordinates smallest. For the family entering round $2\text{,}$ let $P_{J}$ be the number of cubes
$I$ with $Q_{I,J}&amp;gt;0\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;figure id="alg3" class="ltx_float ltx_float_algorithm ltx_framed ltx_framed_top"&gt;
&lt;figcaption class="ltx_caption"&gt;&lt;span class="ltx_tag ltx_tag_float"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Algorithm 3&lt;/span&gt; &lt;/span&gt; The two-sample algorithm&lt;/figcaption&gt;
&lt;div class="ltx_listing ltx_listing"&gt;
&lt;div id="alg3.l0" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Parameters:&amp;lt;/span&amp;gt; $d\geq 2\text{;}$ $H\text{,}$ $p\text{,}$ and $\sigma$ as above.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg3.l1" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;1:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $1$ (splitter).&amp;lt;/span&amp;gt; Lines &amp;lt;a href=&amp;quot;#alg1.l1&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;–&amp;lt;a href=&amp;quot;#alg1.l3&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;3&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg3.l2" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;2:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $2$ (refinement).&amp;lt;/span&amp;gt; Draw a cube sample of side $H$ and rate $p$ and a key sample
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;of rate $\sigma\text{,}$ independently.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg3.l3" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;3:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; each selected cube $J$ with $P_{J}\geq 1\text{,}$ in the serpentine order of the cubes &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;do&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg3.l4" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;4:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      Place the second head at the minimum corner of $J\text{,}$ and move the first head along the
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;lattice path of &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) through the cubes $I$ with $Q_{I,J}&amp;gt;0\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg3.l5" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;5:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      On arriving at such a cube $I\text{,}$ visit the required configurations of the cube sample in $I\times J$
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i). Then return the second head to the minimum corner of $J$ and the first
head to its place on the path.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg3.l6" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;6:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg3.l7" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;7:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Visit the required configurations of the key sample by &amp;lt;a href=&amp;quot;#S5.Thmtheorem1&amp;quot; title=&amp;quot;Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Lemma&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;5.1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;(ii).
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg3.l8" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;8:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Update the state as in Line &amp;lt;a href=&amp;quot;#alg1.l7&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;7&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg3.l9" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;9:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $3$ (cleanup).&amp;lt;/span&amp;gt; Move along the lattice path of &amp;lt;a href=&amp;quot;#S5.Thmtheorem1&amp;quot; title=&amp;quot;Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Lemma&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;5.1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;(i) through the
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;occupied product boxes on the grid of product boxes of cubes of side $H\text{.}$ On first arrival at an
occupied $I\times J\text{,}$ visit the required configurations in it by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i).&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg3.l10" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;10:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Output as in Line &amp;lt;a href=&amp;quot;#alg1.l10&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;10&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/figure&gt;
&lt;div id="S6.SS2.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next lemma bounds the route of the cube sample for any family.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem3" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 6.3&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let a family of disjoint segments have squared mass $A\text{,}$ let $1\leq H\leq n^{1/d}\text{,}$ and let $p\in(0,1]\text{.}$
The route of Lines &lt;a href="#alg3.l3" title="In Algorithm 3 ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;3&lt;/span&gt;&lt;/a&gt;–&lt;a href="#alg3.l5" title="In Algorithm 3 ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;5&lt;/span&gt;&lt;/a&gt; of &lt;a href="#alg3" title="In 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3&lt;/span&gt;&lt;/a&gt; visits the
required configurations of a cube sample of side $H$ and rate $p\text{,}$ and its expected movement is&lt;/span&gt;&lt;/p&gt;
&lt;table id="S6.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$O_{d}\bigl(p\,n^{2/d}H^{-1}A^{1-1/d}+p\,H\,A+n\bigr).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS2.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We bound in turn the moves of the second head between cubes, the paths of the first head, and the
visits inside product boxes. There are at most $(2n^{1/d}/H)^{d}=2^{d}n/H^{d}$ cubes. The second head
moves through them in serpentine order at $O_{d}(H)$ per cube, which totals
$O_{d}(n/H^{d-1})=O_{d}(n)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Fix a selected cube $J$ with $P_{J}\geq 1\text{.}$ By &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) on the grid of cubes, the path of
the first head has $O_{d}\bigl((n^{1/d}/H)P_{J}^{1-1/d}\bigr)$ steps, each of movement $O_{d}(H)\text{.}$
Here $P_{J}\geq 1$ absorbs the additive term, and also the $O_{d}(n^{1/d})$ movement of the first head
from the previous path to this one. So the first head moves $O_{d}\bigl(n^{1/d}P_{J}^{1-1/d}\bigr)$
for $J\text{.}$ Each $J$ is selected with probability $p\text{.}$ Moreover,
$\sum_{J}P_{J}=P\leq\sum_{G}|\mathcal{P}_{H}(G)|^{2}\leq A$ by &lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt; and
$|\mathcal{P}_{H}(G)|\leq|G|\text{.}$ By the concavity of $t\mapsto t^{1-1/d}$ over the at most
$2^{d}n/H^{d}$ cubes,&lt;/p&gt;
&lt;table id="S6.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}\sum_{J\text{ selected}}P_{J}^{1-1/d}\ \leq\ p\Bigl(\frac{2^{d}n}{H^{d}}\Bigr)^{1/d}A^{1-1/d}\ =\ 2p\,n^{1/d}H^{-1}A^{1-1/d},$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;so the first head moves $O_{d}\bigl(p\,n^{2/d}H^{-1}A^{1-1/d}\bigr)$ in expectation.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Finally, for an occupied $I\times J$ with $J$ selected, at most $Q_{I,J}$ required configurations lie in
$I\times J\text{,}$ so by &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) visiting them and returning takes movement
$O_{d}\bigl(H\,Q_{I,J}^{1-1/D}+H\bigr)=O_{d}(H\,Q_{I,J})\text{,}$ because $Q_{I,J}$ is a positive integer.
Since $\sum_{I,J}Q_{I,J}=\sum_{G}|G|^{2}=A$ and each $J$ is selected with probability $p\text{,}$ these
visits have expected total $O_{d}(p\,H\,A)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For a family of squared mass $A\text{,}$ the key sample has at most $\sigma A$ required configurations in expectation,
because each ordered pair of distinct keys in a common segment is required with probability $\sigma\text{.}$
By &lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(ii) and Jensen’s inequality,
Line &lt;a href="#alg3.l7" title="In Algorithm 3 ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;7&lt;/span&gt;&lt;/a&gt; of &lt;a href="#alg3" title="In 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3&lt;/span&gt;&lt;/a&gt; has expected movement
$O_{d}\bigl(n^{1/d}(\sigma A)^{1-1/D}+n^{1/d}\bigr)\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem4" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 6.4&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem4.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every $d\geq 2\text{,}$ &lt;a href="#alg3" title="In 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3&lt;/span&gt;&lt;/a&gt; sorts with expected movement $O_{d}\bigl(n^{\beta_{3}^{(d)}}\bigr)$
on every input, and its output is correct for every outcome of its coins, where
$\beta_{3}^{(d)}=\tfrac{16d^{2}-6d+1}{12d^{2}-6d+1}\text{.}$ Hence $M_{3}^{(d)}(n)=O_{d}\bigl(n^{\beta_{3}^{(d)}}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS2.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Write $\beta=\beta_{3}^{(d)}\text{.}$ Correctness was shown after &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;. We bound the rounds in
turn. Round $1$ has movement $O(n^{\beta})\text{.}$ By &lt;a href="#S5.Thmtheorem7" title="Lemma 5.7. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.7&lt;/span&gt;&lt;/a&gt;, its output has squared mass $A$
with $\mathbb{E}[A]\leq 3A_{\star}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For the cube sample in round $2\text{,}$ we take expectations in &lt;a href="#S6.Thmtheorem3" title="Lemma 6.3. ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.3&lt;/span&gt;&lt;/a&gt;, using Jensen’s inequality
for $t\mapsto t^{1-1/d}\text{.}$ The value of $H$ makes the two main terms equal: since $H=\Theta\bigl(n^{(1-a_{0})/D}\bigr)\text{,}$ both are&lt;/p&gt;
&lt;table id="S6.Ex3" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$O_{d}\bigl(p\,n^{2/d}H^{-1}A_{\star}^{1-1/d}+p\,H\,A_{\star}\bigr)=O_{d}\bigl(n^{-a_{1}+1+a_{0}+(1-a_{0})/D}\bigr)=O_{d}(n^{\beta}),$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;where the last step is &lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; for $j=1\text{.}$ For the key sample, $\sigma A_{\star}=n^{1+a_{1}}\text{,}$
so its expected movement is $O_{d}\bigl(n^{1/d+(1+a_{1})(1-1/D)}+n^{1/d}\bigr)\text{.}$ The exponent equals
$1+a_{1}+(1-a_{1})/D\text{,}$ which is $\beta$ by &lt;a href="#S2.E3" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.3)&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For round $3\text{,}$ the output of round $2$ is obtained from the output of the cube sample by splitting
segments, so &lt;a href="#S5.Thmtheorem8" title="Lemma 5.8. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.8&lt;/span&gt;&lt;/a&gt; gives $\mathbb{E}[S_{H}]\leq 3n/p\text{.}$ By &lt;a href="#S5.E1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(5.1)&lt;/span&gt;&lt;/a&gt;, $P\leq S_{H}\text{.}$ By
&lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) on the grid of product boxes, the lattice path has
$O_{d}\bigl((n^{1/d}/H)(P^{1-1/D}+1)\bigr)$ steps, each of movement $O_{d}(H)\text{.}$ By Jensen’s
inequality, the path has expected movement $O_{d}\bigl(n^{1/d}(n/p)^{1-1/D}+n^{1/d}\bigr)\text{.}$ Since
$n/p=n^{1+a_{1}}\text{,}$ this is $O_{d}(n^{\beta})$ by the computation for the key sample. By
&lt;a href="#S5.Thmtheorem1" title="Lemma 5.1. ‣ 5.1 Routing ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.1&lt;/span&gt;&lt;/a&gt;(i) and $Q_{I,J}\geq 1\text{,}$ the visits inside the occupied product boxes take movement
$O_{d}\bigl(H\sum_{I,J}Q_{I,J}\bigr)\text{,}$ and $\sum_{I,J}Q_{I,J}$ is the squared mass of the output of round $2\text{.}$ This
output is obtained from the output of the key sample by splitting segments, so &lt;a href="#S5.Thmtheorem8" title="Lemma 5.8. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.8&lt;/span&gt;&lt;/a&gt; for the partition
into single positions shows that its squared mass has expectation at most $3n/\sigma\text{.}$ Hence the visits have expected
movement $O_{d}(Hn/\sigma)=O_{d}\bigl(n^{1+(1-a_{0})/D+a_{0}-a_{1}}\bigr)=O_{d}(n^{\beta})\text{,}$ where the last step is
&lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; for $j=1\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS2.p12" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Summing over the three rounds gives $\mathbb{E}[\mathrm{Move}]=O_{d}(n^{\beta})\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S6.SS3" class="ltx_subsection"&gt;
&lt;h3 class="ltx_title ltx_title_subsection" id="multiscale-refinement-for-rgeq-4"&gt;
&lt;span class="ltx_tag ltx_tag_subsection"&gt;6.3 &lt;/span&gt;Multiscale Refinement for $r\geq 4$
&lt;/h3&gt;
&lt;div id="S6.SS3.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;At $r=3$ the refinement round is followed by the cleanup, whose cost is controlled by one dispersion and
the squared mass. For $r\geq 4$ a refinement round can be followed by another one, whose route moves
at every box size (&lt;a href="#S6.Thmtheorem6" title="Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.6&lt;/span&gt;&lt;/a&gt;), so its cost depends on the dispersion of its input at all these sizes. The analysis therefore keeps an upper bound on the expected dispersion for each box size, and
the rates of each round are chosen in advance from this bound.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;In this subsection $d\geq 2$ and $r\geq 4$ are fixed and $\beta=\beta_{r}^{(d)}\text{.}$ A scale here means a
spatial scale: $x$ and $y$ denote volume exponents of boxes, positions are written $u$ and $v\text{,}$ and
the rank scales enter only through the exponents $a_{j}\text{.}$ Let $c=1/d\text{,}$ and recall that $\delta=\beta-1$
and $a_{0}=1-\delta\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem5" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 6.5&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Scales and Samples at a Scale)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem5.p1" class="ltx_para"&gt;
&lt;ol id="S6.I1" class="ltx_enumerate"&gt;
&lt;li id="S6.I1.i1" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(1)&lt;/span&gt;
&lt;div id="S6.I1.i1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Halving every axis $i$ times, for $0\leq i\leq\lfloor\log_{2}m\rfloor\text{,}$ partitions $[m]^{d}$
into $2^{id}$ boxes with sides $\lfloor m/2^{i}\rfloor$ and $\lceil m/2^{i}\rceil\text{.}$ Such a box
is a &lt;em class="ltx_emph ltx_font_italic"&gt;scale-$x$ box&lt;/em&gt;, where $n^{x}=(m/2^{i})^{d}\text{,}$ and $x$ is its &lt;em class="ltx_emph ltx_font_italic"&gt;spatial scale&lt;/em&gt;.
We call these $x$ &lt;em class="ltx_emph ltx_font_italic"&gt;dyadic&lt;/em&gt;, and also $x=0\text{,}$ whose scale-$0$ boxes are the single
positions. These partitions are nested, and a box contains at most $2^{d}$ boxes of the next
finer partition. There are $B_{x}=n^{1-x}$ scale-$x$ boxes, with sides at most $2n^{x/d}\text{,}$ and
there are $O(\log n)$ dyadic $x\text{.}$ We write $\mathcal{P}_{x}(G)$ and $S_{x}$ for the partition into
scale-$x$ boxes. Thus $S_{0}$ is the squared mass, and $S_{x}\leq\min\{S_{0},nB_{x}\}$ because
$|\mathcal{P}_{x}(G)|\leq\min\{|G|,B_{x}\}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id="S6.I1.i2" class="ltx_item" style="list-style-type:none;"&gt;
&lt;span class="ltx_tag ltx_tag_item"&gt;(2)&lt;/span&gt;
&lt;div id="S6.I1.i2.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;sample at scale $y$&lt;/em&gt; is a sample on the partition into scale-$y$ boxes. Its required
configurations are the set $W_{y}$ of pairs $(u,v)$ with $u\neq v$ and $v$ a pivot of this
sample in the segment of $u\text{.}$ For a set $W$ of configurations, $N_{x}(W)$ is the number of
product boxes of two scale-$x$ boxes that contain a configuration of $W\text{.}$ Thus
$N_{x}(W)\leq\min\{|W|,B_{x}^{2}\}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem6" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 6.6&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem6.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;A set $W$ of configurations is visited by a route that starts at the current configuration and has
movement $O_{d}\bigl(n^{1/d}+\sum_{x}n^{cx}N_{x}(W)\bigr)\text{,}$ where the sum ranges over the dyadic
$x\text{.}$ The route can be computed from $W$ in polynomial time.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS3.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The product boxes that contain a configuration of $W$ form a tree under inclusion, with the root
$[m]^{D}\text{.}$ A box has at most $2^{D}$ children, and the leaves are the single configurations of $W\text{.}$
Mark one configuration of $W$ in each node, and traverse the tree in depth-first order, moving between
marked configurations. Each edge is crossed twice. A crossing into or out of a child of a scale-$x$
node moves $O_{d}(n^{cx})\text{,}$ because both marked configurations lie in this node, and the $N_{x}(W)$ nodes of
scale $x$ have at most $2^{D}N_{x}(W)$ children. So the traversal
visits every configuration of $W$ and moves $O_{d}\bigl(\sum_{x}n^{cx}N_{x}(W)\bigr)\text{,}$ and it moves
$O_{d}(n^{1/d})$ from the current configuration to the mark of the root.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For the required configurations of a sample, the next lemma bounds $N_{x}$ through the dispersion $S_{x}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem7" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 6.7&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem7.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Fix a family of disjoint segments and draw a sample at scale $y$ with rate $p\text{.}$ For every dyadic $x\text{,}$
$\mathbb{E}\bigl[N_{x}(W_{y})\bigr]\leq p\,S_{x}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS3.p5" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A configuration of $W_{y}$ consists of a key of a segment $G$ and a pivot of $G\text{.}$ So a segment $G$
contributes to $N_{x}(W_{y})$ only through product boxes $I\times J$ such that $I$ meets $G$ and $J$
contains a pivot of $G\text{.}$ Let $t_{x}(G)$ be the number of scale-$x$ boxes that contain a pivot of $G\text{.}$
There are at most $|\mathcal{P}_{x}(G)|\,t_{x}(G)$ such product boxes. If $x\leq y\text{,}$ a scale-$x$ box that meets $G$ contains a pivot of $G$ exactly when the scale-$y$ box
containing it is selected, so $\mathbb{E}[t_{x}(G)]=p\,|\mathcal{P}_{x}(G)|\leq p\,|G|\text{.}$ If $x\geq y\text{,}$
a scale-$x$ box that contains a pivot of $G$ contains a selected scale-$y$ box that meets $G\text{,}$ so
$\mathbb{E}[t_{x}(G)]\leq p\,|\mathcal{P}_{y}(G)|\leq p\,|G|\text{.}$ In both cases
$\mathbb{E}\bigl[|\mathcal{P}_{x}(G)|\,t_{x}(G)\bigr]\leq p\,|G|\,|\mathcal{P}_{x}(G)|\text{,}$ and summing over
the segments gives the bound.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p6" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The rate alone gives one more bound, for every family. A product box $I\times J$ contains a
configuration of $W_{y}$ only if $J$ contains a pivot. If $x\leq y\text{,}$ this requires the scale-$y$ box
containing $J$ to be selected, so $\mathbb{E}[N_{x}(W_{y})]\leq p\,B_{x}^{2}\text{.}$ If $x\geq y\text{,}$ it requires
$J$ to contain a selected scale-$y$ box, and $p\,B_{y}$ scale-$y$ boxes are selected in expectation,
so $\mathbb{E}[N_{x}(W_{y})]\leq p\,B_{x}B_{y}\text{.}$ In both cases,&lt;/p&gt;
&lt;table id="S6.E1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\mathbb{E}[N_{x}(W_{y})]\ \leq\ p\,n^{2-x-\min\{x,y\}}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;td rowspan="1" class="ltx_eqn_cell ltx_eqn_eqno ltx_align_middle ltx_align_right"&gt;&lt;span class="ltx_tag ltx_tag_equation ltx_align_right"&gt;(6.1)&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p7" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Only the scales $x\leq x_{\star}\text{,}$ where $x_{\star}=a_{0}/(2-c)\text{,}$ require control of the segments. For dyadic $x\geq x_{\star}\text{,}$
$n^{cx}B_{x}^{2}=n^{2-(2-c)x}\leq n^{2-a_{0}}=n^{\beta}\text{,}$ so each of these scales contributes at most
$n^{\beta}$ to the bound of &lt;a href="#S6.Thmtheorem6" title="Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.6&lt;/span&gt;&lt;/a&gt; for any set of configurations.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem8" class="ltx_theorem ltx_theorem_definition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Definition 6.8&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt; &lt;/span&gt;(Profiles)&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem8.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A &lt;em class="ltx_emph ltx_font_italic"&gt;profile&lt;/em&gt; of a random family of segments is a function $f\colon[0,x_{\star}]\to\mathbb{R}$
with $\mathbb{E}[S_{x}]\leq 3n^{1+f(x)}$ at every dyadic $x\leq x_{\star}\text{.}$ For a function $f$ on
$[0,x_{\star}]\text{,}$ let $\varphi_{f}(x)=f(x)+cx-\delta$ and
$\psi_{y}(x)=a_{0}-(1-c)x-\min\{x,y\}\text{,}$ and let&lt;/p&gt;
&lt;table id="S6.Ex4" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$(\Phi f)(y)=\sup_{0\leq x\leq x_{\star}}\ \min\bigl\{\varphi_{f}(x),\,\psi_{y}(x)\bigr\}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p8" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The functions $\varphi_{f}$ and $\psi_{y}$ give two ways to keep the contribution of a scale $x$ to the
movement of a sample at scale $y$ at $O(n^{\beta})\text{:}$ through the dispersion, with rate at most $n^{-\varphi_{f}(x)}\text{,}$ or
through the rate alone, with rate at most $n^{-\psi_{y}(x)}\text{.}$ So $n^{-(\Phi f)(y)}$ is the largest rate for
which one of the two applies at every $x\leq x_{\star}$ (&lt;a href="#S6.Thmtheorem9" title="Lemma 6.9. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.9&lt;/span&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p9" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We use two facts about $x_{\star}\text{,}$ in &lt;a href="#S6.Thmtheorem10" title="Lemma 6.10. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.10&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S6.Thmtheorem11" title="Theorem 6.11. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.11&lt;/span&gt;&lt;/a&gt;. First,&lt;/p&gt;
&lt;table id="S6.E2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$a_{r-2}=\delta-c\,x_{\star}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;td rowspan="1" class="ltx_eqn_cell ltx_eqn_eqno ltx_align_middle ltx_align_right"&gt;&lt;span class="ltx_tag ltx_tag_equation ltx_align_right"&gt;(6.2)&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Indeed, &lt;a href="#S2.Thmtheorem5" title="Lemma 2.5. ‣ 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.5&lt;/span&gt;&lt;/a&gt; gives $\delta(1-q^{r})=1-q$ and $a_{r-2}=q^{r-1}\delta\text{,}$ and $c=2(1-q)$
and $2-c=2q\text{,}$ so&lt;/p&gt;
&lt;table id="S6.Ex5" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\delta-c\,x_{\star}=\delta-\frac{c\,(1-\delta)}{2-c}=\frac{\delta-(1-q)}{q}=\frac{\delta\,q^{r}}{q}=a_{r-2}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Second, $\delta\leq x_{\star}\text{.}$ This inequality is equivalent to $(1-q^{r})/(1-q)\geq 1+2q\text{,}$ which holds
for $r\geq 4$ because $q\geq\tfrac{3}{4}$ gives $q^{2}+q^{3}\geq q\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p10" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Let $f_{0}(x)=\min\{a_{0},1-x\}$ and $f_{j}=\Phi f_{j-1}$ for $1\leq j\leq r-2\text{.}$ Thus $f_{0}$ is the bound that the
splitters and the trivial bound $S_{x}\leq n^{2-x}$ give, and $f_{j}$ is the bound that we keep after round $j+1\text{.}$ &lt;a href="#alg4" title="In 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt; is
the instance of &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt; that draws one sample per dyadic scale.&lt;/p&gt;
&lt;/div&gt;
&lt;figure id="alg4" class="ltx_float ltx_float_algorithm ltx_framed ltx_framed_top"&gt;
&lt;figcaption class="ltx_caption"&gt;&lt;span class="ltx_tag ltx_tag_float"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Algorithm 4&lt;/span&gt; &lt;/span&gt; The multiscale algorithm&lt;/figcaption&gt;
&lt;div class="ltx_listing ltx_listing"&gt;
&lt;div id="alg4.l0" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Parameters:&amp;lt;/span&amp;gt; $d\geq 2\text{;}$ $r\geq 4\text{;}$ the functions $f_{0},\dots,f_{r-2}$ as above.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg4.l1" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;1:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $1$ (splitter).&amp;lt;/span&amp;gt; Lines &amp;lt;a href=&amp;quot;#alg1.l1&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;–&amp;lt;a href=&amp;quot;#alg1.l3&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;3&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg4.l2" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;2:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; $j=1,\dots,r-2$ &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;do&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg4.l3" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;3:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $j+1$ (refinement).&amp;lt;/span&amp;gt; For every dyadic $y\leq x_{\star}\text{,}$ draw a sample at scale
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$y$ with rate $n^{-f_{j}(y)}\text{,}$ independently.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg4.l4" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;4:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      For every such $y\text{,}$ visit $W_{y}$ by the route of &amp;lt;a href=&amp;quot;#S6.Thmtheorem6&amp;quot; title=&amp;quot;Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Lemma&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;6.6&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;, and join these routes end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to end.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="alg4.l5" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;5:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;      Update the state as in Line &amp;lt;a href=&amp;quot;#alg1.l7&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;7&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg4.l6" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;6:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg4.l7" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;7:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   &amp;lt;span class=&amp;quot;ltx_text ltx_font_bold&amp;quot;&amp;gt;Round $r$ (cleanup).&amp;lt;/span&amp;gt; Visit the required configurations by the route of &amp;lt;a href=&amp;quot;#S6.Thmtheorem6&amp;quot; title=&amp;quot;Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Lemma&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;6.6&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="alg4.l8" class="ltx_listingline"&gt;
&lt;span class="ltx_tag ltx_tag_listingline"&gt;&lt;span class="ltx_text" style="font-size:80%;"&gt;8:&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;   Output as in Line &amp;lt;a href=&amp;quot;#alg1.l10&amp;quot; title=&amp;quot;In Algorithm 1 ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;10&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; of &amp;lt;a href=&amp;quot;#alg1&amp;quot; title=&amp;quot;In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting&amp;quot; class=&amp;quot;ltx_ref&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;Algorithm&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;ltx_text ltx_ref_tag&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/figure&gt;
&lt;div id="S6.SS3.p11" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The next lemma is the inductive step of the analysis: it bounds the movement of one refinement round
and the profile of its output.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem9" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 6.9&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem9.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Let $f$ be a profile of the family entering a refinement round, and let $(\Phi f)(y)\geq 0$ at every
dyadic $y\leq x_{\star}\text{.}$ Suppose that the round draws, for every such $y\text{,}$ a sample at scale $y$ with
rate $n^{-(\Phi f)(y)}\text{,}$ independently, and visits $W_{y}$ by the route of &lt;a href="#S6.Thmtheorem6" title="Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.6&lt;/span&gt;&lt;/a&gt;. Then the
round has expected movement $O_{d}(n^{\beta}\log^{2}n)\text{,}$ and $\Phi f$ is a profile of its output.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS3.p12" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We bound the contribution of each scale to each sample, and then the profile of the output. Fix a dyadic
$y\leq x_{\star}\text{,}$ let $p=n^{-(\Phi f)(y)}\text{,}$ and fix a dyadic $x\text{.}$ We show that
$n^{cx}\,\mathbb{E}[N_{x}(W_{y})]\leq 3n^{\beta}\text{.}$ If $x\geq x_{\star}\text{,}$ this follows from
$N_{x}(W_{y})\leq B_{x}^{2}$ and $n^{cx}B_{x}^{2}\leq n^{\beta}\text{.}$ Let $x\leq x_{\star}\text{.}$ By the definition of
$\Phi\text{,}$ $p\leq n^{-\min\{\varphi_{f}(x),\psi_{y}(x)\}}\text{,}$ so $p\leq n^{-\varphi_{f}(x)}$ or
$p\leq n^{-\psi_{y}(x)}\text{.}$ In the first case, &lt;a href="#S6.Thmtheorem7" title="Lemma 6.7. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.7&lt;/span&gt;&lt;/a&gt; and the profile give&lt;/p&gt;
&lt;table id="S6.Ex6" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$n^{cx}\,\mathbb{E}[N_{x}(W_{y})]\ \leq\ n^{cx}\,p\,\mathbb{E}[S_{x}]\ \leq\ 3\,n^{cx-f(x)-cx+\delta+1+f(x)}\ =\ 3n^{\beta}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;In the second case, &lt;a href="#S6.E1" title="In 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(6.1)&lt;/span&gt;&lt;/a&gt; gives&lt;/p&gt;
&lt;table id="S6.Ex7" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$n^{cx}\,\mathbb{E}[N_{x}(W_{y})]\ \leq\ n^{cx-a_{0}+(1-c)x+\min\{x,y\}+2-x-\min\{x,y\}}\ =\ n^{2-a_{0}}\ =\ n^{\beta}.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;By &lt;a href="#S6.Thmtheorem6" title="Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.6&lt;/span&gt;&lt;/a&gt;, the route of this sample has expected movement
$O_{d}(n^{1/d}+n^{\beta}\log n)\text{,}$ since there are $O(\log n)$ dyadic $x\text{.}$ There are $O(\log n)$ samples,
which gives the bound on the movement.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p13" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For the output, &lt;a href="#S5.Thmtheorem8" title="Lemma 5.8. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.8&lt;/span&gt;&lt;/a&gt; shows that the refined segments of the sample at scale $y$ satisfy
$\mathbb{E}[S_{y}]\leq 3n/p=3n^{1+(\Phi f)(y)}\text{,}$ whatever the entering family. The output of the round
is obtained from them by splitting segments, so it satisfies the same bound.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p14" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The cleanup needs $\varphi_{f_{r-2}}\leq 0$ on $[0,x_{\star}]\text{,}$ which follows from two facts given by the next lemma:
the value of $f_{r-2}$ at $x_{\star}$ and the monotonicity of $\varphi_{f_{r-2}}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem10" class="ltx_theorem ltx_theorem_lemma"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Lemma 6.10&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem10.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For $1\leq j\leq r-2\text{,}$ the function $f_{j}$ is nonincreasing, $\varphi_{f_{j}}$ is nondecreasing, and
$f_{j}=a_{j}$ on $[\xi_{j},x_{\star}]\text{,}$ where $\xi_{j}=(a_{0}-a_{j})/(2-c)\text{.}$ Consequently $f_{j}\geq a_{j}\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS3.p15" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;We use induction on $j\text{.}$ For $j=1\text{,}$ recall that $\delta\leq x_{\star}\text{.}$ On $[0,\delta]$ we have $f_{0}=a_{0}\text{,}$ so
$\varphi_{f_{0}}(x)=1-2\delta+cx$ increases. On $[\delta,x_{\star}]$ we have $f_{0}(x)=1-x\text{,}$ so
$\varphi_{f_{0}}(x)=a_{0}-(1-c)x\geq\psi_{y}(x)\text{,}$ and the minimum in $\Phi$ is $\psi_{y}\text{,}$ which
decreases. So the supremum is attained on $[0,\delta]$ where $\varphi_{f_{0}}$ and $\psi_{y}$ cross. For
$y\geq\delta/2$ they cross at $x=\delta/2\text{,}$ and for $y\leq\delta/2$ they cross at $x=\delta-y\text{.}$ This gives&lt;/p&gt;
&lt;table id="S6.Ex8" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$f_{1}(y)=\begin{cases}1-(2-c)\delta-cy&amp;amp;\text{for }y\leq\delta/2,\\ 1-2\delta+c\delta/2&amp;amp;\text{for }y\geq\delta/2.\end{cases}$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Since $q=1-c/2\text{,}$ the second value equals $q\,a_{0}+c/2-\delta=a_{1}\text{,}$ and hence
$\xi_{1}=\delta/2\text{.}$ The formula shows that $f_{1}$ is nonincreasing and $\varphi_{f_{1}}$ is
nondecreasing.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p16" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For the step, let $f=f_{j}\text{,}$ $a=a_{j}\text{,}$ and $\xi=\xi_{j}\text{,}$ with $j\leq r-3\text{.}$ Since $f$ is nonincreasing
and $\varphi_{f}$ is nondecreasing, $\varphi_{f}$ is $c$-Lipschitz. The function $\Phi f$ is
nonincreasing because $\psi_{y}$ decreases in $y\text{.}$ To see that $\varphi_{\Phi f}$ is nondecreasing, let
$z&amp;gt;y\text{,}$ let $\Delta=z-y\text{,}$ and for $x\in[0,x_{\star}]$ let $x^{\prime}=\max\{x-\Delta,0\}\text{.}$ Then
$\varphi_{f}(x^{\prime})\geq\varphi_{f}(x)-c\Delta\text{.}$ Moreover $\psi_{z}(x^{\prime})\geq\psi_{y}(x)-c\Delta\text{:}$ for
$x&amp;lt;\Delta$ we have $\psi_{z}(0)=a_{0}\geq\psi_{y}(x)\text{,}$ and for $x\geq\Delta$ this follows from
$\min\{x-\Delta,z\}\leq\min\{x,y\}+\Delta\text{.}$ Hence $(\Phi f)(z)\geq(\Phi f)(y)-c\Delta\text{,}$ which is the
claim.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p17" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For the value on the interval, let $a^{\prime}=q\,a+c/2-\delta$ and $\xi^{\prime}=(a_{0}-a^{\prime})/(2-c)\text{.}$ Since $c/2=1/D\text{,}$
&lt;a href="#S2.E2" title="In 2.2 The Scale Schedule ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(2.2)&lt;/span&gt;&lt;/a&gt; gives $a^{\prime}=a_{j+1}\text{,}$ so $a&amp;gt;a^{\prime}&amp;gt;0$ and $\xi&amp;lt;\xi^{\prime}&amp;lt;x_{\star}\text{.}$ Thus $f(\xi^{\prime})=a\text{,}$ and a
direct computation from $a_{0}=1-\delta$ and $q+c/2=1$ gives $a+c\xi^{\prime}-\delta=a^{\prime}\text{.}$ Hence, for $y\geq\xi^{\prime}\text{,}$&lt;/p&gt;
&lt;table id="S6.Ex9" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\varphi_{f}(\xi^{\prime})=a^{\prime}=a_{0}-(2-c)\xi^{\prime}=\psi_{y}(\xi^{\prime}).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Since $\varphi_{f}\leq a^{\prime}$ to the left of $\xi^{\prime}$ and $\psi_{y}\leq a^{\prime}$ to the right of it, we get
$(\Phi f)(y)=a^{\prime}$ for $y\in[\xi^{\prime},x_{\star}]\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p18" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Finally, $f_{j}\geq f_{j}(x_{\star})=a_{j}$ because $f_{j}$ is nonincreasing.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p19" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Since $f_{j}\geq a_{j}&amp;gt;0\text{,}$ the rates of &lt;a href="#alg4" title="In 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt; lie in $(0,1)\text{,}$ and &lt;a href="#S6.Thmtheorem9" title="Lemma 6.9. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.9&lt;/span&gt;&lt;/a&gt;
applies to round $j+1$ with $f=f_{j-1}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.Thmtheorem11" class="ltx_theorem ltx_theorem_theorem"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Theorem 6.11&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S6.Thmtheorem11.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $d\geq 2$ and $r\geq 4\text{,}$ &lt;a href="#alg4" title="In 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4&lt;/span&gt;&lt;/a&gt; sorts with expected movement
$O_{d,r}\bigl(n^{\beta_{r}^{(d)}}\log^{2}n\bigr)$ on every input, and its output is correct for every
outcome of its coins. Hence $M_{r}^{(d)}(n)=O_{d,r}\bigl(n^{\beta_{r}^{(d)}}\log^{2}n\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S6.SS3.p20" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Correctness was shown after &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;. We bound the rounds in turn. Round $1$ has movement
$O(n^{\beta})\text{.}$ By &lt;a href="#S5.Thmtheorem7" title="Lemma 5.7. ‣ 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.7&lt;/span&gt;&lt;/a&gt; with $s=\lceil n/b_{0}\rceil\text{,}$ its output satisfies
$\mathbb{E}[S_{0}]\leq 3nb_{0}=3n^{1+a_{0}}\text{.}$ Since $S_{x}\leq S_{0}$ and $S_{x}\leq n^{2-x}\text{,}$ the function
$f_{0}$ is a profile of this family.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p21" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;By &lt;a href="#S6.Thmtheorem9" title="Lemma 6.9. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemmas&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.9&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S6.Thmtheorem10" title="Lemma 6.10. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;6.10&lt;/span&gt;&lt;/a&gt;, for $1\leq j\leq r-2\text{,}$ round $j+1$ has expected movement
$O_{d}(n^{\beta}\log^{2}n)\text{,}$ and $f_{j}$ is a profile of its output.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p22" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;It remains to bound the cleanup, whose required configurations we call $W\text{.}$ At a dyadic $x\text{,}$ a product box of
two scale-$x$ boxes contains a configuration of $W$ only if a segment meets both boxes, so
$N_{x}(W)\leq\sum_{G}|\mathcal{P}_{x}(G)|^{2}\leq S_{x}\text{.}$ Also $N_{x}(W)\leq B_{x}^{2}\text{.}$ Let $x\leq x_{\star}\text{.}$
Since $\varphi_{f_{r-2}}$ is nondecreasing and $f_{r-2}(x_{\star})=a_{r-2}\text{,}$ &lt;a href="#S6.E2" title="In 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Equation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;(6.2)&lt;/span&gt;&lt;/a&gt; gives&lt;/p&gt;
&lt;table id="S6.Ex10" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$\varphi_{f_{r-2}}(x)\ \leq\ \varphi_{f_{r-2}}(x_{\star})\ =\ a_{r-2}+c\,x_{\star}-\delta\ =\ 0.$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;That is, $cx+f_{r-2}(x)\leq\delta\text{,}$ so $n^{cx}\,\mathbb{E}[S_{x}]\leq 3n^{cx+1+f_{r-2}(x)}\leq 3n^{\beta}\text{.}$
For $x\geq x_{\star}\text{,}$ we have $n^{cx}B_{x}^{2}\leq n^{\beta}\text{.}$ By &lt;a href="#S6.Thmtheorem6" title="Lemma 6.6. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.6&lt;/span&gt;&lt;/a&gt;, the cleanup has
expected movement $O_{d}(n^{\beta}\log n)\text{,}$ since there are $O(\log n)$ dyadic $x\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S6.SS3.p23" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;Summing over the $r$ rounds gives $\mathbb{E}[\mathrm{Move}]=O_{d,r}(n^{\beta}\log^{2}n)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt;.&lt;/h6&gt;
&lt;div id="S6.SS3.p24" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;For finite $r\text{,}$ the lower bound is &lt;a href="#S4.Thmtheorem1" title="Theorem 4.1 (Lower Bound). ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.1&lt;/span&gt;&lt;/a&gt;. For the upper bounds, &lt;a href="#S5.Thmtheorem11" title="Theorem 5.11. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.11&lt;/span&gt;&lt;/a&gt; treats $d=1\text{.}$ For
$d\geq 2\text{,}$ &lt;a href="#S6.Thmtheorem1" title="Proposition 6.1. ‣ 6.1 At Most Two Rounds ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.1&lt;/span&gt;&lt;/a&gt; treats $r\leq 2\text{,}$ &lt;a href="#S6.Thmtheorem4" title="Theorem 6.4. ‣ 6.2 Two Samples at 𝑟=3 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.4&lt;/span&gt;&lt;/a&gt; treats $r=3\text{,}$ and &lt;a href="#S6.Thmtheorem11" title="Theorem 6.11. ‣ 6.3 Multiscale Refinement for 𝑟≥4 ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.11&lt;/span&gt;&lt;/a&gt; treats
$r\geq 4\text{.}$ These algorithms are explicit and run in polynomial time. Those for $r=1$ are deterministic routes, and
the others are instances of &lt;a href="#alg1" title="In 5.3 The Sampling Algorithm ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Algorithm&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1&lt;/span&gt;&lt;/a&gt;. This gives $M_{r}^{(d)}(n)=\widetilde{\Theta}\bigl(n^{\beta_{r}^{(d)}}\bigr)$ for
finite $r\text{.}$ For $r=\infty\text{,}$ Propositions &lt;a href="#S4.Thmtheorem5" title="Proposition 4.5. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;4.5&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S5.Thmtheorem3" title="Proposition 5.3. ‣ 5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;5.3&lt;/span&gt;&lt;/a&gt; give $M_{\infty}^{(d)}(n)=\Theta_{d}\bigl(n^{1+1/(2d)}\bigr)\text{,}$
and the algorithm of &lt;a href="#S5.Thmtheorem3" title="Proposition 5.3. ‣ 5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.3&lt;/span&gt;&lt;/a&gt; is deterministic, explicit, and runs in polynomial time. The order is exact on the line by
&lt;a href="#S4.Thmtheorem12" title="Theorem 4.12. ‣ 4.4 Exact Order on the Line ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorems&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.12&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S5.Thmtheorem11" title="Theorem 5.11. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;5.11&lt;/span&gt;&lt;/a&gt; and for $r\leq 2$ by &lt;a href="#S4.Thmtheorem4" title="Proposition 4.4. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.4&lt;/span&gt;&lt;/a&gt; together with
&lt;a href="#S5.Thmtheorem11" title="Theorem 5.11. ‣ 5.4 The Upper Bound on the Line ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.11&lt;/span&gt;&lt;/a&gt; and &lt;a href="#S6.Thmtheorem1" title="Proposition 6.1. ‣ 6.1 At Most Two Rounds ‣ 6 Higher Dimensions ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;6.1&lt;/span&gt;&lt;/a&gt;.
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="S7" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="multiple-heads"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;7 &lt;/span&gt;Multiple Heads&lt;/h2&gt;
&lt;div id="S7.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;So far the model has two heads. With $k\geq 2$ heads on $[m]^{d}\text{,}$ a configuration is a point of
$([m]^{d})^{k}\text{,}$ a route is a sequence of configurations at consecutive $\ell_{1}$ distance $1\text{,}$ and the
outcome at a configuration is the rank order of the distinct keys under the heads. Rounds, correctness,
and the complexity $M_{r}^{(k,d)}(n)$ are defined as in &lt;a href="#S2.Thmtheorem1" title="Definition 2.1 (The Movement Model). ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Definition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.1&lt;/span&gt;&lt;/a&gt;, so $M_{r}^{(2,d)}=M_{r}^{(d)}\text{.}$ Extra heads
can only help: an algorithm may leave them at the start and ignore what they read, so
$M_{r}^{(k,d)}\leq M_{r}^{(d)}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S7.p2" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;A fixed number of heads nevertheless changes the complexity by at most a constant factor. Two keys are
compared at every configuration that places two heads on them. So all that a $k$-head algorithm learns is read along the
$\binom{k}{2}$ projections of its route to pairs of heads, and each projection, with consecutive repetitions deleted, is a route in the same comparison grid $[m]^{D}\text{.}$&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S7.Thmtheorem1" class="ltx_theorem ltx_theorem_proposition"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Proposition 7.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S7.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every fixed $k\geq 2$ and $d\text{,}$ and every $r\in\{1,2,\dots\}\cup\{\infty\}\text{,}$
$M_{r}^{(k,d)}(n)=\Theta_{d,r,k}\bigl(M_{r}^{(d)}(n)\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ltx_proof"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_font_italic ltx_title_proof"&gt;Proof.&lt;/h6&gt;
&lt;div id="S7.p3" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The upper bound on $M_{r}^{(k,d)}$ was shown above. For the lower bound, a two-head algorithm simulates a given $k$-head
algorithm one pair of heads at a time when $r$ is finite, and for $r=\infty$ we bound the movement
directly. Let $r$ be finite. A round of the $k$-head algorithm commits a route $z_{0},\dots,z_{L}\text{.}$ Let $L^{(i)}$ be the movement of head $i$ on this route, so that
$L=\sum_{i}L^{(i)}\text{.}$ For a pair $i&amp;lt;j\text{,}$ let $R_{ij}$ be the sequence of positions of heads $i$ and $j$
along the route, with consecutive repetitions deleted. It is a route in $[m]^{D}$ of movement at most
$L^{(i)}+L^{(j)}\text{.}$ In one round of its own, the simulator runs the routes $R_{ij}$ in turn. These runs
have total movement at most $\sum_{i&amp;lt;j}(L^{(i)}+L^{(j)})=(k-1)L\text{,}$ because each head lies in $k-1$
pairs. The moves from one run to the next add $O_{d,k}(n^{1/d})$ per round. The pairwise outcomes
determine the rank order of the keys under the heads at every configuration of the route, so the
simulator knows all outcomes of the round and can compute the next route. Hence&lt;/p&gt;
&lt;table id="S7.Ex1" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$M_{r}^{(d)}(n)\ \leq\ (k-1)\,M_{r}^{(k,d)}(n)+O_{d,r,k}\bigl(n^{1/d}\bigr).$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;Since $M_{r}^{(d)}(n)=\Omega_{d}\bigl(n^{1+1/(2d)}\bigr)$ by &lt;a href="#S4.Thmtheorem5" title="Proposition 4.5. ‣ 4.2 Two Rounds and the Fully Adaptive Bound ‣ 4 The Lower Bound ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;4.5&lt;/span&gt;&lt;/a&gt; and $1+1/(2d)&amp;gt;1/d\text{,}$ the
additive term is $o\bigl(M_{r}^{(d)}(n)\bigr)\text{,}$ and the proposition follows.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S7.p4" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The simulation adds a term in every round, so for $r=\infty$ we argue directly and bound the movement
of an algorithm with any finite number of rounds. By Yao’s principle, fix a deterministic $k$-head
algorithm that is correct on every input, and let the input be uniform. Let $\rho=\Theta_{d}(n^{1/(2d)})$ be
the radius of &lt;a href="#S3.Thmtheorem3" title="Lemma 3.3. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Lemma&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.3&lt;/span&gt;&lt;/a&gt; at scale $2\text{,}$ whose cells join the ranks $2i-1$ and $2i\text{.}$ With probability at least $7/8\text{,}$ there is a set
$W\subseteq\mathcal{C}_{2}$ of at least $\tfrac{1}{2}\lfloor n/2\rfloor$ cells that are pairwise more than
$\rho$ apart. For every cell $\{u,v\}$ of $W\text{,}$ some configuration of the execution places two heads on
$u$ and $v\text{.}$ Otherwise, exchanging their two consecutive ranks changes no outcome, so the algorithm gives
the same output on two inputs with different orders. For a pair $i&amp;lt;j\text{,}$ let $W_{ij}\subseteq W$ be the set
of cells that heads $i$ and $j$ visit together, and let $\widehat{L}^{(i)}$ be the total movement of head
$i\text{.}$ By &lt;a href="#S2.Thmtheorem3" title="Observation 2.3. ‣ 2.1 The Model ‣ 2 Preliminaries ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Observation&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;2.3&lt;/span&gt;&lt;/a&gt;(b), the positions of heads $i$ and $j$ over the whole execution, with
consecutive repetitions and diagonal configurations deleted, form a sequence of cells of $\operatorname{dist}$-length at
most $\widehat{L}^{(i)}+\widehat{L}^{(j)}\text{.}$ By &lt;a href="#S3.Thmtheorem2" title="Fact 3.2. ‣ 3 Geometry of the Comparison Grid ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Fact&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;3.2&lt;/span&gt;&lt;/a&gt;, if $|W_{ij}|\geq 2\text{,}$ then
$\widehat{L}^{(i)}+\widehat{L}^{(j)}\geq\tfrac{1}{2}|W_{ij}|\rho\text{.}$ Summing over the pairs, and noting that the
pairs with $|W_{ij}|\leq 1$ cover at most $\binom{k}{2}$ cells, gives&lt;/p&gt;
&lt;table id="S7.Ex2" class="ltx_equation ltx_eqn_table"&gt;
&lt;tbody&gt;&lt;tr class="ltx_equation ltx_eqn_row ltx_align_baseline"&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padleft"&gt;&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_align_center"&gt;$$(k-1)\,\mathrm{Move}\ =\ \sum_{i&amp;lt;j}\bigl(\widehat{L}^{(i)}+\widehat{L}^{(j)}\bigr)\ \geq\ \frac{\rho}{2}\Bigl(\frac{1}{2}\Bigl\lfloor\frac{n}{2}\Bigr\rfloor-\binom{k}{2}\Bigr)$$&lt;/td&gt;
&lt;td class="ltx_eqn_cell ltx_eqn_center_padright"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="ltx_p"&gt;on this event. Hence $\mathbb{E}[\mathrm{Move}]=\Omega_{d,k}\bigl(n^{1+1/(2d)}\bigr)\text{,}$ with a constant
that does not depend on the number of rounds, so
$M_{\infty}^{(k,d)}(n)=\Omega_{d,k}\bigl(n^{1+1/(2d)}\bigr)\text{.}$ With &lt;a href="#S5.Thmtheorem3" title="Proposition 5.3. ‣ 5.2 The Fully Adaptive Bound ‣ 5 Routing and the Sampling Algorithm ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Proposition&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;5.3&lt;/span&gt;&lt;/a&gt;, this is
$\Omega_{d,k}\bigl(M_{\infty}^{(d)}(n)\bigr)\text{.}$
∎&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="S8" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="discussion"&gt;
&lt;span class="ltx_tag ltx_tag_section"&gt;8 &lt;/span&gt;Discussion&lt;/h2&gt;
&lt;div id="S8.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;In the interior $d\geq 2\text{,}$ $3\leq r&amp;lt;\infty\text{,}$ the two bounds of &lt;a href="#S1.Thmtheorem1" title="Theorem 1.1 (Movement Exponent). ‣ 1.1 Our Results ‣ 1 Introduction ‣ The Movement Complexity of Sorting" class="ltx_ref"&gt;&lt;span class="ltx_text ltx_ref_tag"&gt;Theorem&lt;/span&gt; &lt;span class="ltx_text ltx_ref_tag"&gt;1.1&lt;/span&gt;&lt;/a&gt; differ by a factor $O_{d,r}(\log^{3}n)\text{,}$
and this gap is the one question the theorem leaves open. The lower bound loses a factor $\log n$ throughout the
interior, and the upper bound loses a factor $\log^{2}n$ for $r\geq 4$ and nothing at $r=3\text{.}$ We conjecture that both
losses can be removed.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="S8.Thmtheorem1" class="ltx_theorem ltx_theorem_conjecture"&gt;
&lt;h6 class="ltx_title ltx_runin ltx_title_theorem"&gt;
&lt;span class="ltx_tag ltx_tag_theorem"&gt;&lt;span class="ltx_text ltx_font_bold"&gt;Conjecture 8.1&lt;/span&gt;&lt;/span&gt;&lt;span class="ltx_text ltx_font_bold"&gt;.&lt;/span&gt;
&lt;/h6&gt;
&lt;div id="S8.Thmtheorem1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;For every $d\geq 2$ and $3\leq r&amp;lt;\infty\text{,}$ $M_{r}^{(d)}(n)=\Theta_{d,r}\bigl(n^{\beta_{r}^{(d)}}\bigr)\text{.}$&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="Sx1" class="ltx_section"&gt;
&lt;h2 class="ltx_title ltx_title_section" id="ai-methodology-statement"&gt;AI Methodology Statement&lt;/h2&gt;
&lt;div id="Sx1.p1" class="ltx_para"&gt;
&lt;p class="ltx_p"&gt;The author used ChatGPT and Codex from OpenAI and Claude Code from Anthropic to help organize and polish the
exposition of this paper, based on the author’s own drafts. The same tools assisted in surveying the related
literature, in understanding the current state of research in this area, in flagging possible errors in draft
proofs, and in suggesting simpler proofs of some statements. The author checked, revised, and finalized every
statement, proof, and reference. The author takes full responsibility for the content of the submission.&lt;/p&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="bib" class="ltx_bibliography"&gt;
&lt;h2 class="ltx_title ltx_title_bibliography" id="references"&gt;References&lt;/h2&gt;
&lt;ul class="ltx_biblist"&gt;
&lt;li id="bib.bib1" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[AA88]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Noga Alon and Yossi Azar.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting, approximate sorting, and searching in rounds.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Discrete Mathematics&lt;/span&gt;, 1(3):269–280, 1988.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib2" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[AAV86]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Noga Alon, Yossi Azar, and Uzi Vishkin.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Tight complexity bounds for parallel comparison sorting.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;27th Annual Symposium on Foundations of Computer Science
(FOCS)&lt;/span&gt;, pages 502–510, 1986.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib3" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[AV88]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Alok Aggarwal and Jeffrey Scott Vitter.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The input/output complexity of sorting and related problems.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Communications of the ACM&lt;/span&gt;, 31(9):1116–1127, 1988.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib4" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BABP03]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Amir M. Ben-Amram, Omer Berkman, and Holger Petersen.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Element distinctness on one-tape Turing machines: a complete
solution.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Acta Informatica&lt;/span&gt;, 40(2):81–94, 2003.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib5" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BB90]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Béla Bollobás and Graham Brightwell.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Parallel selection with high probability.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Discrete Mathematics&lt;/span&gt;, 3(1):21–31, 1990.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib6" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BC82]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Allan Borodin and Stephen A. Cook.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;A time-space tradeoff for sorting on a general sequential model of
computation.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Computing&lt;/span&gt;, 11(2):287–297, 1982.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib7" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Bea91]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Paul Beame.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;A general sequential time-space tradeoff for finding unique elements.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Computing&lt;/span&gt;, 20(2):270–277, 1991.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib8" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BG89]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Dimitris Bertsimas and Michelangelo Grigni.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Worst-case examples for the spacefilling curve heuristic for the
Euclidean traveling salesman problem.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Operations Research Letters&lt;/span&gt;, 8(5):241–244, 1989.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib9" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BHH59]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Jillian Beardwood, J. H. Halton, and J. M. Hammersley.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The shortest path through many points.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Proceedings of the Cambridge Philosophical Society&lt;/span&gt;,
55(4):299–327, 1959.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib10" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BMP19]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Mark Braverman, Jieming Mao, and Yuval Peres.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorted top-$k$ in rounds.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;32nd Annual Conference on Learning Theory (COLT)&lt;/span&gt;, volume 99
of &lt;span class="ltx_text ltx_font_italic"&gt;Proceedings of Machine Learning Research&lt;/span&gt;, pages 342–382, 2019.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib11" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BR16]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Indranil Banerjee and Dana Richards.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting under forbidden comparisons.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;15th Scandinavian Symposium and Workshops on Algorithm Theory
(SWAT)&lt;/span&gt;, volume 53 of &lt;span class="ltx_text ltx_font_italic"&gt;LIPIcs&lt;/span&gt;, pages 22:1–22:13, 2016.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;arXiv:1508.03698.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib12" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[BT83]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Béla Bollobás and Andrew Thomason.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Parallel sorting.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Discrete Applied Mathematics&lt;/span&gt;, 6(1):1–11, 1983.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib13" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[CFG&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;02]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Moses Charikar, Ronald Fagin, Venkatesan Guruswami, Jon Kleinberg, Prabhakar
Raghavan, and Amit Sahai.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Query strategies for priced information.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Journal of Computer and System Sciences&lt;/span&gt;, 64(4):785–819, 2002.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib14" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[DMS91]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Martin Dietzfelbinger, Wolfgang Maass, and Georg Schnitger.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The complexity of matrix transposition on one-tape off-line Turing
machines.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Theoretical Computer Science&lt;/span&gt;, 82(1):113–129, 1991.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib15" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Few55]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
L. Few.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The shortest path and the shortest road through $n$ points.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Mathematika&lt;/span&gt;, 2(2):141–144, 1955.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib16" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[FHLS19]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Alireza Farhadi, MohammadTaghi Hajiaghayi, Kasper Green Larsen, and Elaine Shi.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Lower bounds for external memory integer sorting via network coding.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;51st Annual ACM Symposium on Theory of Computing (STOC)&lt;/span&gt;,
pages 997–1008, 2019.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;arXiv:1811.01313.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib17" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Fil24]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Arnold Filtser.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Scattering and sparse partitions, and their applications.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;ACM Transactions on Algorithms&lt;/span&gt;, 20(4):30:1–30:42, 2024.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;arXiv:2001.04447.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib18" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[FS89]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Michael L. Fredman and Michael E. Saks.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The cell probe complexity of dynamic data structures.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;21st Annual ACM Symposium on Theory of Computing (STOC)&lt;/span&gt;,
pages 345–354, 1989.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib19" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[GHR06]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Anupam Gupta, Mohammad T. Hajiaghayi, and Harald Räcke.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Oblivious network design.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;17th Annual ACM-SIAM Symposium on Discrete Algorithms
(SODA)&lt;/span&gt;, pages 970–979, 2006.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib20" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[GJ24]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Mayank Goswami and Riko Jacob.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;An algorithm for bichromatic sorting with polylog competitive ratio.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;15th Innovations in Theoretical Computer Science Conference
(ITCS)&lt;/span&gt;, volume 287 of &lt;span class="ltx_text ltx_font_italic"&gt;LIPIcs&lt;/span&gt;, pages 56:1–56:17, 2024.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib21" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[GK01]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Anupam Gupta and Amit Kumar.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting and selection with structured costs.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;42nd Annual Symposium on Foundations of Computer Science
(FOCS)&lt;/span&gt;, pages 416–425, 2001.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib22" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[GK05]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Anupam Gupta and Amit Kumar.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Where’s the winner? Max-finding and sorting with metric costs.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;Approximation, Randomization and Combinatorial Optimization
(APPROX/RANDOM)&lt;/span&gt;, volume 3624 of &lt;span class="ltx_text ltx_font_italic"&gt;Lecture Notes in Computer Science&lt;/span&gt;,
pages 74–85. Springer, 2005.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib23" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[HH82]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Roland Häggkvist and Pavol Hell.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting and merging in rounds.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Algebraic and Discrete Methods&lt;/span&gt;, 3(4):465–473,
1982.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib24" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[HKK11]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Zhiyi Huang, Sampath Kannan, and Sanjeev Khanna.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Algorithms for the generalized sorting problem.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;52nd Annual Symposium on Foundations of Computer Science
(FOCS)&lt;/span&gt;, pages 738–747, 2011.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib25" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[HKL06]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Mohammad T. Hajiaghayi, Robert Kleinberg, and Tom Leighton.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Improved lower and upper bounds for universal TSP in planar
metrics.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;17th Annual ACM-SIAM Symposium on Discrete Algorithms
(SODA)&lt;/span&gt;, pages 649–658, 2006.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib26" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Jai88]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Patrick Jaillet.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;A priori solution of a traveling salesman problem in which a random
subset of the customers are visited.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Operations Research&lt;/span&gt;, 36(6):929–936, 1988.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib27" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[JLN&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;05]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Lujun Jia, Guolong Lin, Guevara Noubir, Rajmohan Rajaraman, and Ravi Sundaram.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Universal approximations for TSP, Steiner tree, and set cover.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;37th Annual ACM Symposium on Theory of Computing (STOC)&lt;/span&gt;,
pages 386–395, 2005.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib28" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[KN21]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
William Kuszmaul and Shyam Narayanan.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Stochastic and worst-case generalized sorting revisited.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;62nd Annual Symposium on Foundations of Computer Science
(FOCS)&lt;/span&gt;, pages 1056–1067, 2021.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;arXiv:2111.07222.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib29" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Kra26]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Cosmas Kravaris.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Lower bounds for the universal TSP on the plane.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;2026 Annual ACM-SIAM Symposium on Discrete Algorithms
(SODA)&lt;/span&gt;, pages 1–9, 2026.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;arXiv:2412.16448.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib30" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[LL04]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Zongpeng Li and Baochun Li.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Network coding: the case of multiple unicast sessions.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;42nd Allerton Conference on Communication, Control, and
Computing&lt;/span&gt;, 2004.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib31" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[LO94]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Alejandro López-Ortiz.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;New lower bounds for element distinctness on a one-tape Turing
machine.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Information Processing Letters&lt;/span&gt;, 51(6):311–314, 1994.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib32" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[MNSW98]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Peter Bro Miltersen, Noam Nisan, Shmuel Safra, and Avi Wigderson.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;On data structures and asymmetric communication complexity.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Journal of Computer and System Sciences&lt;/span&gt;, 57(1):37–49, 1998.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib33" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[MS86]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Wolfgang Maass and Georg Schnitger.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;An optimal lower bound for Turing machines with one work tape and a
two-way input tape.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;Structure in Complexity Theory&lt;/span&gt;, volume 223 of &lt;span class="ltx_text ltx_font_italic"&gt;Lecture
Notes in Computer Science&lt;/span&gt;, pages 249–264. Springer, 1986.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib34" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[PB89]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Loren K. Platzman and John J. Bartholdi, III.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Spacefilling curves and the planar travelling salesman problem.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Journal of the ACM&lt;/span&gt;, 36(4):719–737, 1989.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib35" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Pet08]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Holger Petersen.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Element distinctness and sorting on one-tape off-line Turing
machines.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;34th Conference on Current Trends in Theory and Practice of
Computer Science (SOFSEM)&lt;/span&gt;, volume 4910 of &lt;span class="ltx_text ltx_font_italic"&gt;Lecture Notes in Computer
Science&lt;/span&gt;, pages 406–417. Springer, 2008.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib36" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Pip87]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Nicholas Pippenger.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting and selecting in rounds.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Computing&lt;/span&gt;, 16(6):1032–1038, 1987.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib37" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Ste81]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
J. Michael Steele.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Subadditive Euclidean functionals and nonlinear growth in geometric
probability.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;The Annals of Probability&lt;/span&gt;, 9(3):365–376, 1981.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib38" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Tho83]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Clark D. Thompson.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;The VLSI complexity of sorting.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;IEEE Transactions on Computers&lt;/span&gt;, C-32(12):1171–1184, 1983.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib39" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[TK77]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
C. D. Thompson and H. T. Kung.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Sorting on a mesh-connected parallel computer.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Communications of the ACM&lt;/span&gt;, 20(4):263–271, 1977.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib40" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Val75]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Leslie G. Valiant.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Parallelism in comparison problems.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;SIAM Journal on Computing&lt;/span&gt;, 4(3):348–355, 1975.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib41" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Yao77]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Andrew Chi-Chih Yao.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Probabilistic computations: toward a unified measure of complexity.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;In &lt;span class="ltx_text ltx_font_italic"&gt;18th Annual Symposium on Foundations of Computer Science
(FOCS)&lt;/span&gt;, pages 222–227, 1977.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib42" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[YDI&lt;sup class="ltx_sup"&gt;+&lt;/sup&gt;15]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Katsuhisa Yamanaka, Erik D. Demaine, Takehiro Ito, Jun Kawahara, Masashi
Kiyomi, Yoshio Okamoto, Toshiki Saitoh, Akira Suzuki, Kei Uchizawa, and
Takeaki Uno.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Swapping labeled tokens on graphs.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Theoretical Computer Science&lt;/span&gt;, 586:81–94, 2015.
&lt;/span&gt;
&lt;/li&gt;
&lt;li id="bib.bib43" class="ltx_bibitem"&gt;
&lt;span class="ltx_tag ltx_role_refnum ltx_tag_bibitem"&gt;[Yuk98]&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;
Joseph E. Yukich.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;&lt;span class="ltx_text ltx_font_italic"&gt;Probability Theory of Classical Euclidean Optimization
Problems&lt;/span&gt;, volume 1675 of &lt;span class="ltx_text ltx_font_italic"&gt;Lecture Notes in Mathematics&lt;/span&gt;.
&lt;/span&gt;
&lt;span class="ltx_bibblock"&gt;Springer, 1998.
&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;&lt;div class="ltx_rdf" about="" property="dcterms:creator" content="Sichen Wang"&gt;&lt;/div&gt;
&lt;div class="ltx_rdf" about="" property="dcterms:title" content="The Movement Complexity of Sorting"&gt;&lt;/div&gt;
&lt;/article&gt;</description></item></channel></rss>