three papers and a companion note on disorder and search
how much does order buy?
jonathan r. landers
an array can be nearly sorted without telling us where its disorder lies. the first paper asks what a bound on disorder alone can guarantee. a companion note checks how often that bound helps under uniform shuffling. the second paper studies repeated searches; the third studies routing queries across locally sorted machines.
the shared measure
\[V(A)=\frac12\sum_{i=1}^{n}\bigl(\operatorname{rank}_A(a_i)-i\bigr)^2\]
the papers and companion note
three papers / one note
01 / one search
disorder potential and the cost of search
a limit \(V(A)\le E\) bounds how far a key can sit from its sorted position. a modified binary search ends with a short scan; a hidden minimum shows that the scan can be necessary.
tight worst-case cost
\[Q^*(n,E)=\Theta\!\left(\log n+\min\{n,\sqrt E\}\right)\]
families with the same potential budget can place disorder differently, so the budget alone does not describe every useful search feature.
companion note / after paper 01
potential across random permutations
an exact histogram for all \(9!\) orderings shows the shape of the same potential used in paper 01. exact moments and a tail bound then show how often a chosen disorder budget covers a uniform shuffle.
the typical uniform shuffle
\[\mathbb E V_n\sim n^3/12,\qquad E_{\mathrm{sat}}\sim n^2/2\]
most uniform shuffles eventually lie above the point where a scalar potential budget narrows the search window. this sets the context for paper 02's preprocessing tradeoff and for models that favor nearly sorted arrays.
02 / repeated search
search under a disorder budget
for \(q\) searches on one fixed array, preprocessing becomes an investment. we can search each time, build an index from the displacement bound, or sort adaptively using the potential's inversion bound.
a reusable upper bound
\[\begin{aligned}
T_q^*(n,E)=O\bigl(&q\log n+\\
&\min\{qR_E,\;n\log(R_E+1),\\
&\qquad n[1+\log(1+E/n)]\}\bigr)
\end{aligned}\]
here \(R_E=1+D_E\), with \(D_E\) the displacement bound from \(E\). the potential also bounds inversions, making a cheaper index possible for nearly sorted arrays. learned hints help when comparisons verify their claims.
03 / distributed search
from rank displacement to machine range overlap
machines sort their own blocks and route each query to ranges that might contain its key. the paper asks how many machine ranges can overlap when the concatenated data have a bounded rank-displacement potential.
an absent-query overlap bound
\[k(y)\le 3+\left(\frac{24E}{b^2}\right)^{1/3}\]
here \(b\) is the number of keys per machine. a paired-crossing bound sharpens the finite count, and an order-invariant mixing potential removes disorder caused only by moving whole blocks. the paper also compares range routing with a global merge.
the through line
disorder limits what search must face. the permutation note shows that typical uniform shuffles are too disordered for the scalar budget to narrow the search window. location information, reusable preprocessing, and the overlap of machine ranges matter when the array has more favorable structure.