<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nearly-Optimal Mergesorts: Fast, Practical Sorting Methods That Optimally Adapt to Existing Runs · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/1805.04154/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/1805.04154/feed.xml" rel="self" type="application/rss+xml" /><item><title>Nearly-Optimal Mergesorts: Fast, Practical Sorting Methods That Optimally Adapt to Existing Runs — mentioned by orlp</title><link>https://news.ycombinator.com/item?id=31101498</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.04154:31101498</guid><pubDate>Wed, 20 Apr 2022 19:08:06 GMT</pubDate><description>&lt;p&gt;I have stolen a lot of ideas from scandum and extended his ideas in new ways. He is definitely a mad genius. Glidesort (on my M1 machine at least) matches fluxsort within a couple % for random data, but glidesort is robust in that it will always take advantage of pre-sorted runs and many equal elements (at least if it has buffer memory), no matter where they are in the array. In particular, I was inspired by three things from scandum: 1. fluxsort&amp;#x27;s out-of-place stable partitioning. From this I got reminded that not only is out-of-place stable partitioning a thing, it&amp;#x27;s highly competitive.…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.04154/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Nearly-Optimal Mergesorts: Fast, Practical Sorting Methods That Optimally Adapt to Existing Runs — mentioned by lorenzhs</title><link>https://news.ycombinator.com/item?id=18042002</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.04154:18042002</guid><pubDate>Fri, 21 Sep 2018 19:21:31 GMT</pubDate><description>&lt;p&gt;I&amp;#x27;m sorry, but Timsort is a bit of a hack. It&amp;#x27;s a &amp;quot;this seems to work well&amp;quot; algorithm, and it shows. It took 13 years until its claimed running time was finally proven in 2015. The four (originally three) rules for merging sequences from the stack are rather arbitrary. Multiple issues were found well after it was already widely deployed. Recently, it was also shown that Timsort doesn&amp;#x27;t optimally use the information it has about runs. As an alternative, powersort was proposed, which seems to outperform Timsort both on randomly ordered inputs as well as inputs with long runs…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.04154/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item></channel></rss>
