Theorem (Murphy, 2002). There are infinitely many minimal non-two-stack-sortable permutations.
Theorem (Murphy, 2002). The converse holds: if $\pi$ admits an encoding satisfying compatibility, coupling, and transitivity, then $\pi$ is sortable.
Conjecture (Murphy, 2002). Transitivity is unnecessary: compatibility and coupling alone characterize two-stack sortability.
Pantone and V (2026). The conjecture is false.
These fourteen permutations satisfy $CC$ but are not sortable by two stacks in series.
Theorem (Pantone and V, 2026). If $\pi$ ends in $1$, then $\pi$ is sortable by two stacks in series if and only if $CC(\pi)$ is satisfiable.
To sort all permutations of length $N$, we need between $\log_4 N$ and $\log_2 N$ stacks.
What is the true rate of growth?
Theorem (Atkinson, 1992). For every $t$, every shortest permutation that is not sortable by $t$ stacks in series ends in $1$.
Pantone and V (2026). We attack the remaining search in two complementary directions.
Pantone and V (2026). Our searches have found 7,354 minimal permutations of length $22$ that are not sortable by three stacks in series.
At length $21$, however, we have found one—and only one.
$\pi = 6\,3\,12\,8\,17\,5\,2\,11\,7\,19\,14\,10\,4\,18\,13\,21\,16\,9\,20\,15\,1$
What is the shortest permutation that cannot be sorted by a general $3$-stack sorting machine?
Neither gets a 🍺.
Only four lengths remain to be resolved: