Conference paperESA 2026May 2026
Virtual-Memory PowerSort
- Material
A key downside of Mergesort is the extra space usage. In theory, inplace merging methods are known, but they are rather slow in practice, primarily due to many extra moves.
In this paper, we show that using appropriate sized chunks of the input array in the style of virtual-memory pages has very little overhead in Powersort, but reduces the extra space usage to $O(\sqrt{n\log n})$. The trick is to keep pages permuted for the results of intermediate merges, and only move them to their final position at the end of the algorithm.
Moreover, we show that a Pingpong-buffer variant of Powersort can avoid almost all extraneous moves; this needs a closer look at the merge choreography of Powersort, which might be of independent interest for other implementations.
Interactive demo of Virtual-Memory PowerSort · on a page of its own
Reference
Finn Moltmann, Tamio-Vesa Nakajima, and Sebastian Wild: Virtual-Memory PowerSort. European Symposium on Algorithms (ESA) 2026, Volume 388, pp. 14:1-14:17.. doi:10.4230/LIPIcs.ESA.2026.14
BibTeX
@inproceedings{MoltmannNakajimaWild2026,
title = {Virtual-Memory {PowerSort}},
author = {Finn Moltmann and Tamio-Vesa Nakajima and Sebastian Wild},
booktitle = {European Symposium on Algorithms (ESA) 2026},
series = {LIPIcs},
volume = {388},
pages = {14:1--14:17},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
year = {2026},
doi = {10.4230/LIPIcs.ESA.2026.14},
eprint = {2605.27147},
urlHidden = {https://www.wild-inter.net/publications/moltmann-nakajima-wild-2026}
}
Timeline
- Apr 2026 written
- May 2026 arXiv 2605.27147; ESA 2026
- 21 Oct 2026 lightning talk at Departmental mini conference, University of Marburg
