Metraipolis › archive › dc_b7940aa921e8
Straightforward Entropy-Sensitive Mergesort — arXiv:2608.10421
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.10421
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T06:37:00.693Z
- SHA-256 of the archived text
4134fa12bf7b46e6c4396017f50e25b8564b5492769334f9a3078aac1cc378ea- Stable URL of this page
https://metraipolis.com/documento/dc_b7940aa921e8
How to cite
Straightforward Entropy-Sensitive Mergesort — arXiv:2608.10421 — arXiv (en), https://arxiv.org/abs/2608.10421 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b7940aa921e8 (Metraipolis archive dc_b7940aa921e8, sha256 4134fa12bf7b46e6c4396017f50e25b8564b5492769334f9a3078aac1cc378ea)
BibTeX
@misc{dcb7940aa921e8,
title = {Straightforward Entropy-Sensitive Mergesort — arXiv:2608.10421},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.10421},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b7940aa921e8; sha256 4134fa12bf7b46e6c4396017f50e25b8564b5492769334f9a3078aac1cc378ea},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.10421. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In this paper, we present a stable mergesort variant, "directional mergesort", that to sort an array of $n$ elements makes no more than $nH+3n$ comparisons and $1.5nH+O(n)$ moves where $H$ is the run-based entropy of the input sequence, matching the best existing algorithms in run-adaptive sorting. However, our algorithm is surprisingly minimalistic: it leverages only skip checks, i.e., bypassing the merge step when both halves are already in order, and dynamically changing the direction of merging based on the state of the subarrays. As dynamic run scanning is avoided, all merge steps remain static and derivable from $n$, enabling a reduction to $O(1)$ words of stack space (i.e. space usage excluding the merge buffer) in "directional mergesort$^{++}$", thus improving over the predecessors' $O(\lg n)$ words. Importantly, as directional mergesort adapts only to non-decreasing runs, directional mergesort$^{++}$ also applies a parallel set of rules for (strictly) decreasing runs, allowing the algorithm to also adapt to decreasing runs whilst retaining the original comparison bounds.
Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-08-12 in cs.DS).
Categorie arXiv: Data Structures and Algorithms (cs.DS).
Pagina del lavoro: https://arxiv.org/abs/2608.10421 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T06:28:19.213Z dalla pagina https://arxiv.org/catchup/cs.DS/2026-08-12?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).