Strategies for stable merge sorting
From MaRDI portal
Publication:5236262
DOI10.1137/1.9781611975482.78zbMATH Open1431.68021arXiv1801.04641OpenAlexW2783319652MaRDI QIDQ5236262FDOQ5236262
Authors: Alexander Knop, Samuel R. Buss
Publication date: 15 October 2019
Published in: Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (Search for Journal in Brave)
Abstract: We introduce new stable natural merge sort algorithms, called -merge sort and -merge sort. We prove upper and lower bounds for several merge sort algorithms, including Timsort, Shivers' sort, -stack sorts, and our new -merge and -merge sorts. The upper and lower bounds have the forms and for inputs of length~ comprising ~monotone runs. For Timsort, we prove a lower bound of . For -merge sort, we prove optimal upper and lower bounds of approximately . We prove similar asymptotically matching upper and lower bounds for -merge sort, when , where is the golden ratio. Our bounds are in terms of merge cost; this upper bounds the number of comparisons and accurately models runtime. The merge strategies can be used for any stable merge sort, not just natural merge sorts. The new -merge and -merge sorts have better worst-case merge cost upper bounds and are slightly simpler to implement than the widely-used Timsort; they also perform better in experiments. We report also experimental comparisons with algorithms developed by Munro-Wild and Jug'e subsequently to the results of the present paper.
Full work available at URL: https://arxiv.org/abs/1801.04641
Recommendations
Cited In (9)
- Galloping in fast-growth natural merge sorts
- FST TCS 2003: Foundations of Software Technology and Theoretical Computer Science
- Stable unmerging in linear time and constant space
- On the worst-case complexity of TimSort
- A probabilistic model revealing shortcomings in Lua's hybrid tables
- Title not available (Why is that?)
- Title not available (Why is that?)
- Multiway powersort
- Title not available (Why is that?)
This page was built for publication: Strategies for stable merge sorting
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5236262)