Stable sorting on multitape Turing machines
A machine must sort binary keys together with the data attached to each key. On a tape it must move its heads through the representation as it reads and writes. How many steps does stable sorting take as a function of the input’s total bit length?
Why it matters and what counts as progress
Why it matters: The tape model counts the cost of moving data. It exposes a cost that random-access sorting bounds can hide, especially when keys and their associated data have different lengths.
What counts as progress: Tighten the gap between the reported sub-N bound and known lower bounds. For items of logarithmic width, the preprint asks for a saving by a fixed power of .
How the problem developed
- 1985 · Tape mergesort question [1]
Martti Penttonen and Jyrki Katajainen They discuss the tape mergesort bound and ask whether it can be improved.
Yann Tal with GPT-6 The first report gives a stable sorter for variable-length keys and associated data in sub-comparison time.
- 28 Nov 2026 · Improved time bound and circuit extension reported [3]
Yann Tal with GPT-6 Revision 2 tightens the tape running time and extends the routing method to bounded-fan-in Boolean circuits.
Follow new AI contributions to this problem.
How the problem developed
AI Proof Watch
Stable sorting on multitape Turing machines
References
- [1]Notes on the complexity of sorting in abstract machines
- [2]Sorting in Time on a Multitape Turing Machine
- [3]Sorting with Tape Steps and Boolean Gates
AI contribution
Stable sorting in steps on a multitape Turing machine
For n pairs of binary keys and associated strings of total encoded length N, including delimiters, Theorem 1.1 gives stable lexicographic sorting in time and space. Appendix B implements it with two writable tapes. The same bounds apply to signed numbers written as finite expansions in a fixed base.
Research Opportunities 2
Browse opportunities for this problemResearch directions discussed by researchers in connection with AI contributions to this problem.
A larger time saving for stable sorting on tapes
Sharper bounds · Algorithm design · Computational complexity
Can a deterministic machine with a fixed number of tapes and linear space stably sort items of bits each in time for a fixed ?
Tal retains this question in the revised paper. The tape algorithm saves a power of the triple logarithm over tape mergesort. Technical report · Status update on A larger time saving for stable sorting on tapes
Fast routing on tapes for polynomial-width strings
Generalization · Algorithm design · Computational complexity
Can a deterministic machine with a fixed number of tapes and linear space route strings to their prescribed destinations in steps per bit, for some fixed , when each string has at least bits for a fixed ?
Main obstacle The method reaches the requested time bound when string width is exponential in a power of the number of strings.
Corollary A.2 gives an iterated-logarithm time saving for polynomial-width strings. Question 7.2 asks for a saving by a power of the logarithm. Technical report · Status update on Fast routing on tapes for polynomial-width strings
Sources
- PDF · Notes on the complexity of sorting in abstract machines
- Technical report · Sorting in Time on a Multitape Turing Machine
- Technical report · Sorting with Tape Steps and Boolean Gates
- Technical report · Sorting with Tape Steps and Boolean Gates
- Technical report · Authors’ attribution
- Technical report · Exact multitape claim
- Technical report · Proof of the general input bound
- Technical report · Two writable tapes
Publication history
Daily emails by default, only when there’s an update.